simbilod / meshwell

GMSH wrapper, with integrated photonics focus
https://simbilod.github.io/meshwell/
GNU General Public License v3.0
22 stars 3 forks source link

Handle base_resolution with mesh size fields #23

Closed nikosavola closed 1 year ago

nikosavola commented 1 year ago

The changes in https://github.com/simbilod/meshwell/pull/21 seem to break the base_resolution part. Assuming the input is of the form

{"layer": {
    "SizeMax": ...,
    "DistMax": ...,
}}

without a resolution key, the lines in https://github.com/simbilod/meshwell/blob/db05b1ff24bdd44b838106458aa514bbcf87460a/meshwell/model.py#L214 will cause problems in gmsh side