Skip to content

Meshing: center on edge

Compare
Choose a tag to compare
@prisae prisae released this 30 Mar 18:11
· 49 commits to main since this release
df54e3f
  • Meshes:

    • construct_mesh and origin_and_widths take a new variable
      center_on_edge: If True, the center is put on an edge, if
      False, it is put at the cell center. Status quo is True, but the
      default will change to False in v1.7.0. If not set, it will
      currently raise a FutureWarning making the user aware of the change.
      Setting center_on_edge explicitly will suppress the warning.
    • Constructed grids through construct_mesh and origin_and_widths with
      a defined seasurface might slightly change due to some improvements and
      refactoring in the course of the above changes to the center. The changes
      should not be severe.
  • Simulation:

    • gradient: Changed slightly to use the proper adjoint (changed only if
      the computational grids differ from the inversion grid; requires
      discretize).
    • jvec: Adjusted to work for any mapping, not only conductivity, and also
      with adaptive gridding. It expects new a Fortran-ordered vector with the
      shape of the model (or a vector of that size).
      Gently reminder that the functions gradient, jvec, and jtvec
      are still considered experimental, and might change.
    • New optional keyword tqdm_opts. With False you can switch off the
      progress bars. Alternatively one can provide a dict, which is forwarded
      to tqdm.
  • CLI:

    • Expose mean_noise and ntype, in addition to min_offset, to the
      CLI (for adding noise); also plain (for solver), and center_on_edge
      (for gridding options).