Skip to content
Snippets Groups Projects

Rewrite adaption interface to allow to attach bases to the grid-transfer

Merged Praetorius, Simon requested to merge feature/transfer_interface into master
1 unresolved thread

The GlobalBasis needs to be updated after each grid change. So, we have added a list of callbacks that are called in the GridTransfer class in preAdapt(), after adapt() and in postAdapt(). There are two types of supported data:

  1. Classes with preAdapt(bool) and postAdapt(bool)
  2. Classes with update(gridView())

The first one is typically implemented by data containers that need interpolation. The second one is implemented by a basis.

The DOFVector and its basis are automatically registered in the GridTransfer in construction of the DOFVector. If you have a data-container or a basis independent of a DOFVector you have to attach (and detach before destruction) yourself. Therefore, simply call

GridTransferManager::attach(grid, data); // or
GridTransferManager::detach(grid, data);

where data must implement on of the interface 1. or 2., described also in the AdaptionInterface.hh.

Note, the adaption cycle works as follows:

  1. preAdapt
  2. adapt
  3. update
  4. postAdapt

So, in the postAdapt step we can assume that all update callbacks are executed. The order of the update methods could be random, though. And also the order of the pre/postAdapt callbacks is arbitrary.

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
  • added 1 commit

    • afc1ca8a - Update bases before postAdapt of data

    Compare with previous version

  • added 1 commit

    • 9f18e5e9 - Wrapper for GlobalBasis with automatic adaption added

    Compare with previous version

  • added 1 commit

    • cd8420fb - register global basis in GridTransfer via DOFVector

    Compare with previous version

  • Praetorius, Simon added 16 commits

    added 16 commits

    • cd8420fb...94bb365d - 12 commits from branch master
    • 003477c7 - initial commit of rewritten adaption interface to allow to attach bases to the grid-transfer
    • 2f4cbfea - Update bases before postAdapt of data
    • 7b4f026e - Wrapper for GlobalBasis with automatic adaption added
    • 4ccc8750 - register global basis in GridTransfer via DOFVector

    Compare with previous version

  • added 1 commit

    • acbae6de - GridTransfer cleaned up for new atach and detach mechanisms

    Compare with previous version

  • Praetorius, Simon unmarked as a Work In Progress

    unmarked as a Work In Progress

  • Praetorius, Simon changed title from WIP: rewrite adaption interface to allow to attach bases to the grid-transfer to Rewrite adaption interface to allow to attach bases to the grid-transfer

    changed title from WIP: rewrite adaption interface to allow to attach bases to the grid-transfer to Rewrite adaption interface to allow to attach bases to the grid-transfer

  • Praetorius, Simon changed the description

    changed the description

  • Praetorius, Simon resolved all discussions

    resolved all discussions

  • 1 #pragma once
    2
    3 #include <list>
    4
    5 #include <amdis/Output.hpp>
  • added 1 commit

    Compare with previous version

  • Praetorius, Simon changed the description

    changed the description

  • mentioned in commit e9859f1d

  • Please register or sign in to reply
    Loading