diff --git a/pyposeidon/misc/telemac2d.cas b/pyposeidon/misc/telemac2d.cas index ded48a0a..20d492b5 100755 --- a/pyposeidon/misc/telemac2d.cas +++ b/pyposeidon/misc/telemac2d.cas @@ -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 diff --git a/pyposeidon/misc/telemac2d.json b/pyposeidon/misc/telemac2d.json index 71eef1a2..a319b0ce 100644 --- a/pyposeidon/misc/telemac2d.json +++ b/pyposeidon/misc/telemac2d.json @@ -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, diff --git a/pyposeidon/telemac.py b/pyposeidon/telemac.py index af01a843..99c68553 100644 --- a/pyposeidon/telemac.py +++ b/pyposeidon/telemac.py @@ -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) @@ -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: