|
Peano
|
Introduce multiplicative CC Coupling. More...


Public Member Functions | |
| __init__ (self, dg_solver, cg_solver, prolongation_matrix, prolongation_matrix_scaling, restriction_matrix, restriction_matrix_scaling, injection_matrix, injection_matrix_scaling, use_fas, smoothing_steps_DG=4, smoothing_steps_CG=-1, vcycles=1) | |
| Construct the solver. | |
| get_attributes (self) | |
| Add a new static attribute to the class. | |
| get_static_initialisations (self, full_qualified_classname) | |
| Initialise the new counter. | |
| get_body_of_prepareTraversal (self) | |
| Public Member Functions inherited from solvers.api.actionsets.DGCGCoupling.AbstractDGCGCoupling | |
| __init__ (self, dg_solver, cg_solver, prolongation_matrix, prolongation_matrix_scaling, restriction_matrix, restriction_matrix_scaling, injection_matrix, injection_matrix_scaling, use_fas) | |
| Construct action set. | |
| 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.api.solversteps.ActionSet.ActionSet | |
| __init__ (self, descend_invocation_order=0, parallel=False) | |
| get_constructor_body (self) | |
| Define a tailored constructor body. | |
| get_destructor_body (self) | |
| get_body_of_createGridControlEventsForNextTraversal (self) | |
| Return the grid control events that this action set wants to trigger. | |
| get_implementation_of_createGridControlEventsForNextTraversal (self) | |
| Return the C++ implementation of createGridControlEventsForNextTraversal(). | |
| 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 | |
| int | smoothing_steps_DG = smoothing_steps_DG + 1 |
| int | smoothing_steps_CG = smoothing_steps_CG |
| int | vcycles = vcycles |
| cg_solver = cg_solver | |
| Data Fields inherited from solvers.api.actionsets.DGCGCoupling.AbstractDGCGCoupling | |
| dict | d = {} |
Introduce multiplicative CC Coupling.
The control logic here is simplistic and prescripted. We follow the following steps for the additive solver with one iteration:
This action set will map onto a class of its own. We give the class a class attribute which we increment by one in each step. We then make the actual logic depend upon this counter, as we inject the predicates into the superclass: That is, the superclass has some boolean expressions which allow us to switch its features on and off. We make those guys depends upon the new counter.
Definition at line 636 of file DGCGCoupling.py.
| solvers.api.actionsets.DGCGCoupling.MultiplicativeDGCGCoupling.__init__ | ( | self, | |
| dg_solver, | |||
| cg_solver, | |||
| prolongation_matrix, | |||
| prolongation_matrix_scaling, | |||
| restriction_matrix, | |||
| restriction_matrix_scaling, | |||
| injection_matrix, | |||
| injection_matrix_scaling, | |||
| use_fas, | |||
| smoothing_steps_DG = 4, | |||
| smoothing_steps_CG = -1, | |||
| vcycles = 1 ) |
Construct the solver.
| smoothing_steps_DG | positive integer |
| smoothing_steps_CG | positive integer or -1 The -1 indicates that we wait for full convergence on the coarse mesh. |
| vcycles | positive integer or -1. Terminate after the given number of full V-cycles. The -1 indicates that we wait for full convergence on the coarse mesh. If a positive integer is set, the correction solver tolerance needs to be set to a small value to ensure the given number of cycles is completed before the tolerance is reached. |
Definition at line 681 of file DGCGCoupling.py.
References __init__(), 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, 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, UpdateCell.UpdateCell.d, and UpdateFacets.UpdateFacets.d.
Referenced by __init__().


| solvers.api.actionsets.DGCGCoupling.MultiplicativeDGCGCoupling.get_attributes | ( | self | ) |
Add a new static attribute to the class.
Reimplemented from peano4.api.solversteps.ActionSet.ActionSet.
Definition at line 759 of file DGCGCoupling.py.
References cg_solver, smoothing_steps_CG, smoothing_steps_DG, and vcycles.
| solvers.api.actionsets.DGCGCoupling.MultiplicativeDGCGCoupling.get_body_of_prepareTraversal | ( | self | ) |
Reimplemented from peano4.api.solversteps.ActionSet.ActionSet.
Definition at line 800 of file DGCGCoupling.py.
Referenced by peano4.api.solversteps.ActionSet.ActionSet.get_implementation_of_prepareTraversal().

| solvers.api.actionsets.DGCGCoupling.MultiplicativeDGCGCoupling.get_static_initialisations | ( | self, | |
| full_qualified_classname ) |
Initialise the new counter.
Reimplemented from peano4.api.solversteps.ActionSet.ActionSet.
Definition at line 788 of file DGCGCoupling.py.
| solvers.api.actionsets.DGCGCoupling.MultiplicativeDGCGCoupling.cg_solver = cg_solver |
Definition at line 756 of file DGCGCoupling.py.
Referenced by get_attributes().
| int solvers.api.actionsets.DGCGCoupling.MultiplicativeDGCGCoupling.smoothing_steps_CG = smoothing_steps_CG |
Definition at line 753 of file DGCGCoupling.py.
Referenced by get_attributes().
| solvers.api.actionsets.DGCGCoupling.MultiplicativeDGCGCoupling.smoothing_steps_DG = smoothing_steps_DG + 1 |
Definition at line 752 of file DGCGCoupling.py.
Referenced by get_attributes().
| int solvers.api.actionsets.DGCGCoupling.MultiplicativeDGCGCoupling.vcycles = vcycles |
Definition at line 754 of file DGCGCoupling.py.
Referenced by get_attributes().