mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-12 06:55:35 -06:00
introduce a mechanism to cache the volume variables
this is implemented by extending the existing functionality for hints and leads to a significant reduction of the volume variables updates required. unfortunately, the performance with cached volume variables is basically identical to the non-cached case, so they are disabled by default... anyway, this makes the thermodynamic hints code more robust and cleaner, so it does not hurt to add it...
This commit is contained in:
parent
6b3b2ad281
commit
6e3f6834ef
@ -41,7 +41,8 @@ SET_TAG_PROP(Co2InjectionFlashEcfvProblem, SpatialDiscretizationSplice, EcfvDisc
|
||||
|
||||
// for the flash model we want to use thermodynamic hints or it will
|
||||
// get _very_ slow.
|
||||
SET_BOOL_PROP(Co2InjectionFlashEcfvProblem, EnableHints, true);
|
||||
SET_BOOL_PROP(Co2InjectionFlashEcfvProblem, EnableVolumeVariablesCache, true);
|
||||
SET_BOOL_PROP(Co2InjectionFlashEcfvProblem, EnableThermodynamicHints, true);
|
||||
|
||||
// use the flash solver adapted to the CO2 injection problem
|
||||
SET_TYPE_PROP(
|
||||
|
@ -40,7 +40,8 @@ SET_BOOL_PROP(Co2InjectionFlashNiEcfvProblem, EnableEnergy, true);
|
||||
|
||||
// for the flash model we want to use thermodynamic hints or it will
|
||||
// get _very_ slow.
|
||||
SET_BOOL_PROP(Co2InjectionFlashNiEcfvProblem, EnableHints, true);
|
||||
SET_BOOL_PROP(Co2InjectionFlashNiEcfvProblem, EnableVolumeVariablesCache, true);
|
||||
SET_BOOL_PROP(Co2InjectionFlashNiEcfvProblem, EnableThermodynamicHints, true);
|
||||
|
||||
// use the CO2 injection problem adapted flash solver
|
||||
SET_TYPE_PROP(
|
||||
|
@ -40,7 +40,8 @@ SET_BOOL_PROP(Co2InjectionFlashNiVcfvProblem, EnableEnergy, true);
|
||||
|
||||
// for the flash model we want to use thermodynamic hints or it will
|
||||
// get _very_ slow.
|
||||
SET_BOOL_PROP(Co2InjectionFlashNiVcfvProblem, EnableHints, true);
|
||||
SET_BOOL_PROP(Co2InjectionFlashNiVcfvProblem, EnableVolumeVariablesCache, true);
|
||||
SET_BOOL_PROP(Co2InjectionFlashNiVcfvProblem, EnableThermodynamicHints, true);
|
||||
|
||||
// use the CO2 injection problem adapted flash solver
|
||||
SET_TYPE_PROP(
|
||||
|
@ -41,7 +41,8 @@ SET_TAG_PROP(Co2InjectionFlashVcfvProblem, SpatialDiscretizationSplice, VcfvDisc
|
||||
|
||||
// for the flash model we want to use thermodynamic hints or it will
|
||||
// get _very_ slow.
|
||||
SET_BOOL_PROP(Co2InjectionFlashVcfvProblem, EnableHints, true);
|
||||
SET_BOOL_PROP(Co2InjectionFlashVcfvProblem, EnableVolumeVariablesCache, true);
|
||||
SET_BOOL_PROP(Co2InjectionFlashVcfvProblem, EnableThermodynamicHints, true);
|
||||
|
||||
// use the flash solver adapted to the CO2 injection problem
|
||||
SET_TYPE_PROP(
|
||||
|
Loading…
Reference in New Issue
Block a user