... | ... | @@ -77,7 +77,7 @@ Define a mesh size field. |
|
|
Here the resolution ranges from 1 to 10 km, linearly increasing with the distance to the coast. The mesh size should also depend on the bathymetry (here on the square root of the bathymetry).
|
|
|
|
|
|
```python
|
|
|
ef fsize(x, y, z) :
|
|
|
def fsize(x, y, z) :
|
|
|
h = bath.evaluate_geocentric(x,y,z)
|
|
|
h2 = min(1000,max(5, -h))
|
|
|
# Fine
|
... | ... | |