Merge branch 'swash' of ssh://git.edgarpierre.fr:39529/m2cce/internship into swash
This commit is contained in:
commit
1a998dc961
5 changed files with 9 additions and 15 deletions
|
@ -3,18 +3,15 @@ out=../data/out_nb
|
||||||
|
|
||||||
[swash]
|
[swash]
|
||||||
input=sws/SPEC_buoy_nb.sws
|
input=sws/SPEC_buoy_nb.sws
|
||||||
path=/opt/swash
|
path=/data/code/swash
|
||||||
out=out/spec_nb
|
out=out/spec_nb
|
||||||
mpi=8
|
mpi=8
|
||||||
|
|
||||||
[post]
|
[post]
|
||||||
inp=inp_post
|
inp=inp_post/spec_nb
|
||||||
compare=inp_post_nb
|
compare=inp_post_nb
|
||||||
out=out_post
|
out=out_post
|
||||||
#nperseg=1024
|
#nperseg=1024
|
||||||
dt=0.25
|
dt=0.25
|
||||||
x0=-1250
|
x0=-1250
|
||||||
t0=180
|
t0=180
|
||||||
|
|
||||||
[plot]
|
|
||||||
out=out_plt
|
|
||||||
|
|
|
@ -3,18 +3,15 @@ out=../data/out
|
||||||
|
|
||||||
[swash]
|
[swash]
|
||||||
input=sws/SPEC_buoy.sws
|
input=sws/SPEC_buoy.sws
|
||||||
path=/opt/swash
|
path=/data/code/swash
|
||||||
out=out/spec
|
out=out/spec
|
||||||
mpi=8
|
mpi=8
|
||||||
|
|
||||||
[post]
|
[post]
|
||||||
inp=inp_post
|
inp=inp_post/spec
|
||||||
compare=inp_post_nb
|
compare=inp_post_nb
|
||||||
out=out_post
|
out=out_post
|
||||||
#nperseg=1024
|
#nperseg=1024
|
||||||
dt=0.25
|
dt=0.25
|
||||||
x0=-1250
|
x0=-1250
|
||||||
t0=180
|
t0=180
|
||||||
|
|
||||||
[plot]
|
|
||||||
out=out_plt
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ config.read(args.config)
|
||||||
|
|
||||||
inp = pathlib.Path(config.get("post", "inp"))
|
inp = pathlib.Path(config.get("post", "inp"))
|
||||||
root = pathlib.Path(config.get("swash", "out"))
|
root = pathlib.Path(config.get("swash", "out"))
|
||||||
out = pathlib.Path(config.get("plot", "out"))
|
out = pathlib.Path(config.get("post", "out"))
|
||||||
out.mkdir(parents=True, exist_ok=True)
|
out.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ config.read(args.config)
|
||||||
|
|
||||||
inp = pathlib.Path(config.get("post", "inp"))
|
inp = pathlib.Path(config.get("post", "inp"))
|
||||||
root = pathlib.Path(config.get("swash", "out"))
|
root = pathlib.Path(config.get("swash", "out"))
|
||||||
out = pathlib.Path(config.get("plot", "out"))
|
out = pathlib.Path(config.get("post", "out"))
|
||||||
out.mkdir(parents=True, exist_ok=True)
|
out.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ config.read(args.config)
|
||||||
|
|
||||||
sws_out = pathlib.Path(config.get("swash", "out"))
|
sws_out = pathlib.Path(config.get("swash", "out"))
|
||||||
inp = pathlib.Path(config.get("post", "inp"))
|
inp = pathlib.Path(config.get("post", "inp"))
|
||||||
|
inp.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
log.info(f"Reading swash output from '{sws_out}'")
|
log.info(f"Reading swash output from '{sws_out}'")
|
||||||
rsws = ReadSwash()
|
rsws = ReadSwash()
|
||||||
|
@ -32,14 +33,13 @@ var = {
|
||||||
"dep": rsws.read_scalar,
|
"dep": rsws.read_scalar,
|
||||||
"botl": rsws.read_const,
|
"botl": rsws.read_const,
|
||||||
"watl": rsws.read_scalar,
|
"watl": rsws.read_scalar,
|
||||||
"vel": rsws.read_vector,
|
"pressk": rsws.read_scalar_lay,
|
||||||
"press": rsws.read_scalar,
|
"nhprsk": rsws.read_scalar_lay,
|
||||||
"zk": rsws.read_scalar_lay,
|
"zk": rsws.read_scalar_lay,
|
||||||
"velk": rsws.read_vector_lay,
|
"velk": rsws.read_vector_lay,
|
||||||
"vz": rsws.read_scalar_lay,
|
"vz": rsws.read_scalar_lay,
|
||||||
}
|
}
|
||||||
|
|
||||||
inp.mkdir(exist_ok=True)
|
|
||||||
with ThreadPool(len(var)) as pool:
|
with ThreadPool(len(var)) as pool:
|
||||||
log.info("Converting all data")
|
log.info("Converting all data")
|
||||||
pool.map(
|
pool.map(
|
||||||
|
|
Loading…
Reference in a new issue