Added margin option to subdomain config
This commit is contained in:
parent
0a5596fe63
commit
35ab13bea4
2 changed files with 4 additions and 2 deletions
|
@ -8,6 +8,7 @@ psize=Psize.dat
|
||||||
hires_step=0.5
|
hires_step=0.5
|
||||||
|
|
||||||
[out]
|
[out]
|
||||||
|
margin=0.005
|
||||||
#no_breakwater=True
|
#no_breakwater=True
|
||||||
root=out
|
root=out
|
||||||
sub=bathy_sub.npy
|
sub=bathy_sub.npy
|
||||||
|
|
|
@ -26,8 +26,9 @@ domain = np.stack((artha, buoy))
|
||||||
domain.sort(axis=0)
|
domain.sort(axis=0)
|
||||||
log.debug(f"domain: {domain}")
|
log.debug(f"domain: {domain}")
|
||||||
|
|
||||||
domain[0] -= 0.002
|
margin = config.getfloat("out", "margin", default=0.002)
|
||||||
domain[1] += 0.002
|
domain[0] -= margin
|
||||||
|
domain[1] += margin
|
||||||
log.debug(f"domain: {domain}")
|
log.debug(f"domain: {domain}")
|
||||||
|
|
||||||
inp_root = pathlib.Path(config.get("inp", "root"))
|
inp_root = pathlib.Path(config.get("inp", "root"))
|
||||||
|
|
Loading…
Reference in a new issue