Skip to content

Commit 06a91f0

Browse files
committed
include partition file for generate_parallel_mdu.sh
1 parent 570dc74 commit 06a91f0

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

stompy/model/delft/dflow_model.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,13 @@ def partition(self,partition_grid=None):
712712

713713
# not a cross platform solution!
714714
gen_parallel=os.path.join(self.dfm_bin_dir,"generate_parallel_mdu.sh")
715-
cmd=[gen_parallel,os.path.basename(self.mdu.filename),"%d"%self.num_procs,'6']
715+
716+
cmd=[gen_parallel,os.path.basename(self.mdu.filename),"%d"%self.num_procs]
717+
part_file =self.mdu['geometry','PartitioneFile']
718+
if part_file not in [None,""]:
719+
self.log.info("Passing partition file to generate_parallel_mdu.sh")
720+
cmd.append(part_file)
721+
cmd.append('6') # icgsolver
716722
print(f"About to call {cmd}")
717723
return utils.call_with_path(cmd,self.run_dir)
718724

stompy/model/delft/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ def format_section(self,s):
13721372
def get_value(self,sec_key):
13731373
"""
13741374
return the string-valued settings for a given key.
1375-
if they key is not found, returns None.
1375+
if the key is not found, returns None.
13761376
If the key is present but with no value, returns the empty string
13771377
"""
13781378
section=self.format_section(sec_key[0])

0 commit comments

Comments
 (0)