1
Fork 0

Merge branch 'swash'

This commit is contained in:
Edgar P. Burkhart 2022-03-29 09:48:00 +02:00
commit 4f6ad7edba
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 24 additions and 8 deletions

20
swash/config-nb.ini Normal file
View 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

View file

@ -1,16 +1,11 @@
[proc]
#plot=True
[data]
out=../data/out
out_nb=../data/out
[swash]
nb=True
input=sws/INPUT.sws
input=sws/SPEC_buoy.sws
path=/opt/swash
out=out_sws
mpi=4
out=out/spec
mpi=8
[post]
inp=inp_post

View file

@ -25,6 +25,7 @@ out = pathlib.Path(config.get("swash", "out"))
if out.exists():
log.error(f"Swash output '{out}' already exists")
sys.exit(1)
out.parent.mkdir(parents=True, exist_ok=True)
with tempfile.TemporaryDirectory(prefix="swash_", dir=".") as tmp_raw:
tmpdir = pathlib.Path(tmp_raw)