mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Check if file pointer is present before creating a new file pointer
p4#: 21295
This commit is contained in:
@@ -54,7 +54,11 @@ bool RifEclipseUnifiedRestartFileAccess::open()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifEclipseUnifiedRestartFileAccess::openFile()
|
||||
{
|
||||
m_ecl_file = ecl_file_open(m_filename.toAscii().data());
|
||||
if (!m_ecl_file)
|
||||
{
|
||||
m_ecl_file = ecl_file_open(m_filename.toAscii().data());
|
||||
}
|
||||
|
||||
if (!m_ecl_file) return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user