Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A amdis-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • Deployments
    • Deployments
    • Releases
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • amdis
  • amdis-core
  • Merge requests
  • !38

Backup and restore facilities

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Praetorius, Simon requested to merge feature/backup_restore into master Apr 27, 2019
  • Overview 7
  • Commits 5
  • Changes 14

Added backup and restore facilities for grid and dofvector. Either call

problemStat.backup(adaptInfo);

(This will backup the files to [name]->backup->grid and [name]->backup->solution) and instead of initialize() call the function

problemStat.restore(INIT_ALL);

(This will read the grid and solution from the files [name]->restore->grid and [name]->restore->solution)

Or you can call

problemStat.backup(filename)

and

problemStat.restore(filename) -> std::unique_ptr<Grid>

directly to backup and restore the grid of the problemStat and dofvector.backup(filename) and dofvector.restore(filename) to backup and restore the data of the dofvector.

If the grid does not support backup-restore, the current gridView is written. This means that the hierarchy information is lost. A warning is printed in this case.

Edited Apr 27, 2019 by Praetorius, Simon
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/backup_restore