Skip to content
Snippets Groups Projects

Backup and restore facilities

Merged Praetorius, Simon requested to merge feature/backup_restore into master
All threads resolved!

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 by Praetorius, Simon

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Müller, Felix
  • added 1 commit

    • e2aefebc - replace try-catch with grid capability check

    Compare with previous version

  • Praetorius, Simon resolved all discussions

    resolved all discussions

  • mentioned in commit d0a4cbdf

  • Please register or sign in to reply
    Loading