mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-06 22:43:01 -06:00
use automatic differentiation for the co2injection_flash_ecfv test
i.e., the simulation for the CO2-injection problem which uses the flash solver to handle its thermodynamics and element centered finite volume method as the spatial discretization. The intention is to ensure that opm-material's NcpFlash constraint solver works with non-primitive types as Scalars. (or rather: that it will be quickly detected if it breaks in that case.)
This commit is contained in:
parent
290584dddc
commit
8a420748f5
@ -43,6 +43,9 @@ namespace Properties {
|
||||
NEW_TYPE_TAG(Co2InjectionFlashEcfvProblem, INHERITS_FROM(FlashModel, Co2InjectionBaseProblem));
|
||||
SET_TAG_PROP(Co2InjectionFlashEcfvProblem, SpatialDiscretizationSplice, EcfvDiscretization);
|
||||
|
||||
// use automatic differentiation for this simulator
|
||||
SET_TAG_PROP(Co2InjectionFlashEcfvProblem, LocalLinearizerSplice, AutoDiffLocalLinearizer);
|
||||
|
||||
// use the flash solver adapted to the CO2 injection problem
|
||||
SET_TYPE_PROP(
|
||||
Co2InjectionFlashEcfvProblem, FlashSolver,
|
||||
|
Loading…
Reference in New Issue
Block a user