diff --git a/pysurfex/forcing.py b/pysurfex/forcing.py index 84b90ad..b9d48ba 100644 --- a/pysurfex/forcing.py +++ b/pysurfex/forcing.py @@ -1,4 +1,5 @@ """Forcing.""" + import abc import copy import json @@ -764,6 +765,7 @@ def set_forcing_config(**kwargs): co2 = "default" co2_converter = "none" + diskless_write = False analysis = False interpolation = None try: @@ -772,7 +774,6 @@ def set_forcing_config(**kwargs): input_format = kwargs["input_format"] output_format = kwargs["output_format"] outfile = kwargs["of"] - diskless_write = kwargs["diskless_write"] zref = kwargs["zref"] uref = kwargs["uref"] config = kwargs["config"] @@ -848,6 +849,8 @@ def set_forcing_config(**kwargs): co2 = kwargs["co2"] if "co2_converter" in kwargs: co2_converter = kwargs["co2_converter"] + if "diskless_write" in kwargs: + diskless_write = kwargs["diskless_write"] except ValueError: raise Exception("Needed input is missing") from ValueError