mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-07-29 18:37:55 -05:00
The stream::open() functions require c_str()
This commit is contained in:
@@ -292,7 +292,7 @@ namespace Opm
|
|||||||
const std::string& filename,
|
const std::string& filename,
|
||||||
const int desiredResportStep )
|
const int desiredResportStep )
|
||||||
{
|
{
|
||||||
std::ifstream restorefile( filename );
|
std::ifstream restorefile( filename.c_str() );
|
||||||
if( restorefile )
|
if( restorefile )
|
||||||
{
|
{
|
||||||
std::cout << "============================================================================"<<std::endl;
|
std::cout << "============================================================================"<<std::endl;
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ namespace Opm
|
|||||||
std::string backupfilename = param.getDefault("backupfile", std::string("") );
|
std::string backupfilename = param.getDefault("backupfile", std::string("") );
|
||||||
if( ! backupfilename.empty() )
|
if( ! backupfilename.empty() )
|
||||||
{
|
{
|
||||||
backupfile_.open( backupfilename );
|
backupfile_.open( backupfilename.c_str() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user