1
Fork 0

Added margin option to subdomain config

This commit is contained in:
Edgar P. Burkhart 2022-03-29 15:24:17 +02:00
parent 0a5596fe63
commit 35ab13bea4
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 4 additions and 2 deletions

View file

@ -8,6 +8,7 @@ psize=Psize.dat
hires_step=0.5
[out]
margin=0.005
#no_breakwater=True
root=out
sub=bathy_sub.npy

View file

@ -26,8 +26,9 @@ domain = np.stack((artha, buoy))
domain.sort(axis=0)
log.debug(f"domain: {domain}")
domain[0] -= 0.002
domain[1] += 0.002
margin = config.getfloat("out", "margin", default=0.002)
domain[0] -= margin
domain[1] += margin
log.debug(f"domain: {domain}")
inp_root = pathlib.Path(config.get("inp", "root"))