Skip to content

Commit

Permalink
[telemac] t2d: added parallel run support
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsail committed Jan 12, 2024
1 parent bebe775 commit 87b796d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyposeidon/misc/telemac2d.cas
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RESULTS FILE = '{{out_2D_file}}'
BINARY ATMOSPHERIC DATA FILE =
'{{inp_wind_file}}'
/CHECKING THE MESH = YES
PARALLEL PROCESSORS = {{ ncsize }}
/
/----------------------------------------------
/ GENERAL INFORMATIONS - OUTPUTS
Expand Down
1 change: 1 addition & 0 deletions pyposeidon/misc/telemac2d.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"restart_file": "restart_2D.slf",
"restart_tstep": -1,
"title": "TELEMAC 2D Model",
"ncsize": 1,
"tstep_graph": 12,
"tstep_list": 6,
"tstep": 300,
Expand Down
2 changes: 2 additions & 0 deletions pyposeidon/telemac.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ def __init__(self, **kwargs):
# specific to meteo grib files
self.gtype = get_value(self, kwargs, "meteo_gtype", "grid")
self.ttype = get_value(self, kwargs, "meteo_ttype", "time")
self.ncsize = get_value(self, kwargs, "ncsize", 1)
# convert -180/180 to 0-360
self.convert360 = get_value(self, kwargs, "meteo_convert360", False)

Expand Down Expand Up @@ -696,6 +697,7 @@ def config(self, config_file=None, output=False, **kwargs):
params["nb_tsteps"] = int(duration / tstep)
params["tstep_graph"] = int(3600 / tstep)
params["tstep_list"] = int(3600 / tstep)
params["ncsize"] = self.ncsize

# tide
if self.tide:
Expand Down

0 comments on commit 87b796d

Please sign in to comment.