flow: print the "reading deck file" message only once

this is a small follow-up to #1599: not only the banner must be
protected but also the "reading deckfile" message. Mea culpa!
This commit is contained in:
Andreas Lauser 2018-10-24 17:30:45 +02:00
parent 74c8e907fb
commit 25ae95375b

View File

@ -138,13 +138,16 @@ int main(int argc, char** argv)
return 1;
}
if (outputCout)
if (outputCout) {
Opm::FlowMainEbos<PreTypeTag>::printBanner();
}
// Create Deck and EclipseState.
try {
std::cout << "Reading deck file '" << deckFilename << "'\n";
std::cout.flush();
if (outputCout) {
std::cout << "Reading deck file '" << deckFilename << "'\n";
std::cout.flush();
}
Opm::Parser parser;
typedef std::pair<std::string, Opm::InputError::Action> ParseModePair;
typedef std::vector<ParseModePair> ParseModePairs;