rename variables and remove some unnecessary check and comments.
This commit is contained in:
parent
780292875a
commit
944e1565fd
@ -60,29 +60,20 @@ try
|
|||||||
usage();
|
usage();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
static char* ECLIPSEFILENAME(argv[1]);
|
const char* eclipseFilename = argv[1];
|
||||||
std::ifstream eclipseFile(ECLIPSEFILENAME, std::ios::in);
|
std::ifstream eclipseFile(eclipseFilename, std::ios::in);
|
||||||
if (eclipseFile.fail()) {
|
|
||||||
std::cerr << "Error: Filename " << ECLIPSEFILENAME << " not found or not readable." << std::endl;
|
|
||||||
usage();
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
eclipseFile.close();
|
eclipseFile.close();
|
||||||
//parameter::ParameterGroup param(argc, argv);
|
|
||||||
// Read saturation tables.
|
|
||||||
EclipseStateConstPtr eclState;
|
EclipseStateConstPtr eclState;
|
||||||
ParserPtr parser(new Opm::Parser);
|
ParserPtr parser(new Opm::Parser);
|
||||||
//ParseMode parseMode;
|
|
||||||
Opm::ParseMode parseMode({{ ParseMode::PARSE_RANDOM_SLASH , InputError::IGNORE },
|
Opm::ParseMode parseMode({{ ParseMode::PARSE_RANDOM_SLASH , InputError::IGNORE },
|
||||||
{ ParseMode::PARSE_UNKNOWN_KEYWORD, InputError::IGNORE},
|
{ ParseMode::PARSE_UNKNOWN_KEYWORD, InputError::IGNORE},
|
||||||
{ ParseMode::PARSE_RANDOM_TEXT, InputError::IGNORE}
|
{ ParseMode::PARSE_RANDOM_TEXT, InputError::IGNORE}
|
||||||
});
|
});
|
||||||
Opm::DeckConstPtr deck(parser->parseFile(ECLIPSEFILENAME, parseMode));
|
Opm::DeckConstPtr deck(parser->parseFile(eclipseFilename, parseMode));
|
||||||
eclState.reset(new EclipseState(deck, parseMode));
|
eclState.reset(new EclipseState(deck, parseMode));
|
||||||
|
|
||||||
GridManager gm(deck);
|
GridManager gm(deck);
|
||||||
const UnstructuredGrid& grid = *gm.c_grid();
|
const UnstructuredGrid& grid = *gm.c_grid();
|
||||||
// Write parameters used for later reference.
|
|
||||||
bool output = true;
|
bool output = true;
|
||||||
std::string output_dir;
|
std::string output_dir;
|
||||||
if (output) {
|
if (output) {
|
||||||
|
Loading…
Reference in New Issue
Block a user