mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-03 12:50:29 -06:00
Flow: Verify Consistent Array Dimensions
The output code has an unfriendly error mode in which we unceremoniously crash--without writing any data--if some declared array dimensions from RUNSPEC aren't big enough to hold all the dynamic objects (wells, groups, connections &c). Verify that the declared dimensions are indeed big enough for the current simulation run before starting the simulator to ensure that we don't waste a lot of computational effort if, for instance, the first output is very close to the end of the simulation.
This commit is contained in:
parent
273e6a4dbc
commit
6cf0710271
@ -46,6 +46,7 @@
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
|
||||
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/ArrayDimChecker.hpp>
|
||||
|
||||
#if HAVE_DUNE_FEM
|
||||
#include <dune/fem/misc/mpimanager.hh>
|
||||
@ -208,6 +209,8 @@ int main(int argc, char** argv)
|
||||
schedule.reset(new Opm::Schedule(*deck, *eclipseState, parseContext, errorGuard));
|
||||
summaryConfig.reset( new Opm::SummaryConfig(*deck, *schedule, eclipseState->getTableManager(), parseContext, errorGuard));
|
||||
|
||||
Opm::checkConsistentArrayDimensions(*eclipseState, *schedule, parseContext, errorGuard);
|
||||
|
||||
if (errorGuard) {
|
||||
errorGuard.dump();
|
||||
errorGuard.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user