Meshing: center on edge
-
Meshes:
construct_mesh
andorigin_and_widths
take a new variable
center_on_edge
: IfTrue
, the center is put on an edge, if
False
, it is put at the cell center. Status quo isTrue
, but the
default will change toFalse
in v1.7.0. If not set, it will
currently raise a FutureWarning making the user aware of the change.
Settingcenter_on_edge
explicitly will suppress the warning.- Constructed grids through
construct_mesh
andorigin_and_widths
with
a definedseasurface
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 functionsgradient
,jvec
, andjtvec
are still considered experimental, and might change.- New optional keyword
tqdm_opts
. WithFalse
you can switch off the
progress bars. Alternatively one can provide a dict, which is forwarded
totqdm
.
-
CLI:
- Expose
mean_noise
andntype
, in addition tomin_offset
, to the
CLI (for adding noise); alsoplain
(for solver), andcenter_on_edge
(for gridding options).
- Expose