Peano
Loading...
Searching...
No Matches
UpdateResidual.UpdateResidual Class Reference

This is for DG solver. More...

Inheritance diagram for UpdateResidual.UpdateResidual:
Collaboration diagram for UpdateResidual.UpdateResidual:

Public Member Functions

 __init__ (self, solver, descend_invocation_order=0, parallel=True)
 
 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)
 The action set that Peano will generate that corresponds to this class should not be modified by users and can safely be overwritten every time we run the Python toolkit.
 
 get_includes (self)
 We need the solver repository in this action set, as we directly access the solver object.
 
- Public Member Functions inherited from peano4.solversteps.ActionSet.ActionSet
 get_constructor_body (self)
 Define a tailored constructor body.
 
 get_static_initialisations (self, full_qualified_classname)
 
 get_destructor_body (self)
 
 get_body_of_getGridControlEvents (self)
 
 get_body_of_prepareTraversal (self)
 
 get_body_of_unprepareTraversal (self)
 
 get_attributes (self)
 Return attributes as copied and pasted into the generated class.
 

Data Fields

 d
 
- Data Fields inherited from peano4.solversteps.ActionSet.ActionSet
 descend_invocation_order
 
 parallel
 

Static Public Attributes

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"
 

Detailed Description

This is for DG solver.

Todo
Documntation missing

Definition at line 7 of file UpdateResidual.py.

Constructor & Destructor Documentation

◆ __init__()

UpdateResidual.UpdateResidual.__init__ ( self,
solver,
descend_invocation_order = 0,
parallel = True )

Reimplemented from peano4.solversteps.ActionSet.ActionSet.

Definition at line 43 of file UpdateResidual.py.

References UpdateResidual.UpdateResidual.__init__().

Referenced by UpdateResidual.UpdateResidual.__init__().

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

Member Function Documentation

◆ get_action_set_name()

UpdateResidual.UpdateResidual.get_action_set_name ( self)

Configure name of generated C++ action set.

This action set will end up in the directory observers with a name that reflects how the observer (initialisation) is mapped onto this action set. The name pattern is ObserverName2ActionSetIdentifier where this routine co-determines the ActionSetIdentifier. We make is reflect the Python class name.

Reimplemented from peano4.solversteps.ActionSet.ActionSet.

Definition at line 62 of file UpdateResidual.py.

◆ get_body_of_operation()

UpdateResidual.UpdateResidual.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.

Reimplemented from peano4.solversteps.ActionSet.ActionSet.

Definition at line 55 of file UpdateResidual.py.

References exahype2.solvers.aderdg.kernels.AMRRoutines.AMRRoutines.d, exahype2.solvers.aderdg.kernels.CellData.CellData.d, exahype2.solvers.aderdg.kernels.DGMatrices.DGMatrices.d, exahype2.solvers.aderdg.kernels.FusedSpaceTimePredictorVolumeIntegral.FusedSpaceTimePredictorVolumeIntegral.d, exahype2.solvers.aderdg.kernels.Quadrature.Quadrature.d, exahype2.solvers.fv.actionsets.HandleBoundary.HandleBoundary.d, exahype2.solvers.fv.actionsets.RollOverUpdatedFace.RollOverUpdatedFace.d, exahype2.solvers.limiting.kernels.Limiter.Limiter.d, exahype2.solvers.limiting.kernels.Quadrature.Quadrature.d, exahype2.solvers.rkfd.actionsets.HandleBoundary.HandleBoundary.d, exahype2.solvers.rkfd.actionsets.RollOverUpdatedFace.RollOverUpdatedFace.d, exahype2.tracer.DumpTracerIntoDatabase.DumpTracerIntoDatabase.d, exahype2.tracer.InsertParticlesFromFile.InsertParticlesFromFile.d, peano4.datamodel.ModelToDataRepository.ModelToDataRepository.d, peano4.output.Constants.Constants.d, peano4.output.Jinja2TemplatedHeaderFile.Jinja2TemplatedHeaderFile.d, peano4.output.Jinja2TemplatedHeaderImplementationFilePair.Jinja2TemplatedHeaderImplementationFilePair.d, peano4.output.Makefile.Makefile.d, peano4.output.Observer.Observer.d, peano4.output.TemplatedHeaderFile.TemplatedHeaderFile.d, peano4.output.TemplatedHeaderImplementationFilePair.TemplatedHeaderImplementationFilePair.d, peano4.runner.DefaultSequence.DefaultSequence.d, peano4.solversteps.StepsToStepRepository.StepsToStepRepository.d, peano4.toolbox.blockstructured.BackupPatchOverlap.BackupPatchOverlap.d, peano4.toolbox.blockstructured.DynamicAMR.DynamicAMR.d, peano4.toolbox.blockstructured.PlotPatchesInPeanoBlockFormat.PlotPatchesInPeanoBlockFormat.d, peano4.toolbox.blockstructured.PlotPatchesOverFacesInPeanoBlockFormat.PlotPatchesOverFacesInPeanoBlockFormat.d, peano4.toolbox.blockstructured.ProjectPatchOntoFaces.ProjectPatchOntoFaces.d, peano4.toolbox.CreateRegularGrid.CreateRegularGrid.d, peano4.toolbox.multigrid.cellbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.d, peano4.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.d, peano4.toolbox.multigrid.vertexbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.d, peano4.toolbox.particles.api.AbstractUpdateParticleGridAssociation.AbstractUpdateParticleGridAssociation.d, peano4.toolbox.particles.api.UpdateParallelState.UpdateParallelState.d, peano4.toolbox.particles.api.UpdateParticleGridAssociation_BucketSort.UpdateParticleGridAssociation_BucketSort.d, peano4.toolbox.particles.GatherParticlesInMemoryPool.GatherParticlesInMemoryPool.d, peano4.toolbox.particles.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.d, peano4.toolbox.particles.InsertParticlesByCoordinates.InsertParticlesByCoordinates.d, peano4.toolbox.particles.InsertRandomParticlesIntoUnrefinedCells.InsertRandomParticlesIntoUnrefinedCells.d, peano4.toolbox.particles.ParticleAMR.ParticleAMR.d, peano4.toolbox.particles.ParticleTreeAnalysis.ParticleTreeAnalysis.d, peano4.toolbox.particles.PlotParticlesInVTKFormat.PlotParticlesInVTKFormat.d, peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_Sets.UpdateParticle_MultiLevelInteraction_Sets.d, peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists.UpdateParticle_MultiLevelInteraction_StackOfLists.d, peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.d, peano4.toolbox.particles.UpdateParticle_SingleLevelInteraction.UpdateParticle_SingleLevelInteraction.d, peano4.toolbox.particles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.d, peano4.toolbox.PlotCellDataInPeanoBlockFormat.PlotCellDataInPeanoBlockFormat.d, peano4.toolbox.PlotGridInPeanoBlockFormat.PlotGridInPeanoBlockFormat.d, peano4.toolbox.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.d, swift2.actionsets.Cleanup.Cleanup.d, swift2.actionsets.DynamicMeshRefinementAnalysis.DynamicMeshRefinementAnalysis.d, swift2.actionsets.ScatterGlobalMemory.ScatterGlobalMemory.d, swift2.actionsets.UpdateParticleMarker.UpdateParticleMarker.d, swift2.api.boundaryconditions.Fixed.Fixed.d, swift2.input.InsertParticlesFromHDF5File.InsertParticlesFromHDF5File.d, exahypype.kernel.d, CollocatedMGSolver.CollocatedMGSolver.d, InitDofs.InitDofsCollocatedMG.d, Prolongation.Prolongation.d, Restriction.Restriction.d, CollocatedSolver.CollocatedSolver.d, InitDofs.InitDofsCollocated.d, solvers.api.actionsets.DGCGCoupling.AbstractDGCGCoupling.d, solvers.api.actionsets.DGCGCoupling.AdditiveDGCGCoupling.d, solvers.api.actionsets.DGCGCoupling.MultiplicativeDGCGCoupling.d, InitDofs.InitDofsDG.d, ProjectIntoCellAndUpdateCellSolution.ProjectIntoCellAndUpdateCellSolution.d, ProjectOntoFaces.ProjectOntoFaces.d, UpdateFaceSolution.UpdateFaceSolution.d, UpdateResidual.UpdateResidual.d, solvers.api.actionsets.PlotDGDataInPeanoBlockFormat.PlotDGDataInPeanoBlockFormat.d, solvers.api.actionsets.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.d, archive_AssemblePETSCMatrix.AssemblePETSCMatrixOnCellsAndFaces.d, 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, DGCGCoupling.Test4Coupling.d, DGCGCoupling.Test5Coupling.d, DGCGCoupling.Test7Coupling.d, initCollocatedRandom.InitDofsCollocatedRandomRhs.d, initCollocatedRandom.InitCollocatedTest4.d, initCollocatedRandom.InitCollocatedTest5.d, InitDG.InitDofsDGTest1.d, InitDG.InitDofsIntermediatePhaseTest1.d, InitDG.InitDofsDGTest7.d, test8.InitDofsTest8.d, CollocatedMGSolver.CollocatedMGSolver.templateTouchCellFirstTime, InitDofs.InitDofsCollocatedMG.templateTouchCellFirstTime, CollocatedSolver.CollocatedSolver.templateTouchCellFirstTime, InitDofs.InitDofsCollocated.templateTouchCellFirstTime, solvers.api.actionsets.DGCGCoupling.AbstractDGCGCoupling.templateTouchCellFirstTime, InitDofs.InitDofsDG.templateTouchCellFirstTime, ProjectIntoCellAndUpdateCellSolution.ProjectIntoCellAndUpdateCellSolution.templateTouchCellFirstTime, ProjectOntoFaces.ProjectOntoFaces.templateTouchCellFirstTime, UpdateResidual.UpdateResidual.templateTouchCellFirstTime, api.actionsets.InitPetsc.SendDofsToVertices.templateTouchCellFirstTime, api.actionsets.PlotExactSolution.PlotExactSolution.templateTouchCellFirstTime, DGCGCoupling.Test4Coupling.templateTouchCellFirstTime, DGCGCoupling.Test5Coupling.templateTouchCellFirstTime, DGCGCoupling.Test7Coupling.templateTouchCellFirstTime, initCollocatedRandom.InitDofsCollocatedRandomRhs.templateTouchCellFirstTime, initCollocatedRandom.InitCollocatedTest4.templateTouchCellFirstTime, initCollocatedRandom.InitCollocatedTest5.templateTouchCellFirstTime, initCollocatedRandom.InitCollocatedTest7.templateTouchCellFirstTime, InitDG.InitDofsDGTest1.templateTouchCellFirstTime, InitDG.InitDofsIntermediatePhaseTest1.templateTouchCellFirstTime, InitDG.InitDofsDGTest6.templateTouchCellFirstTime, InitDG.InitDofsIntermediatePhaseTest6.templateTouchCellFirstTime, InitDG.InitDofsDGTest4.templateTouchCellFirstTime, InitDG.InitDofsDGTest5.templateTouchCellFirstTime, InitDG.InitDofsDGTest7.templateTouchCellFirstTime, and test8.InitDofsTest8.templateTouchCellFirstTime.

◆ get_includes()

UpdateResidual.UpdateResidual.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.

Reimplemented from peano4.solversteps.ActionSet.ActionSet.

Definition at line 86 of file UpdateResidual.py.

◆ user_should_modify_template()

UpdateResidual.UpdateResidual.user_should_modify_template ( self)

The action set that Peano will generate that corresponds to this class should not be modified by users and can safely be overwritten every time we run the Python toolkit.

Reimplemented from peano4.solversteps.ActionSet.ActionSet.

Definition at line 76 of file UpdateResidual.py.

Field Documentation

◆ d

UpdateResidual.UpdateResidual.d

Definition at line 51 of file UpdateResidual.py.

Referenced by peano4.datamodel.ModelToDataRepository.ModelToDataRepository.__build_up_dictionary_for_one_data_set(), peano4.output.Observer.Observer.__format_template_per_action(), peano4.output.Observer.Observer.__generate_beginTraversal(), peano4.output.Observer.Observer.__generate_constructor(), peano4.output.Observer.Observer.__generate_endTraversal(), peano4.output.Observer.Observer.__generate_exchange_routines(), peano4.output.Jinja2TemplatedHeaderFile.Jinja2TemplatedHeaderFile.__generate_file(), peano4.output.Observer.Observer.__generate_prepareTraversal(), peano4.output.Observer.Observer.__generate_unprepareTraversal(), solvers.api.actionsets.DGCGCoupling.MultiplicativeDGCGCoupling.__init__(), solvers.api.actionsets.DGCGCoupling.AdditiveDGCGCoupling.__init__(), exahype2.solvers.fv.actionsets.ProjectPatchOntoFaces.ProjectPatchOntoFaces.__init__(), exahype2.solvers.fv.actionsets.DynamicAMR.DynamicAMR.__init__(), exahype2.solvers.rkfd.actionsets.DynamicAMR.DynamicAMR.__init__(), peano4.datamodel.ModelToDataRepository.ModelToDataRepository.__parse_data_declarations_in_model(), exahype2.solvers.limiting.kernels.Limiter.Limiter._build_gemms(), exahype2.solvers.aderdg.kernels.AMRRoutines.AMRRoutines._build_gemms(), exahype2.solvers.aderdg.kernels.FusedSpaceTimePredictorVolumeIntegral.FusedSpaceTimePredictorVolumeIntegral._build_gemms(), peano4.toolbox.particles.PlotParticlesInVTKFormat.PlotParticlesInVTKFormat.add_attribute_to_plot(), peano4.output.Makefile.Makefile.add_CXX_flag(), peano4.output.Makefile.Makefile.add_Fortran_flag(), peano4.output.Makefile.Makefile.add_Fortran_module(), peano4.output.Makefile.Makefile.add_header_search_path(), peano4.output.Constants.Constants.add_include(), peano4.output.Makefile.Makefile.add_library(), peano4.output.Makefile.Makefile.add_linker_flag(), peano4.output.Constants.Constants.clear(), peano4.datamodel.ModelToDataRepository.ModelToDataRepository.construct_output(), peano4.solversteps.StepsToStepRepository.StepsToStepRepository.construct_output(), peano4.runner.DefaultSequence.DefaultSequence.construct_output(), peano4.output.Constants.Constants.define(), peano4.output.Constants.Constants.define_value(), exahypype.kernel.Evaluate(), peano4.output.Makefile.Makefile.executable_name(), peano4.output.Constants.Constants.export(), peano4.output.Constants.Constants.export_boolean(), peano4.output.Constants.Constants.export_boolean_sequence(), peano4.output.Constants.Constants.export_const_with_type(), peano4.output.Constants.Constants.export_constexpr_with_type(), peano4.output.Makefile.Makefile.generate(), exahype2.solvers.aderdg.kernels.AMRRoutines.AMRRoutines.generate_kernels(), exahype2.solvers.aderdg.kernels.CellData.CellData.generate_kernels(), exahype2.solvers.aderdg.kernels.DGMatrices.DGMatrices.generate_kernels(), exahype2.solvers.aderdg.kernels.FusedSpaceTimePredictorVolumeIntegral.FusedSpaceTimePredictorVolumeIntegral.generate_kernels(), exahype2.solvers.aderdg.kernels.Quadrature.Quadrature.generate_kernels(), exahype2.solvers.limiting.kernels.Limiter.Limiter.generate_kernels(), exahype2.solvers.limiting.kernels.Quadrature.Quadrature.generate_kernels(), peano4.output.Observer.Observer.generateDictEntry(), peano4.toolbox.particles.api.AbstractUpdateParticleGridAssociation.AbstractUpdateParticleGridAssociation.get_attributes(), peano4.toolbox.particles.api.UpdateParticleGridAssociation_BucketSort.UpdateParticleGridAssociation_BucketSort.get_attributes(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_Sets.UpdateParticle_MultiLevelInteraction_Sets.get_attributes(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists.UpdateParticle_MultiLevelInteraction_StackOfLists.get_attributes(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.get_attributes(), archive_AssemblePETSCMatrix.AssemblePETSCMatrixOnCellsAndFaces.get_attributes(), peano4.toolbox.CreateRegularGrid.CreateRegularGrid.get_body_of_getGridControlEvents(), exahype2.solvers.fv.actionsets.RollOverUpdatedFace.RollOverUpdatedFace.get_body_of_operation(), exahype2.tracer.DumpTracerIntoDatabase.DumpTracerIntoDatabase.get_body_of_operation(), exahype2.tracer.InsertParticlesFromFile.InsertParticlesFromFile.get_body_of_operation(), peano4.toolbox.blockstructured.BackupPatchOverlap.BackupPatchOverlap.get_body_of_operation(), peano4.toolbox.blockstructured.DynamicAMR.DynamicAMR.get_body_of_operation(), peano4.toolbox.blockstructured.PlotPatchesInPeanoBlockFormat.PlotPatchesInPeanoBlockFormat.get_body_of_operation(), peano4.toolbox.blockstructured.PlotPatchesOverFacesInPeanoBlockFormat.PlotPatchesOverFacesInPeanoBlockFormat.get_body_of_operation(), peano4.toolbox.blockstructured.ProjectPatchOntoFaces.ProjectPatchOntoFaces.get_body_of_operation(), peano4.toolbox.multigrid.cellbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.get_body_of_operation(), peano4.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.get_body_of_operation(), peano4.toolbox.multigrid.vertexbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.get_body_of_operation(), peano4.toolbox.particles.api.UpdateParallelState.UpdateParallelState.get_body_of_operation(), peano4.toolbox.particles.api.UpdateParticleGridAssociation_BucketSort.UpdateParticleGridAssociation_BucketSort.get_body_of_operation(), peano4.toolbox.particles.api.UpdateParticleGridAssociation_LiftDrop.UpdateParticleGridAssociation_LiftDrop.get_body_of_operation(), peano4.toolbox.particles.api.UpdateParticleGridAssociation_Reassign.UpdateParticleGridAssociation_Reassign.get_body_of_operation(), peano4.toolbox.particles.GatherParticlesInMemoryPool.GatherParticlesInMemoryPool.get_body_of_operation(), peano4.toolbox.particles.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.get_body_of_operation(), peano4.toolbox.particles.InsertParticlesByCoordinates.InsertParticlesByCoordinates.get_body_of_operation(), peano4.toolbox.particles.InsertRandomParticlesIntoUnrefinedCells.InsertRandomParticlesIntoUnrefinedCells.get_body_of_operation(), peano4.toolbox.particles.ParticleAMR.ParticleAMR.get_body_of_operation(), peano4.toolbox.particles.ParticleTreeAnalysis.ParticleTreeAnalysis.get_body_of_operation(), peano4.toolbox.particles.PlotParticlesInVTKFormat.PlotParticlesInVTKFormat.get_body_of_operation(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_Sets.UpdateParticle_MultiLevelInteraction_Sets.get_body_of_operation(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists.UpdateParticle_MultiLevelInteraction_StackOfLists.get_body_of_operation(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.get_body_of_operation(), peano4.toolbox.particles.UpdateParticle_SingleLevelInteraction.UpdateParticle_SingleLevelInteraction.get_body_of_operation(), peano4.toolbox.particles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.get_body_of_operation(), peano4.toolbox.PlotCellDataInPeanoBlockFormat.PlotCellDataInPeanoBlockFormat.get_body_of_operation(), peano4.toolbox.PlotGridInPeanoBlockFormat.PlotGridInPeanoBlockFormat.get_body_of_operation(), peano4.toolbox.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.get_body_of_operation(), swift2.actionsets.Cleanup.Cleanup.get_body_of_operation(), swift2.actionsets.DynamicMeshRefinementAnalysis.DynamicMeshRefinementAnalysis.get_body_of_operation(), swift2.actionsets.ScatterGlobalMemory.ScatterGlobalMemory.get_body_of_operation(), swift2.actionsets.UpdateParticleMarker.UpdateParticleMarker.get_body_of_operation(), swift2.api.boundaryconditions.Fixed.Fixed.get_body_of_operation(), swift2.input.InsertParticlesFromHDF5File.InsertParticlesFromHDF5File.get_body_of_operation(), CollocatedMGSolver.CollocatedMGSolver.get_body_of_operation(), InitDofs.InitDofsCollocatedMG.get_body_of_operation(), Prolongation.Prolongation.get_body_of_operation(), Restriction.Restriction.get_body_of_operation(), CollocatedSolver.CollocatedSolver.get_body_of_operation(), InitDofs.InitDofsCollocated.get_body_of_operation(), solvers.api.actionsets.DGCGCoupling.AbstractDGCGCoupling.get_body_of_operation(), InitDofs.InitDofsDG.get_body_of_operation(), ProjectIntoCellAndUpdateCellSolution.ProjectIntoCellAndUpdateCellSolution.get_body_of_operation(), ProjectOntoFaces.ProjectOntoFaces.get_body_of_operation(), UpdateFaceSolution.UpdateFaceSolution.get_body_of_operation(), UpdateResidual.UpdateResidual.get_body_of_operation(), solvers.api.actionsets.PlotDGDataInPeanoBlockFormat.PlotDGDataInPeanoBlockFormat.get_body_of_operation(), solvers.api.actionsets.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.get_body_of_operation(), archive_AssemblePETSCMatrix.AssemblePETSCMatrixOnCellsAndFaces.get_body_of_operation(), api.actionsets.EnumerateDoFs.EnumerateDoFs.get_body_of_operation(), api.actionsets.ImposeDirichletBoundaryConditions.ImposeDirichletBoundaryConditions.get_body_of_operation(), api.actionsets.ImposeDirichletBoundaryConditionsWithInteriorPenaltyMethod.ImposeDirichletBoundaryConditionsWithInteriorPenaltyMethod.get_body_of_operation(), api.actionsets.InitCellDoFs.InitCellDoFs.get_body_of_operation(), api.actionsets.InitFaceDoFs.InitFaceDoFs.get_body_of_operation(), api.actionsets.InitPetsc.SendDofsToVertices.get_body_of_operation(), api.actionsets.InitVertexDoFs.InitVertexDoFs.get_body_of_operation(), api.actionsets.PlotDGDataInPeanoBlockFormat.PlotDGDataInPeanoBlockFormat.get_body_of_operation(), api.actionsets.PlotExactSolution.PlotExactSolution.get_body_of_operation(), api.actionsets.ProjectPETScSolutionBackOntoMesh.ProjectPETScSolutionOnCellsBackOntoMesh.get_body_of_operation(), api.actionsets.ProjectPETScSolutionBackOntoMesh.ProjectPETScSolutionOnVerticesBackOntoMesh.get_body_of_operation(), api.solvers.CollocatedLowOrderDiscretisation.AssemblePetscMatrix.get_body_of_operation(), api.solvers.DiscontinuousGalerkinDiscretisation.AssemblePetscMatrix.get_body_of_operation(), initCollocatedRandom.InitDofsCollocatedRandomRhs.get_body_of_operation(), InitDG.InitDofsDGTest1.get_body_of_operation(), test8.InitDofsTest8.get_body_of_operation(), peano4.toolbox.particles.api.AbstractUpdateParticleGridAssociation.AbstractUpdateParticleGridAssociation.get_body_of_prepareTraversal(), peano4.toolbox.particles.api.UpdateParallelState.UpdateParallelState.get_body_of_prepareTraversal(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_Sets.UpdateParticle_MultiLevelInteraction_Sets.get_body_of_prepareTraversal(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists.UpdateParticle_MultiLevelInteraction_StackOfLists.get_body_of_prepareTraversal(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.get_body_of_prepareTraversal(), peano4.toolbox.particles.UpdateParticle_SingleLevelInteraction.UpdateParticle_SingleLevelInteraction.get_body_of_prepareTraversal(), peano4.toolbox.particles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.get_body_of_prepareTraversal(), swift2.actionsets.ScatterGlobalMemory.ScatterGlobalMemory.get_body_of_prepareTraversal(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_Sets.UpdateParticle_MultiLevelInteraction_Sets.get_body_of_unprepareTraversal(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists.UpdateParticle_MultiLevelInteraction_StackOfLists.get_body_of_unprepareTraversal(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.get_body_of_unprepareTraversal(), peano4.toolbox.particles.UpdateParticle_SingleLevelInteraction.UpdateParticle_SingleLevelInteraction.get_body_of_unprepareTraversal(), peano4.toolbox.particles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.get_body_of_unprepareTraversal(), peano4.toolbox.blockstructured.DynamicAMR.DynamicAMR.get_clear_guard(), peano4.output.Makefile.Makefile.get_configure_path(), exahype2.tracer.DumpTracerIntoDatabase.DumpTracerIntoDatabase.get_constructor_body(), peano4.toolbox.blockstructured.PlotPatchesInPeanoBlockFormat.PlotPatchesInPeanoBlockFormat.get_constructor_body(), peano4.toolbox.blockstructured.PlotPatchesOverFacesInPeanoBlockFormat.PlotPatchesOverFacesInPeanoBlockFormat.get_constructor_body(), peano4.toolbox.particles.api.AbstractUpdateParticleGridAssociation.AbstractUpdateParticleGridAssociation.get_constructor_body(), peano4.toolbox.particles.InsertParticlesByCoordinates.InsertParticlesByCoordinates.get_constructor_body(), peano4.toolbox.particles.PlotParticlesInVTKFormat.PlotParticlesInVTKFormat.get_constructor_body(), peano4.toolbox.PlotCellDataInPeanoBlockFormat.PlotCellDataInPeanoBlockFormat.get_constructor_body(), peano4.toolbox.PlotGridInPeanoBlockFormat.PlotGridInPeanoBlockFormat.get_constructor_body(), peano4.toolbox.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.get_constructor_body(), solvers.api.actionsets.PlotDGDataInPeanoBlockFormat.PlotDGDataInPeanoBlockFormat.get_constructor_body(), solvers.api.actionsets.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.get_constructor_body(), api.actionsets.PlotDGDataInPeanoBlockFormat.PlotDGDataInPeanoBlockFormat.get_constructor_body(), api.actionsets.PlotExactSolution.PlotExactSolution.get_constructor_body(), peano4.toolbox.particles.api.UpdateParticleGridAssociation_BucketSort.UpdateParticleGridAssociation_BucketSort.get_destructor_body(), exahype2.tracer.DumpTracerIntoDatabase.DumpTracerIntoDatabase.get_includes(), exahype2.tracer.InsertParticlesFromFile.InsertParticlesFromFile.get_includes(), peano4.toolbox.particles.api.AbstractUpdateParticleGridAssociation.AbstractUpdateParticleGridAssociation.get_includes(), peano4.toolbox.particles.api.UpdateParallelState.UpdateParallelState.get_includes(), peano4.toolbox.particles.GatherParticlesInMemoryPool.GatherParticlesInMemoryPool.get_includes(), peano4.toolbox.particles.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.get_includes(), peano4.toolbox.particles.InsertParticlesByCoordinates.InsertParticlesByCoordinates.get_includes(), peano4.toolbox.particles.InsertRandomParticlesIntoUnrefinedCells.InsertRandomParticlesIntoUnrefinedCells.get_includes(), peano4.toolbox.particles.ParticleAMR.ParticleAMR.get_includes(), peano4.toolbox.particles.ParticleTreeAnalysis.ParticleTreeAnalysis.get_includes(), peano4.toolbox.particles.PlotParticlesInVTKFormat.PlotParticlesInVTKFormat.get_includes(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_Sets.UpdateParticle_MultiLevelInteraction_Sets.get_includes(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists.UpdateParticle_MultiLevelInteraction_StackOfLists.get_includes(), peano4.toolbox.particles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.UpdateParticle_MultiLevelInteraction_StackOfLists_ContiguousParticles.get_includes(), peano4.toolbox.particles.UpdateParticle_SingleLevelInteraction.UpdateParticle_SingleLevelInteraction.get_includes(), peano4.toolbox.particles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.UpdateParticle_SingleLevelInteraction_ContiguousParticles.get_includes(), swift2.actionsets.Cleanup.Cleanup.get_includes(), swift2.actionsets.DynamicMeshRefinementAnalysis.DynamicMeshRefinementAnalysis.get_includes(), swift2.actionsets.ScatterGlobalMemory.ScatterGlobalMemory.get_includes(), swift2.actionsets.UpdateParticleMarker.UpdateParticleMarker.get_includes(), swift2.api.boundaryconditions.Fixed.Fixed.get_includes(), swift2.input.InsertParticlesFromHDF5File.InsertParticlesFromHDF5File.get_includes(), peano4.toolbox.blockstructured.DynamicAMR.DynamicAMR.get_interpolate_guard(), peano4.toolbox.blockstructured.DynamicAMR.DynamicAMR.get_restrict_guard(), peano4.toolbox.blockstructured.ProjectPatchOntoFaces.ProjectPatchOntoFaces.guard(), peano4.toolbox.blockstructured.ProjectPatchOntoFaces.ProjectPatchOntoFaces.guard(), exahypype.kernel.halo(), peano4.output.Observer.Observer.mkSubDict(), peano4.output.Makefile.Makefile.parse_configure_script_outcome(), peano4.output.Constants.Constants.readme_entry(), peano4.output.Makefile.Makefile.readme_entry(), peano4.output.Makefile.Makefile.readme_package_descriptor(), peano4.output.Makefile.Makefile.set_CXX_compiler(), peano4.output.Makefile.Makefile.set_CXX_flags(), peano4.output.Makefile.Makefile.set_dimension(), peano4.output.Makefile.Makefile.set_executable_name(), peano4.output.Makefile.Makefile.set_Fortran_compiler(), peano4.output.Makefile.Makefile.set_Fortran_flags(), peano4.toolbox.blockstructured.BackupPatchOverlap.BackupPatchOverlap.set_guard_predicate(), peano4.output.Makefile.Makefile.set_linker_flags(), peano4.output.Makefile.Makefile.set_mode(), exahypype.kernel.Stencil(), peano4.toolbox.blockstructured.DynamicAMR.DynamicAMR.switch_interpolation_scheme(), and peano4.toolbox.blockstructured.DynamicAMR.DynamicAMR.switch_restriction_scheme().

◆ templateTouchCellFirstTime

str UpdateResidual.UpdateResidual.templateTouchCellFirstTime
static
Initial value:
= """
if (
fineGridCell{{SOLVER_NAME}}.getType() != celldata::{{SOLVER_NAME}}::Type::Coarse
and
// only one condition here - ensures that we don't do this when restricting the residual
repositories::{{SOLVER_INSTANCE}}.updateResidual()
) {
logTraceInWith4Arguments("updateResidual",
fineGridCell{{SOLVER_NAME}}.getSolution(),
fineGridCell{{SOLVER_NAME}}.getRhs(),
marker.toString(),
repositories::{{SOLVER_INSTANCE}}.getMassMatrix( marker.x(), marker.h() )
);
// write Mb into it, i.e. mass matrix * rhs
tarch::la::Vector< repositories::{{SOLVER_INSTANCE}}.CellUnknowns, double > r =
repositories::{{SOLVER_INSTANCE}}.getMassMatrix( marker.x(), marker.h() ) * fineGridCell{{SOLVER_NAME}}.getRhs();
// also subtract A^cc u^c
r = r - repositories::{{SOLVER_INSTANCE}}.getLocalAssemblyMatrix(marker.x(), marker.h()) * fineGridCell{{SOLVER_NAME}}.getSolution();
fineGridCell{{SOLVER_NAME}}.setResidual( r );
logTraceOut("updateResidual");
}
"""

Definition at line 15 of file UpdateResidual.py.

Referenced by CollocatedMGSolver.CollocatedMGSolver.get_body_of_operation(), InitDofs.InitDofsCollocatedMG.get_body_of_operation(), CollocatedSolver.CollocatedSolver.get_body_of_operation(), InitDofs.InitDofsCollocated.get_body_of_operation(), solvers.api.actionsets.DGCGCoupling.AbstractDGCGCoupling.get_body_of_operation(), InitDofs.InitDofsDG.get_body_of_operation(), ProjectIntoCellAndUpdateCellSolution.ProjectIntoCellAndUpdateCellSolution.get_body_of_operation(), ProjectOntoFaces.ProjectOntoFaces.get_body_of_operation(), UpdateResidual.UpdateResidual.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().


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