|
Peano
|
This file is part of the ExaGRyPE project. More...
Functions | |
| create_copy_task (name, source_patch, target_solver, auxiliary_copies) | |
| Create the task that fills the auxiliary variables of a solver with data of another solver. | |
This file is part of the ExaGRyPE project.
For conditions of distribution and use, please see the copyright notice at www.peano-framework.org
| exagrype.api.scalarfield.create_copy_task.create_copy_task | ( | name, | |
| source_patch, | |||
| target_solver, | |||
| auxiliary_copies ) |
Create the task that fills the auxiliary variables of a solver with data of another solver.
The task copies source_patch into the auxiliary variables auxiliary_copies of target_solver (interpolating piecewise linearly if the patches differ in size), projects them onto the faces, restricts them on hanging faces, and rolls the faces over. The solver then reconstructs the halo of the auxiliary variables from the faces. The task is the one place that writes new face data of the auxiliary variables. It keeps the source patch alive, i.e. the solver that owns it can still read it afterwards. The caller adds the task to a graph and wires it.
| name | str Name of the task. |
| source_patch | peano4.api.datamodel.Patch The data to copy, i.e. the persistent patch of the producing solver, or its input of a Runge-Kutta stage. |
| target_solver | exahype2.api.Solver Holds the auxiliary variables. It needs a numerical scheme already. |
| auxiliary_copies | exahype2.api.AuxiliaryVariables The auxiliary variables of the target solver. |
Definition at line 12 of file create_copy_task.py.