mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-16 20:24:48 -06:00
`mebos` works similarly as `flow`, but in contrast to `flow`, `mebos` only creates the deck in the common code path whilst the 'EclipseState' and the other higher-level parser objects are always created internally by the vanguard. this approach avoids code duplication and the worst effects of parser API creep. to avoid having to compile non-trivial compile units multiple times, the actual code of the variants is moved into `ebos_$VARIANT.{hh,cc}` files and the respective compile units are each put into a small static library whilst the main function of said libraries are invoked by either the multiplexed or the respective specialized simulator's `main()`. This is also somewhat similar of how `flow` works, with the difference that `mebos` uses the blackoil variant to determine the parameters it needs to know for parsing the deck instead of introducing a "fake" type tag for this. The rationale is to reduce compile time compared to the "fake type tag" approach and -- to a lesser extend -- avoid unnecessary copy-and-pasting of code. In particular, this means that for the vast majority of cases, only one place needs changed in the code for all `ebos` variants if, for example, the parser API requires further objects in the future. |
||
---|---|---|
.. | ||
equil | ||
alucartesianindexmapper.hh | ||
collecttoiorank.hh | ||
ebos_altidx.cc | ||
ebos_blackoil.cc | ||
ebos_blackoil.hh | ||
ebos_gasoil_main.cc | ||
ebos_gasoil.cc | ||
ebos_gasoil.hh | ||
ebos_main.cc | ||
ebos_oilwater_main.cc | ||
ebos_oilwater.cc | ||
ebos_oilwater.hh | ||
ebos_plain.cc | ||
ebos_polymer_main.cc | ||
ebos_polymer.cc | ||
ebos_polymer.hh | ||
ebos_solvent_main.cc | ||
ebos_solvent.cc | ||
ebos_solvent.hh | ||
ebos_thermal_main.cc | ||
ebos_thermal.cc | ||
ebos_thermal.hh | ||
ebos.hh | ||
eclalugridvanguard.hh | ||
eclbaseaquifermodel.hh | ||
eclbasevanguard.hh | ||
eclcpgridvanguard.hh | ||
ecldummygradientcalculator.hh | ||
eclequilinitializer.hh | ||
eclfluxmodule.hh | ||
eclnewtonmethod.hh | ||
ecloutputblackoilmodule.hh | ||
eclpeacemanwell.hh | ||
eclpolyhedralgridvanguard.hh | ||
eclproblem.hh | ||
eclthresholdpressure.hh | ||
ecltracermodel.hh | ||
ecltransmissibility.hh | ||
eclwellmanager.hh | ||
eclwriter.hh | ||
femcpgridcompat.hh | ||
mebos_main.cc | ||
nncsorter.cpp | ||
nncsorter.hpp | ||
tracervdtable.hh | ||
vtkecltracermodule.hh |