Peano
Loading...
Searching...
No Matches
DGCGCoupling.Test7Coupling Class Reference
Inheritance diagram for DGCGCoupling.Test7Coupling:
Collaboration diagram for DGCGCoupling.Test7Coupling:

Public Member Functions

 get_includes (self)
 We need the solver repository in this action set, as we directly access the solver object.
 get_attributes (self)
 get_static_initialisations (self, full_qualified_classname)
 get_body_of_operation (self, operation_name)

Data Fields

 d

Static Public Attributes

str templateTouchCellFirstTime
str templateEndTraversal

Detailed Description

Definition at line 415 of file DGCGCoupling.py.

Member Function Documentation

◆ get_attributes()

DGCGCoupling.Test7Coupling.get_attributes ( self)

Definition at line 458 of file DGCGCoupling.py.

References get_attributes().

Referenced by get_attributes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_body_of_operation()

DGCGCoupling.Test7Coupling.get_body_of_operation ( self,
operation_name )

Definition at line 467 of file DGCGCoupling.py.

◆ get_includes()

DGCGCoupling.Test7Coupling.get_includes ( self)

We need the solver repository in this action set, as we directly access the solver object.

We also need access to Peano's d-dimensional loops.

Definition at line 443 of file DGCGCoupling.py.

◆ get_static_initialisations()

DGCGCoupling.Test7Coupling.get_static_initialisations ( self,
full_qualified_classname )

Definition at line 463 of file DGCGCoupling.py.

References get_static_initialisations().

Referenced by get_static_initialisations().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ d

◆ templateEndTraversal

DGCGCoupling.Test7Coupling.templateEndTraversal
static
Initial value:
= """
firstCycleCounter++;
"""

Definition at line 439 of file DGCGCoupling.py.

Referenced by InitDG.InitDofsIntermediatePhaseTest1.get_body_of_operation().

◆ templateTouchCellFirstTime

str DGCGCoupling.Test7Coupling.templateTouchCellFirstTime
static
Initial value:
= """
if (
firstCycleCounter==0
and
fineGridCell{{DG_SOLVER_NAME}}.getType() != celldata::{{DG_SOLVER_NAME}}::Type::Coarse
){
// finish updating rhs
tarch::la::Vector< repositories::{{DG_SOLVER_INSTANCE}}.CellUnknowns, double > rhs;
// fetch the faces
tarch::la::Vector< repositories::{{DG_SOLVER_INSTANCE}}.FaceUnknownsSolution*TwoTimesD, double > faceSol;
for (int f=0; f<TwoTimesD; f++)
for (int s=0; s<repositories::{{DG_SOLVER_INSTANCE}}.FaceUnknownsSolution; s++)
faceSol( f*repositories::{{DG_SOLVER_INSTANCE}}.FaceUnknownsSolution + s ) = fineGridFaces{{DG_SOLVER_NAME}}(f).getRandSolutions(s);
fineGridCell{{DG_SOLVER_NAME}}.setRhs(
fineGridCell{{DG_SOLVER_NAME}}.getRhs()
+
repositories::{{DG_SOLVER_INSTANCE}}.getCellFromFaceMatrix(marker.x(), marker.h()) * faceSol
);
}
""" + mghype.matrixfree.solvers.api.actionsets.MultiplicativeDGCGCoupling.templateTouchCellFirstTime

Definition at line 416 of file DGCGCoupling.py.

Referenced by initCollocatedRandom.InitDofsCollocatedRandomRhs.get_body_of_operation(), InitDG.InitDofsDGTest1.get_body_of_operation(), InitDG.InitDofsIntermediatePhaseTest1.get_body_of_operation(), and test8.InitDofsTest8.get_body_of_operation().


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