Commit 5497dfa9 authored by Stenger, Florian's avatar Stenger, Florian
Browse files

Merge branch 'issue/backup_restore' into 'master'

backup restore only uses filename not fileprefix+path

See merge request iwr/dune-curvedsurfacegrid!3
parents b14b8b28 47dbf1b8
......@@ -58,10 +58,10 @@ namespace Dune
typedef CurvedSurfaceGrid< HostGrid, CoordFunction, order, Allocator > Grid; //! $flo
typedef BackupRestoreFacility< HostGrid > HostBackupRestoreFacility;
static void backup ( const Grid &grid, const std::string &path, const std::string &fileprefix )
static void backup ( const Grid &grid, const std::string &filename )
{
// notice: We should also backup the coordinate function
HostBackupRestoreFacility::backup( grid.hostGrid(), path, fileprefix );
HostBackupRestoreFacility::backup( grid.hostGrid(), filename );
}
static void backup ( const Grid &grid, const std::ostream &stream )
......@@ -70,10 +70,10 @@ namespace Dune
HostBackupRestoreFacility::backup( grid.hostGrid(), stream );
}
static Grid *restore ( const std::string &path, const std::string &fileprefix )
static Grid *restore ( const std::string &filename )
{
// notice: We should also restore the coordinate function
HostGrid *hostGrid = HostBackupRestoreFacility::restore( path, fileprefix );
HostGrid *hostGrid = HostBackupRestoreFacility::restore( filename );
CoordFunction *coordFunction = new CoordFunction();
return new Grid( hostGrid, coordFunction );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment