mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
Merge pull request #387 from atgeirr/adapt-to-removed-legacy-fileformat
Remove support for legacy file format.
This commit is contained in:
commit
e88e13c3e9
@ -75,12 +75,7 @@ namespace Opm
|
|||||||
// Initialize grid and reservoir properties.
|
// Initialize grid and reservoir properties.
|
||||||
// Parts copied from Dune::CpGrid::init().
|
// Parts copied from Dune::CpGrid::init().
|
||||||
std::string fileformat = param.getDefault<std::string>("fileformat", "cartesian");
|
std::string fileformat = param.getDefault<std::string>("fileformat", "cartesian");
|
||||||
if (fileformat == "sintef_legacy") {
|
if (fileformat == "eclipse") {
|
||||||
std::string grid_prefix = param.get<std::string>("grid_prefix");
|
|
||||||
grid.readSintefLegacyFormat(grid_prefix);
|
|
||||||
OPM_MESSAGE("Warning: We do not yet read legacy reservoir properties. Using defaults.");
|
|
||||||
res_prop.init(grid.size(0));
|
|
||||||
} else if (fileformat == "eclipse") {
|
|
||||||
std::string ecl_file = param.get<std::string>("filename");
|
std::string ecl_file = param.get<std::string>("filename");
|
||||||
|
|
||||||
Opm::Parser parser;
|
Opm::Parser parser;
|
||||||
|
@ -45,10 +45,7 @@
|
|||||||
|
|
||||||
void Opm::initCPGrid(Dune::CpGrid& grid, const Opm::ParameterGroup& param) {
|
void Opm::initCPGrid(Dune::CpGrid& grid, const Opm::ParameterGroup& param) {
|
||||||
std::string fileformat = param.get<std::string>("fileformat");
|
std::string fileformat = param.get<std::string>("fileformat");
|
||||||
if (fileformat == "sintef_legacy") {
|
if (fileformat == "eclipse") {
|
||||||
std::string grid_prefix = param.get<std::string>("grid_prefix");
|
|
||||||
grid.readSintefLegacyFormat(grid_prefix);
|
|
||||||
} else if (fileformat == "eclipse") {
|
|
||||||
std::string filename = param.get<std::string>("filename");
|
std::string filename = param.get<std::string>("filename");
|
||||||
if (param.has("z_tolerance")) {
|
if (param.has("z_tolerance")) {
|
||||||
std::cerr << "****** Warning: z_tolerance parameter is obsolete, use PINCH in deck input instead\n";
|
std::cerr << "****** Warning: z_tolerance parameter is obsolete, use PINCH in deck input instead\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user