emsig / emg3d

A multigrid solver for 3D electromagnetic diffusion

Home Page:https://emg3d.emsig.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reducing rounding in `construct_mesh`

prisae opened this issue · comments

construct_mesh does rounding for the skin_depth and min_width to meter precision. However, for high frequencies this yields to problem, as min_width can be below 0.5 meter, in which case it returns 0.0.

Three things TODO:

  • Reduce rounding from meter to cm.
  • Ensure min_width > 0.0
  • Make precision a parameter in construct_mesh

Thanks @mariacarrizo for reporting!