Simplified deck filename handling. Only set filename if successfully opened
This commit is contained in:
@@ -161,11 +161,9 @@ namespace Opm {
|
||||
}
|
||||
|
||||
void EclipseState::initIOConfig(DeckConstPtr deck) {
|
||||
std::string df = "";
|
||||
if (deck->hasDataFile()) {
|
||||
df = deck->getDataFile();
|
||||
}
|
||||
m_ioConfig = std::make_shared<IOConfig>(df);
|
||||
std::string dataFile = deck->getDataFile();
|
||||
|
||||
m_ioConfig = std::make_shared<IOConfig>(dataFile);
|
||||
if (Section::hasGRID(*deck)) {
|
||||
std::shared_ptr<const GRIDSection> gridSection = std::make_shared<const GRIDSection>(*deck);
|
||||
m_ioConfig->handleGridSection(gridSection);
|
||||
|
||||
Reference in New Issue
Block a user