Corrected keyword for turning off gravity in deck input (NOGRAV).

This commit is contained in:
Atgeirr Flø Rasmussen 2012-04-02 11:21:56 +02:00
parent 40b4fcb7ac
commit 196ec80785

View File

@ -302,7 +302,7 @@ main(int argc, char** argv)
// Rock compressibility.
rock_comp.reset(new Opm::RockCompressibility(deck));
// Gravity.
gravity[2] = deck.hasField("NOGRAVITY") ? 0.0 : Opm::unit::gravity;
gravity[2] = deck.hasField("NOGRAV") ? 0.0 : Opm::unit::gravity;
// Init state variables (saturation and pressure).
initStateTwophaseFromDeck(*grid->c_grid(), *props, deck, gravity[2], state);
} else {