Overview
PETGEM provides two execution modes built on the same high-order Nédélec finite-element core: forward modeling of the 3D CSEM response, and inverse modeling, which recovers a per-material conductivity model from observed data. Both modes read the same kind of HDF5 input bundle, produced by the same preprocessing script.
Execution modes
make builds three binaries into build/:
fm.csem- forward kernel.im.csem- inverse kernel.petgem- dispatcher, selecting the mode from the command line:./petgem fm -options_file params.txt # forward (== fm.csem) ./petgem im -options_file params.txt # inverse (== im.csem)
The dispatcher calls the same runForward / runInverse entry points as
the single-purpose binaries, so the code paths are identical. -mode fm /
-mode im is accepted as an alternative to the positional subcommand, and
forward/modeling and inverse are accepted as aliases of fm and
im.
Naming convention
fm and im are the canonical tags for the two simulation types, used
consistently across the whole interface: the binaries (fm.csem,
im.csem), the dispatcher subcommands, the preprocess -mode, the
inversion options (every one is -im_*), and the simulation_type
attribute stamped into every output file.