Peano
Loading...
Searching...
No Matches
InitDG.InitDofsIntermediatePhaseTest6 Class Reference

Inherit from the class for test1. More...

Inheritance diagram for InitDG.InitDofsIntermediatePhaseTest6:
Collaboration diagram for InitDG.InitDofsIntermediatePhaseTest6:

Static Public Attributes

str templateTouchCellFirstTime
 
str templateTouchFaceFirstTime
 
- Static Public Attributes inherited from InitDG.InitDofsIntermediatePhaseTest1
str templateEndTraversal
 
str templateTouchFaceFirstTime
 
str templateTouchCellFirstTime
 
- Static Public Attributes inherited from peano4.solversteps.ActionSet.ActionSet
str OPERATION_BEGIN_TRAVERSAL = "beginTraversal"
 
str OPERATION_END_TRAVERSAL = "endTraversal"
 
str OPERATION_CREATE_PERSISTENT_VERTEX = "createPersistentVertex"
 
str OPERATION_DESTROY_PERSISTENT_VERTEX = "destroyPersistentVertex"
 
str OPERATION_CREATE_HANGING_VERTEX = "createHangingVertex"
 
str OPERATION_DESTROY_HANGING_VERTEX = "destroyHangingVertex"
 
str OPERATION_CREATE_PERSISTENT_FACE = "createPersistentFace"
 
str OPERATION_DESTROY_PERSISTENT_FACE = "destroyPersistentFace"
 
str OPERATION_CREATE_HANGING_FACE = "createHangingFace"
 
str OPERATION_DESTROY_HANGING_FACE = "destroyHangingFace"
 
str OPERATION_CREATE_CELL = "createCell"
 
str OPERATION_DESTROY_CELL = "destroyCell"
 
str OPERATION_TOUCH_VERTEX_FIRST_TIME = "touchVertexFirstTime"
 
str OPERATION_TOUCH_VERTEX_LAST_TIME = "touchVertexLastTime"
 
str OPERATION_TOUCH_FACE_FIRST_TIME = "touchFaceFirstTime"
 
str OPERATION_TOUCH_FACE_LAST_TIME = "touchFaceLastTime"
 
str OPERATION_TOUCH_CELL_FIRST_TIME = "touchCellFirstTime"
 
str OPERATION_TOUCH_CELL_LAST_TIME = "touchCellLastTime"
 

Additional Inherited Members

- Public Member Functions inherited from InitDG.InitDofsIntermediatePhaseTest1
 __init__ (self, solver)
 
 get_attributes (self)
 Return attributes as copied and pasted into the generated class.
 
 get_static_initialisations (self, full_qualified_classname)
 
 get_body_of_operation (self, operation_name)
 Return actual C++ code snippets to be inserted into C++ code.
 
 get_action_set_name (self)
 Configure name of generated C++ action set.
 
 user_should_modify_template (self)
 Is the user allowed to modify the output.
 
 get_includes (self)
 Return include statements that you need.
 
- Public Member Functions inherited from peano4.solversteps.ActionSet.ActionSet
 get_constructor_body (self)
 Define a tailored constructor body.
 
 get_destructor_body (self)
 
 get_body_of_getGridControlEvents (self)
 
 get_body_of_prepareTraversal (self)
 
 get_body_of_unprepareTraversal (self)
 
- Data Fields inherited from InitDG.InitDofsIntermediatePhaseTest1
 d
 
 templateTouchCellFirstTime
 
 templateTouchFaceFirstTime
 
 templateEndTraversal
 
- Data Fields inherited from peano4.solversteps.ActionSet.ActionSet
 descend_invocation_order
 
 parallel
 

Detailed Description

Inherit from the class for test1.

Definition at line 604 of file InitDG.py.

Field Documentation

◆ templateTouchCellFirstTime

str InitDG.InitDofsIntermediatePhaseTest6.templateTouchCellFirstTime
static
Initial value:
= """
if (
fineGridCell{{SOLVER_NAME}}.getType() != celldata::{{SOLVER_NAME}}::Type::Coarse
and
Counter==0
) {
// now let's finish updating rhs
tarch::la::Vector< repositories::{{SOLVER_INSTANCE}}.FaceUnknownsSolution*TwoTimesD, double > faceSol;
for (int f=0; f<TwoTimesD; f++)
for (int s=0; s<repositories::{{SOLVER_INSTANCE}}.FaceUnknownsSolution; s++)
faceSol( f*repositories::{{SOLVER_INSTANCE}}.FaceUnknownsSolution + s ) = fineGridFaces{{SOLVER_NAME}}(f).getRandSolution(s);
// next, we need to project solution on face onto the cell...
auto projection = repositories::{{SOLVER_INSTANCE}}.getCellFromFaceMatrix(marker.x(), marker.h()) * faceSol;
fineGridCell{{SOLVER_NAME}}.setRhs( fineGridCell{{SOLVER_NAME}}.getRhs( ) + projection );
}
"""

Definition at line 608 of file InitDG.py.

Referenced by solvers.api.actionsets.CollocatedMGSolver.InitDofs.InitDofsCollocatedMG.get_body_of_operation(), solvers.api.actionsets.CollocatedMGSolver.ResetAndUpdateResidual.ResetAndUpdateResidual.get_body_of_operation(), solvers.api.actionsets.CollocatedSolver.InitDofs.InitDofsCollocated.get_body_of_operation(), solvers.api.actionsets.CollocatedSolver.ResetAndUpdateResidual.ResetAndUpdateResidual.get_body_of_operation(), ProjectResidualsAndDiagonalOntoFacets.ProjectResidualsAndDiagonalOntoFacets.get_body_of_operation(), UpdateCell.UpdateCell.get_body_of_operation(), UpdateFacets.UpdateFacets.get_body_of_operation(), solvers.api.actionsets.DGCGCoupling.AbstractDGCGCoupling.get_body_of_operation(), solvers.api.actionsets.DGSolver.ProjectIntoCellAndUpdateCellSolution.ProjectIntoCellAndUpdateCellSolution.get_body_of_operation(), solvers.api.actionsets.DGSolver.ProjectIntoCellAndUpdateCellSolutionWithTasks.ProjectIntoCellAndUpdateCellSolutionWithTasks.get_body_of_operation(), solvers.api.actionsets.DGSolver.ProjectOntoFaces.ProjectOntoFaces.get_body_of_operation(), solvers.api.actionsets.DGSolver.UpdateResidual.UpdateResidual.get_body_of_operation(), solvers.api.actionsets.DGSolver.UpdateResidualWithTasks.UpdateResidualWithTasks.get_body_of_operation(), solvers.api.actionsets.InitHigherOrderDofs.InitHigherOrderDofs.get_body_of_operation(), api.actionsets.InitPetsc.SendDofsToVertices.get_body_of_operation(), api.actionsets.PlotExactSolution.PlotExactSolution.get_body_of_operation(), initCollocatedRandom.InitDofsCollocatedRandomRhs.get_body_of_operation(), InitDG.InitDofsDGTest1.get_body_of_operation(), and test8.InitDofsTest8.get_body_of_operation().

◆ templateTouchFaceFirstTime


The documentation for this class was generated from the following file: