#include <dune/grid/albertagrid/backuprestore.hh>
|
| static void | backup (const Grid &grid, const std::string &filename) |
| | write a hierarchic grid to disk
|
| static void | backup (const Grid &, std::ostream &) |
| | write a hierarchic grid to disk
|
| static Grid * | restore (const std::string &filename) |
| | read a hierarchic grid from disk
|
| static Grid * | restore (std::istream &) |
| | read a hierarchic grid from disk
|
◆ Grid
template<int dim, int dimworld>
◆ backup() [1/2]
template<int dim, int dimworld>
write a hierarchic grid to disk
- Parameters
-
| [in] | grid | grid to write |
| [in] | filename | filename of the file to create |
- Note
- This method might create multiple files based on the filename plus internal extension.
-
This method is not available for AlbertGrid. Use try/catch to catch the NotImplemented exception and fall back to the other backup method.
◆ backup() [2/2]
template<int dim, int dimworld>
write a hierarchic grid to disk
- Parameters
-
| [in] | grid | grid to write |
| [in] | filename | filename of the file to create |
- Note
- This method might create multiple files based on the filename plus internal extension.
◆ restore() [1/2]
template<int dim, int dimworld>
read a hierarchic grid from disk
- Parameters
-
| [in] | filename | filename of the file to read |
- Returns
- a pointer to the grid (allocated by new)
- Note
- This method might require multiple files based on the filename plus some extension.
◆ restore() [2/2]
template<int dim, int dimworld>
read a hierarchic grid from disk
- Parameters
-
| [in] | filename | filename of the file to read |
- Returns
- a pointer to the grid (allocated by new)
- Note
- This method might require multiple files based on the filename plus some extension.
-
This method is not available for AlbertGrid. Use try/catch to catch the NotImplemented exception and fall back to the other restore method.
The documentation for this struct was generated from the following file: