mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
Check if file pointer is present before creating a new file pointer
p4#: 21295
This commit is contained in:
parent
9e588e38c3
commit
e9743257ea
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user