Merge pull request #395 from bska/nullptr-deref

Fix null-pointer dereference during well construction
This commit is contained in:
Atgeirr Flø Rasmussen committed 2013-10-03 06:52:25 -07:00
commit 12d5bf64bf
1 file changed
+5 -5
+5 -5
View File
@@ -36,14 +36,14 @@ try
// Setup grid
GridManager grid(parser);
// Finally handle the wells
WellsManager wells(parser, *grid.c_grid(), NULL);
double gravity[3] = {0.0, 0.0, parameters.getDefault<double>("gravity", 0.0)};
// Define rock and fluid properties
IncompPropertiesFromDeck incomp_properties(parser, *grid.c_grid());
RockCompressibility rock_comp(parser);
// Finally handle the wells
WellsManager wells(parser, *grid.c_grid(), incomp_properties.permeability());
double gravity[3] = {0.0, 0.0, parameters.getDefault<double>("gravity", 0.0)};
Opm::LinearSolverFactory linsolver(parameters);
double nl_pressure_residual_tolerance = 1e-8;
double nl_pressure_change_tolerance = 0.0;