Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
dune-curvedgrid
Commits
47dbf1b8
Commit
47dbf1b8
authored
Jan 31, 2020
by
Praetorius, Simon
Browse files
backup restore only uses filename not fileprefix+path
parent
4d644e1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
dune/curvedsurfacegrid/backuprestore.hh
View file @
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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment