Peano
Loading...
Searching...
No Matches
exagrype.api.scalarfield.create_copy_task Namespace Reference

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.

Detailed Description

This file is part of the ExaGRyPE project.

For conditions of distribution and use, please see the copyright notice at www.peano-framework.org

Function Documentation

◆ create_copy_task()

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.

Parameters
namestr Name of the task.
source_patchpeano4.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_solverexahype2.api.Solver Holds the auxiliary variables. It needs a numerical scheme already.
auxiliary_copiesexahype2.api.AuxiliaryVariables The auxiliary variables of the target solver.
Returns
peano4.api.taskgraph.Task

Definition at line 12 of file create_copy_task.py.