Merge branch 'swash'
This commit is contained in:
commit
4f6ad7edba
3 changed files with 24 additions and 8 deletions
20
swash/config-nb.ini
Normal file
20
swash/config-nb.ini
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
[data]
|
||||||
|
out=../data/out_nb
|
||||||
|
|
||||||
|
[swash]
|
||||||
|
input=sws/SPEC_buoy_nb.sws
|
||||||
|
path=/opt/swash
|
||||||
|
out=out/spec_nb
|
||||||
|
mpi=8
|
||||||
|
|
||||||
|
[post]
|
||||||
|
inp=inp_post
|
||||||
|
compare=inp_post_nb
|
||||||
|
out=out_post
|
||||||
|
#nperseg=1024
|
||||||
|
dt=0.25
|
||||||
|
x0=-1250
|
||||||
|
t0=180
|
||||||
|
|
||||||
|
[plot]
|
||||||
|
out=out_plt
|
|
@ -1,16 +1,11 @@
|
||||||
[proc]
|
|
||||||
#plot=True
|
|
||||||
|
|
||||||
[data]
|
[data]
|
||||||
out=../data/out
|
out=../data/out
|
||||||
out_nb=../data/out
|
|
||||||
|
|
||||||
[swash]
|
[swash]
|
||||||
nb=True
|
input=sws/SPEC_buoy.sws
|
||||||
input=sws/INPUT.sws
|
|
||||||
path=/opt/swash
|
path=/opt/swash
|
||||||
out=out_sws
|
out=out/spec
|
||||||
mpi=4
|
mpi=8
|
||||||
|
|
||||||
[post]
|
[post]
|
||||||
inp=inp_post
|
inp=inp_post
|
||||||
|
|
|
@ -25,6 +25,7 @@ out = pathlib.Path(config.get("swash", "out"))
|
||||||
if out.exists():
|
if out.exists():
|
||||||
log.error(f"Swash output '{out}' already exists")
|
log.error(f"Swash output '{out}' already exists")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
out.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
with tempfile.TemporaryDirectory(prefix="swash_", dir=".") as tmp_raw:
|
with tempfile.TemporaryDirectory(prefix="swash_", dir=".") as tmp_raw:
|
||||||
tmpdir = pathlib.Path(tmp_raw)
|
tmpdir = pathlib.Path(tmp_raw)
|
||||||
|
|
Loading…
Reference in a new issue