Add swash model nobreakwater
This commit is contained in:
parent
ff7d5380a8
commit
c4c751721b
2 changed files with 6 additions and 1 deletions
|
@ -30,8 +30,12 @@ with tempfile.TemporaryDirectory(prefix="swash_", dir=".") as tmp_raw:
|
|||
|
||||
log.info(f"Copying files to '{tmpdir}'")
|
||||
shutil.copy2(inp, tmpdir)
|
||||
if config.getboolean("swash", "nb", fallback=False):
|
||||
path = pathlib.Path(config.get("data", "out_nb"))
|
||||
else:
|
||||
path = pathlib.Path(config.get("data", "out"))
|
||||
shutil.copytree(
|
||||
pathlib.Path(config.get("data", "out")), tmpdir, dirs_exist_ok=True
|
||||
path, tmpdir, dirs_exist_ok=True
|
||||
)
|
||||
|
||||
if config.has_option("swash", "mpi"):
|
||||
|
|
Reference in a new issue