Peano
Loading...
Searching...
No Matches
peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi Class Reference
Inheritance diagram for peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi:
Collaboration diagram for peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi:

Public Member Functions

 __init__ (self, vertex_data, relaxation_coefficient, rhs_expr, unknown_setter="setU", unknown_getter="getU", residual_setter="setResidual", residual_getter="getResidual", store_residual_persistently_and_update_in_touch_first=True)
 :Attibutes:
 get_body_of_createGridControlEventsForNextTraversal (self)
 Return the grid control events that this action set wants to trigger.
 get_action_set_name (self)
 Return unique action set name.
 user_should_modify_template (self)
 Is the user allowed to modify the output.
 get_body_of_operation (self, operation_name)
 Return actual C++ code snippets to be inserted into C++ code.
 get_attributes (self)
 Return attributes as copied and pasted into the generated class.
 get_includes (self)
 Return include statements that you need.
Public Member Functions inherited from peano4.api.solversteps.ActionSet.ActionSet
 __init__ (self, descend_invocation_order=0, parallel=False)
 get_constructor_body (self)
 Define a tailored constructor body.
 get_static_initialisations (self, full_qualified_classname)
 get_destructor_body (self)
 get_implementation_of_createGridControlEventsForNextTraversal (self)
 Return the C++ implementation of createGridControlEventsForNextTraversal().
 get_body_of_prepareTraversal (self)
 get_implementation_of_prepareTraversal (self)
 Return the C++ implementation of prepareTraversal().
 get_body_of_unprepareTraversal (self)
 get_implementation_of_unprepareTraversal (self)
 Return the C++ implementation of unprepareTraversal().
 get_guard_of_operation (self, operation_name)
 Return the guard of an operation.
 get_implementation_of_operation (self, operation_name)
 Return the C++ implementation of an operation.
bool may_run_in_background_task (self)
 May a task graph compiler move touchCellFirstTime() into a task.

Data Fields

dict d = {}
str additional_includes = ""

Static Public Attributes

str Template_ResetResidual
str Template_CreateHangingVertex
str Template_TouchCellFirstTime
str Template_UpdateValue
str Template_CreatePersistentVertex
Static Public Attributes inherited from peano4.api.solversteps.ActionSet.ActionSet
int descend_invocation_order = 0
bool parallel = False
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"

Protected Attributes

 _store_residual_persistently_and_update_in_touch_first = store_residual_persistently_and_update_in_touch_first

Static Private Attributes

 __Template_Constructor = jinja2.Template()

Detailed Description

Definition at line 9 of file MatrixFreeJacobi.py.

Constructor & Destructor Documentation

◆ __init__()

peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.__init__ ( self,
vertex_data,
relaxation_coefficient,
rhs_expr,
unknown_setter = "setU",
unknown_getter = "getU",
residual_setter = "setResidual",
residual_getter = "getResidual",
store_residual_persistently_and_update_in_touch_first = True )

:Attibutes:

vertex_data: DaStGen object This object must have at least two attributes: A double value u and a double value residual.

kappa_expr: C++ code (string) Material parameter. Pass in 1.0 if there's no jump anywhere.

Definition at line 13 of file MatrixFreeJacobi.py.

Member Function Documentation

◆ get_action_set_name()

peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.get_action_set_name ( self)

Return unique action set name.

Returns a description (word) for the mapping which is also used as class name for the generated type. As a consequence, the result should be one word (if possible) and uppercase. Also, every subclass should overwrite this routine.

The generator will take the result and construct eventually classes similar to MyStep2Dummy.h and MyStep2Dummy.cpp or similar for the example below, where we return Dummy.

Reimplemented from peano4.api.solversteps.ActionSet.ActionSet.

Definition at line 52 of file MatrixFreeJacobi.py.

◆ get_attributes()

peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.get_attributes ( self)

Return attributes as copied and pasted into the generated class.

Please note that action sets are not persistent, i.e. there is one object creation per grid sweep per tree.

Reimplemented from peano4.api.solversteps.ActionSet.ActionSet.

Definition at line 181 of file MatrixFreeJacobi.py.

◆ get_body_of_createGridControlEventsForNextTraversal()

peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.get_body_of_createGridControlEventsForNextTraversal ( self)

Return the grid control events that this action set wants to trigger.

Please consult the documentation of grid control events for details on what these events are and how they are used.

Reimplemented from peano4.api.solversteps.ActionSet.ActionSet.

Definition at line 48 of file MatrixFreeJacobi.py.

◆ get_body_of_operation()

peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.get_body_of_operation ( self,
operation_name )

Return actual C++ code snippets to be inserted into C++ code.

See class' string constants starting with OPERATION_ for possible values of operation_name. The snippet is executed if and only if the guard returned by get_guard_of_operation() holds, i.e. the body should not evaluate the guard itself. See the section "Guard and body" in the class documentation.

Reimplemented from peano4.api.solversteps.ActionSet.ActionSet.

Definition at line 133 of file MatrixFreeJacobi.py.

References _store_residual_persistently_and_update_in_touch_first, api.actionsets.EnumerateDoFs.EnumerateDoFs.d, api.actionsets.ImposeDirichletBoundaryConditions.ImposeDirichletBoundaryConditions.d, api.actionsets.ImposeDirichletBoundaryConditionsWithInteriorPenaltyMethod.ImposeDirichletBoundaryConditionsWithInteriorPenaltyMethod.d, api.actionsets.InitCellDoFs.InitCellDoFs.d, api.actionsets.InitFaceDoFs.InitFaceDoFs.d, api.actionsets.InitPetsc.SendDofsToVertices.d, api.actionsets.InitVertexDoFs.InitVertexDoFs.d, api.actionsets.PlotDGDataInPeanoBlockFormat.PlotDGDataInPeanoBlockFormat.d, api.actionsets.PlotExactSolution.PlotExactSolution.d, api.actionsets.ProjectPETScSolutionBackOntoMesh.ProjectPETScSolutionOnCellsBackOntoMesh.d, api.actionsets.ProjectPETScSolutionBackOntoMesh.ProjectPETScSolutionOnVerticesBackOntoMesh.d, api.solvers.CollocatedLowOrderDiscretisation.AssemblePetscMatrix.d, api.solvers.DiscontinuousGalerkinDiscretisation.AssemblePetscMatrix.d, archive_AssemblePETSCMatrix.AssemblePETSCMatrixOnCellsAndFaces.d, exahype2.api.fv.actionsets.ApplyDirichletBoundaryConditions.ApplyDirichletBoundaryConditions.d, exahype2.api.fv.actionsets.RollOverUpdatedFace.RollOverUpdatedFace.d, exahype2.api.rkfd4.actionsets.ApplyDirichletBoundaryConditions.ApplyDirichletBoundaryConditions.d, exahype2.api.rkfd4.actionsets.RollOverUpdatedFace.RollOverUpdatedFace.d, exaparty.api.actionsets.Cleanup.Cleanup.d, exaparty.api.actionsets.DynamicMeshRefinementAnalysis.DynamicMeshRefinementAnalysis.d, exaparty.api.actionsets.ScatterGlobalMemory.ScatterGlobalMemory.d, exaparty.api.actionsets.SynchroniseVerticesWithPreviousMeshSweep.SynchroniseVerticesWithPreviousMeshSweep.d, exaparty.api.actionsets.UpdateParticleMarker.UpdateParticleMarker.d, exaparty.api.boundaryconditions.Fixed.Fixed.d, peano4.api.datamodel.ModelToDataRepository.ModelToDataRepository.d, peano4.api.output.Constants.Constants.d, peano4.api.output.Jinja2TemplatedHeaderFile.Jinja2TemplatedHeaderFile.d, peano4.api.output.Jinja2TemplatedHeaderImplementationFilePair.Jinja2TemplatedHeaderImplementationFilePair.d, peano4.api.output.Jinja2TemplateStringHeaderImplementationFilePair.Jinja2TemplateStringHeaderImplementationFilePair.d, peano4.api.output.Makefile.Makefile.d, peano4.api.output.Observer.Observer.d, peano4.api.output.TemplatedHeaderFile.TemplatedHeaderFile.d, peano4.api.output.TemplatedHeaderImplementationFilePair.TemplatedHeaderImplementationFilePair.d, peano4.api.runner.DefaultSequence.DefaultSequence.d, peano4.api.solversteps.StepsToStepRepository.StepsToStepRepository.d, peano4.api.toolbox.CreateRegularGrid.CreateRegularGrid.d, peano4.api.toolbox.multigrid.cellbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.d, d, ProjectResidualsAndDiagonalOntoFacets.ProjectResidualsAndDiagonalOntoFacets.d, solvers.api.actionsets.CollocatedMGSingleThreaded.UpdateSolution.UpdateSolution.d, solvers.api.actionsets.CollocatedMGSolver.InitDofs.InitDofsCollocatedMG.d, solvers.api.actionsets.CollocatedMGSolver.Prolongation.Prolongation.d, solvers.api.actionsets.CollocatedMGSolver.ResetAndUpdateResidual.ResetAndUpdateResidual.d, solvers.api.actionsets.CollocatedMGSolver.Restriction.Restriction.d, solvers.api.actionsets.CollocatedMGSolver.UpdateSolution.UpdateSolution.d, solvers.api.actionsets.CollocatedSolver.InitDofs.InitDofsCollocated.d, solvers.api.actionsets.CollocatedSolver.ResetAndUpdateResidual.ResetAndUpdateResidual.d, solvers.api.actionsets.CollocatedSolver.UpdateSolution.UpdateSolution.d, solvers.api.actionsets.DGCGCoupling.AbstractDGCGCoupling.d, solvers.api.actionsets.DGCGCoupling.AdditiveDGCGCoupling.d, solvers.api.actionsets.DGCGCoupling.MultiplicativeDGCGCoupling.d, solvers.api.actionsets.DGSolver.ProjectIntoCellAndUpdateCellSolution.ProjectIntoCellAndUpdateCellSolution.d, solvers.api.actionsets.DGSolver.ProjectIntoCellAndUpdateCellSolutionWithTasks.ProjectIntoCellAndUpdateCellSolutionWithTasks.d, solvers.api.actionsets.DGSolver.ProjectOntoFaces.ProjectOntoFaces.d, solvers.api.actionsets.DGSolver.UpdateFaceSolution.UpdateFaceSolution.d, solvers.api.actionsets.DGSolver.UpdateResidual.UpdateResidual.d, solvers.api.actionsets.DGSolver.UpdateResidualWithTasks.UpdateResidualWithTasks.d, solvers.api.actionsets.InitHigherOrderDofs.InitHigherOrderDofs.d, solvers.api.actionsets.PlotDGDataInPeanoBlockFormat.PlotDGDataInPeanoBlockFormat.d, solvers.api.actionsets.PlotDGPatchesInPeanoBlockFormat.PlotDGPatchesInPeanoBlockFormat.d, solvers.api.actionsets.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.d, UpdateCell.UpdateCell.d, UpdateFacets.UpdateFacets.d, Template_CreateHangingVertex, Template_CreatePersistentVertex, Template_ResetResidual, api.actionsets.PlotDGDataInPeanoBlockFormat.PlotDGDataInPeanoBlockFormat.Template_TouchCellFirstTime, Template_TouchCellFirstTime, solvers.api.actionsets.PlotDGDataInPeanoBlockFormat.PlotDGDataInPeanoBlockFormat.Template_TouchCellFirstTime, solvers.api.actionsets.PlotDGPatchesInPeanoBlockFormat.PlotDGPatchesInPeanoBlockFormat.Template_TouchCellFirstTime, and Template_UpdateValue.

◆ get_includes()

◆ user_should_modify_template()

peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.user_should_modify_template ( self)

Is the user allowed to modify the output.

Return whether you expect the user to modify the generated code. If this is the case, then the API places the generated output in the directory actions. Otherwise, it goes into the observer directory and will be overwritten in each and every Python run.

Reimplemented from peano4.api.solversteps.ActionSet.ActionSet.

Definition at line 56 of file MatrixFreeJacobi.py.

Field Documentation

◆ __Template_Constructor

◆ _store_residual_persistently_and_update_in_touch_first

peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi._store_residual_persistently_and_update_in_touch_first = store_residual_persistently_and_update_in_touch_first
protected

◆ additional_includes

str peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.additional_includes = ""

Definition at line 44 of file MatrixFreeJacobi.py.

Referenced by api.ApplyPointWiselyToPatch.ApplyPointWiselyToPatch.get_includes(), api.DynamicAMR.DynamicAMR.get_includes(), api.InterpolateAndRestrictCells.InterpolateAndRestrictCells.get_includes(), api.InterpolateHangingFaces.InterpolateHangingFaces.get_includes(), api.PlotPatchesInPeanoBlockFormat.PlotPatchesInPeanoBlockFormat.get_includes(), api.PlotPatchesOverFacesInPeanoBlockFormat.PlotPatchesOverFacesInPeanoBlockFormat.get_includes(), api.ProjectPatchOntoFaces.ProjectPatchOntoFaces.get_includes(), api.ProjectPatchWithHaloOntoFaces.ProjectPatchWithHaloOntoFaces.get_includes(), api.ReconstructPatchWithHalo.ReconstructPatchWithHalo.get_includes(), api.RestrictHangingFaces.RestrictHangingFaces.get_includes(), get_includes(), peano4.api.toolbox.multigrid.vertexbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.get_includes(), peano4.api.toolbox.particles.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.get_includes(), peano4.api.toolbox.particles.InsertParticlesByCoordinates.InsertParticlesByCoordinates.get_includes(), peano4.api.toolbox.particles.InsertRandomParticlesIntoUnrefinedCells.InsertRandomParticlesIntoUnrefinedCells.get_includes(), peano4.api.toolbox.particles.PlotParticlesInVTKFormat.PlotParticlesInVTKFormat.get_includes(), peano4.api.toolbox.PlotCellDataInPeanoBlockFormat.PlotCellDataInPeanoBlockFormat.get_includes(), peano4.api.toolbox.PlotGridInPeanoBlockFormat.PlotGridInPeanoBlockFormat.get_includes(), and peano4.api.toolbox.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.get_includes().

◆ d

dict peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.d = {}

Definition at line 36 of file MatrixFreeJacobi.py.

Referenced by solvers.fv.actionsets.DynamicAMR.DynamicAMR.__init__(), solvers.fv.actionsets.ProjectPatchOntoFaces.ProjectPatchOntoFaces.__init__(), solvers.aderdg.kernels.AMRRoutines.AMRRoutines._build_gemms(), solvers.aderdg.kernels.FusedSpaceTimePredictorVolumeIntegral.FusedSpaceTimePredictorVolumeIntegral._build_gemms(), solvers.limiting.kernels.Limiter.Limiter._build_gemms(), peano4.api.toolbox.particles.PlotParticlesInVTKFormat.PlotParticlesInVTKFormat.add_attribute_to_plot(), solvers.aderdg.kernels.AMRRoutines.AMRRoutines.generate_kernels(), solvers.aderdg.kernels.CellData.CellData.generate_kernels(), solvers.aderdg.kernels.DGMatrices.DGMatrices.generate_kernels(), solvers.aderdg.kernels.FusedSpaceTimePredictorVolumeIntegral.FusedSpaceTimePredictorVolumeIntegral.generate_kernels(), solvers.aderdg.kernels.Quadrature.Quadrature.generate_kernels(), solvers.limiting.kernels.Limiter.Limiter.generate_kernels(), solvers.limiting.kernels.Quadrature.Quadrature.generate_kernels(), api.PlotPatchesInPeanoBlockFormat.PlotPatchesInPeanoBlockFormat.get_attributes(), peano4.api.toolbox.particles.api.AbstractUpdateParticleGridAssociation.AbstractUpdateParticleGridAssociation.get_attributes(), peano4.api.toolbox.particles.api.UpdateParticleGridAssociation_BucketSort.UpdateParticleGridAssociation_BucketSort.get_attributes(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_Sets.UpdateParticle_MultiLevelInteraction_Sets.get_attributes(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists.UpdateParticle_MultiLevelInteraction_StackOfLists.get_attributes(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.get_attributes(), api.BackupPatchOverlap.BackupPatchOverlap.get_body_of_operation(), api.DynamicAMR.DynamicAMR.get_body_of_operation(), api.InterpolateAndRestrictCells.InterpolateAndRestrictCells.get_body_of_operation(), api.InterpolateHangingFaces.InterpolateHangingFaces.get_body_of_operation(), api.PlotPatchesInPeanoBlockFormat.PlotPatchesInPeanoBlockFormat.get_body_of_operation(), api.PlotPatchesOverFacesInPeanoBlockFormat.PlotPatchesOverFacesInPeanoBlockFormat.get_body_of_operation(), api.ProjectPatchOntoFaces.ProjectPatchOntoFaces.get_body_of_operation(), api.RestrictHangingFaces.RestrictHangingFaces.get_body_of_operation(), DGCGCoupling.Test4Coupling.get_body_of_operation(), DGCGCoupling.Test5Coupling.get_body_of_operation(), initCollocatedRandom.InitDofsCollocatedRandomRhs.get_body_of_operation(), InitDG.InitDofsDGTest1.get_body_of_operation(), InitDG.InitDofsIntermediatePhaseTest1.get_body_of_operation(), get_body_of_operation(), peano4.api.toolbox.multigrid.vertexbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.get_body_of_operation(), peano4.api.toolbox.particles.api.UpdateParallelState.UpdateParallelState.get_body_of_operation(), peano4.api.toolbox.particles.api.UpdateParticleGridAssociation_BucketSort.UpdateParticleGridAssociation_BucketSort.get_body_of_operation(), peano4.api.toolbox.particles.api.UpdateParticleGridAssociation_LiftDrop.UpdateParticleGridAssociation_LiftDrop.get_body_of_operation(), peano4.api.toolbox.particles.api.UpdateParticleGridAssociation_Reassign.UpdateParticleGridAssociation_Reassign.get_body_of_operation(), peano4.api.toolbox.particles.GatherParticlesInMemoryPool.GatherParticlesInMemoryPool.get_body_of_operation(), peano4.api.toolbox.particles.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.get_body_of_operation(), peano4.api.toolbox.particles.InsertParticlesByCoordinates.InsertParticlesByCoordinates.get_body_of_operation(), peano4.api.toolbox.particles.InsertRandomParticlesIntoUnrefinedCells.InsertRandomParticlesIntoUnrefinedCells.get_body_of_operation(), peano4.api.toolbox.particles.ParticleAMR.ParticleAMR.get_body_of_operation(), peano4.api.toolbox.particles.ParticleTreeAnalysis.ParticleTreeAnalysis.get_body_of_operation(), peano4.api.toolbox.particles.PlotParticlesInVTKFormat.PlotParticlesInVTKFormat.get_body_of_operation(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_Sets.UpdateParticle_MultiLevelInteraction_Sets.get_body_of_operation(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists.UpdateParticle_MultiLevelInteraction_StackOfLists.get_body_of_operation(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.get_body_of_operation(), peano4.api.toolbox.particles.UpdateParticle_SingleLevelInteraction.UpdateParticle_SingleLevelInteraction.get_body_of_operation(), peano4.api.toolbox.particles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.get_body_of_operation(), peano4.api.toolbox.PlotCellDataInPeanoBlockFormat.PlotCellDataInPeanoBlockFormat.get_body_of_operation(), peano4.api.toolbox.PlotGridInPeanoBlockFormat.PlotGridInPeanoBlockFormat.get_body_of_operation(), peano4.api.toolbox.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.get_body_of_operation(), solvers.fv.actionsets.RollOverUpdatedFace.RollOverUpdatedFace.get_body_of_operation(), test8.InitDofsTest8.get_body_of_operation(), tracer.DumpTracerIntoDatabase.DumpTracerIntoDatabase.get_body_of_operation(), tracer.InsertParticlesFromFile.InsertParticlesFromFile.get_body_of_operation(), peano4.api.toolbox.particles.api.UpdateParallelState.UpdateParallelState.get_body_of_prepareTraversal(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_Sets.UpdateParticle_MultiLevelInteraction_Sets.get_body_of_prepareTraversal(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists.UpdateParticle_MultiLevelInteraction_StackOfLists.get_body_of_prepareTraversal(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.get_body_of_prepareTraversal(), peano4.api.toolbox.particles.UpdateParticle_SingleLevelInteraction.UpdateParticle_SingleLevelInteraction.get_body_of_prepareTraversal(), peano4.api.toolbox.particles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.get_body_of_prepareTraversal(), peano4.api.toolbox.particles.api.AbstractUpdateParticleGridAssociation.AbstractUpdateParticleGridAssociation.get_body_of_unprepareTraversal(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_Sets.UpdateParticle_MultiLevelInteraction_Sets.get_body_of_unprepareTraversal(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists.UpdateParticle_MultiLevelInteraction_StackOfLists.get_body_of_unprepareTraversal(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.get_body_of_unprepareTraversal(), peano4.api.toolbox.particles.UpdateParticle_SingleLevelInteraction.UpdateParticle_SingleLevelInteraction.get_body_of_unprepareTraversal(), peano4.api.toolbox.particles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.get_body_of_unprepareTraversal(), api.DynamicAMR.DynamicAMR.get_clear_guard(), api.PlotPatchesInPeanoBlockFormat.PlotPatchesInPeanoBlockFormat.get_constructor_body(), api.PlotPatchesOverFacesInPeanoBlockFormat.PlotPatchesOverFacesInPeanoBlockFormat.get_constructor_body(), peano4.api.toolbox.particles.api.AbstractUpdateParticleGridAssociation.AbstractUpdateParticleGridAssociation.get_constructor_body(), peano4.api.toolbox.particles.InsertParticlesByCoordinates.InsertParticlesByCoordinates.get_constructor_body(), peano4.api.toolbox.particles.PlotParticlesInVTKFormat.PlotParticlesInVTKFormat.get_constructor_body(), peano4.api.toolbox.PlotCellDataInPeanoBlockFormat.PlotCellDataInPeanoBlockFormat.get_constructor_body(), peano4.api.toolbox.PlotGridInPeanoBlockFormat.PlotGridInPeanoBlockFormat.get_constructor_body(), peano4.api.toolbox.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.get_constructor_body(), tracer.DumpTracerIntoDatabase.DumpTracerIntoDatabase.get_constructor_body(), peano4.api.toolbox.particles.api.UpdateParticleGridAssociation_BucketSort.UpdateParticleGridAssociation_BucketSort.get_destructor_body(), api.BackupPatchOverlap.BackupPatchOverlap.get_guard_of_operation(), api.PlotPatchesInPeanoBlockFormat.PlotPatchesInPeanoBlockFormat.get_guard_of_operation(), api.PlotPatchesOverFacesInPeanoBlockFormat.PlotPatchesOverFacesInPeanoBlockFormat.get_guard_of_operation(), api.ProjectPatchOntoFaces.ProjectPatchOntoFaces.get_guard_of_operation(), peano4.api.toolbox.multigrid.vertexbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.get_guard_of_operation(), peano4.api.toolbox.PlotCellDataInPeanoBlockFormat.PlotCellDataInPeanoBlockFormat.get_guard_of_operation(), peano4.api.toolbox.PlotGridInPeanoBlockFormat.PlotGridInPeanoBlockFormat.get_guard_of_operation(), peano4.api.toolbox.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.get_guard_of_operation(), peano4.api.toolbox.particles.api.AbstractUpdateParticleGridAssociation.AbstractUpdateParticleGridAssociation.get_includes(), peano4.api.toolbox.particles.api.UpdateParallelState.UpdateParallelState.get_includes(), peano4.api.toolbox.particles.GatherParticlesInMemoryPool.GatherParticlesInMemoryPool.get_includes(), peano4.api.toolbox.particles.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.get_includes(), peano4.api.toolbox.particles.InsertParticlesByCoordinates.InsertParticlesByCoordinates.get_includes(), peano4.api.toolbox.particles.InsertRandomParticlesIntoUnrefinedCells.InsertRandomParticlesIntoUnrefinedCells.get_includes(), peano4.api.toolbox.particles.ParticleAMR.ParticleAMR.get_includes(), peano4.api.toolbox.particles.ParticleTreeAnalysis.ParticleTreeAnalysis.get_includes(), peano4.api.toolbox.particles.PlotParticlesInVTKFormat.PlotParticlesInVTKFormat.get_includes(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_Sets.UpdateParticle_MultiLevelInteraction_Sets.get_includes(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists.UpdateParticle_MultiLevelInteraction_StackOfLists.get_includes(), peano4.api.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.get_includes(), peano4.api.toolbox.particles.UpdateParticle_SingleLevelInteraction.UpdateParticle_SingleLevelInteraction.get_includes(), peano4.api.toolbox.particles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.get_includes(), tracer.DumpTracerIntoDatabase.DumpTracerIntoDatabase.get_includes(), tracer.InsertParticlesFromFile.InsertParticlesFromFile.get_includes(), api.DynamicAMR.DynamicAMR.get_interpolate_guard(), api.DynamicAMR.DynamicAMR.get_restrict_guard(), api.ProjectPatchOntoFaces.ProjectPatchOntoFaces.guard(), api.ProjectPatchOntoFaces.ProjectPatchOntoFaces.guard(), api.BackupPatchOverlap.BackupPatchOverlap.set_guard_predicate(), api.DynamicAMR.DynamicAMR.switch_interpolation_scheme(), and api.DynamicAMR.DynamicAMR.switch_restriction_scheme().

◆ Template_CreateHangingVertex

str peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.Template_CreateHangingVertex
static
Initial value:
= """
fineGridVertex{{UNKNOWN}}.{{RESIDUAL_SETTER}}(0.0);
"""

Definition at line 81 of file MatrixFreeJacobi.py.

Referenced by get_body_of_operation(), and peano4.api.toolbox.multigrid.vertexbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.get_body_of_operation().

◆ Template_CreatePersistentVertex

str peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.Template_CreatePersistentVertex
static

◆ Template_ResetResidual

str peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.Template_ResetResidual
static
Initial value:
= """
fineGridVertex{{UNKNOWN}}.{{RESIDUAL_SETTER}}(0.0);
"""

Definition at line 69 of file MatrixFreeJacobi.py.

Referenced by get_body_of_operation(), and peano4.api.toolbox.multigrid.vertexbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.get_body_of_operation().

◆ Template_TouchCellFirstTime

str peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.Template_TouchCellFirstTime
static
Initial value:
= """
const tarch::la::Vector<ThreePowerD,double> stencil = toolbox::finiteelements::getLaplacian(
marker.h(), 1.0
);
const toolbox::finiteelements::ElementWiseAssemblyMatrix A = toolbox::finiteelements::getElementWiseAssemblyMatrix(
stencil
);
tarch::la::Vector<TwoPowerD,double> u;
for (int i=0; i<TwoPowerD; i++) {
u(i) = fineGridVertices{{UNKNOWN}}(i).{{UNKNOWN_GETTER}}();
}
tarch::la::Vector<TwoPowerD,double> r = A * u;
for (int i=0; i<TwoPowerD; i++) {
fineGridVertices{{UNKNOWN}}(i).{{RESIDUAL_SETTER}}(
fineGridVertices{{UNKNOWN}}(i).{{RESIDUAL_GETTER}}() + r(i)
);
}
"""

Definition at line 86 of file MatrixFreeJacobi.py.

Referenced by get_body_of_operation(), peano4.api.toolbox.multigrid.vertexbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.get_body_of_operation(), and peano4.api.toolbox.PlotCellDataInPeanoBlockFormat.PlotCellDataInPeanoBlockFormat.get_body_of_operation().

◆ Template_UpdateValue

str peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.Template_UpdateValue
static
Initial value:
= """
const tarch::la::Vector<ThreePowerD,double> stencil = toolbox::finiteelements::getLaplacian(
marker.h(), 1.0
);
const double diag = stencil(ThreePowerD/2);
const double residual = {{RHS}} * tarch::la::volume(marker.h()) - fineGridVertex{{UNKNOWN}}.{{RESIDUAL_GETTER}}();
fineGridVertex{{UNKNOWN}}.{{UNKNOWN_SETTER}}(
fineGridVertex{{UNKNOWN}}.{{UNKNOWN_GETTER}}()
+
{{OMEGA}} * residual / diag
);
if ( marker.coincidesWithCoarseGridVertex() ) {
tarch::la::Vector<Dimensions,int> parent = marker.getRelativePositionWithinFatherCell() / 3;
coarseGridVertices{{UNKNOWN}}( peano4::utils::dLinearised(parent,2) ).{{UNKNOWN_SETTER}}(
fineGridVertex{{UNKNOWN}}.{{UNKNOWN_GETTER}}()
);
}
"""

Definition at line 109 of file MatrixFreeJacobi.py.

Referenced by get_body_of_operation(), and peano4.api.toolbox.multigrid.vertexbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.get_body_of_operation().


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