Added warning for segregation scenario.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-03-12 17:29:42 +01:00
parent e2f00b66a4
commit bf142b7eda

View File

@ -507,6 +507,9 @@ main(int argc, char** argv)
std::cout << "**** Warning: running gravity segregation scenario, which expects a cartesian grid."
<< std::endl;
}
if (grid->c_grid()->cartdims[2] <= 1) {
std::cout << "**** Warning: running gravity segregation scenario, which expects nz > 1." << std::endl;
}
std::vector<double>& sat = state.saturation();
const int *glob_cell = grid->c_grid()->global_cell;
// Water on top