![]() |
v0.16.3 |
Implementation of PETSc DM, managing interactions between mesh data structures and vectors and matrices. More...
Classes | |
| struct | MoFEM::DMCtx |
| PETSc Discrete Manager data structure. More... | |
| struct | MoFEM::DMMGViaApproxOrdersCtx |
| Structure for DM for multi-grid via approximation orders. More... | |
Functions | |
| PetscErrorCode | MoFEM::DMRegister_MoFEM (const char sname[]) |
| Register MoFEM problem. | |
| PetscErrorCode | MoFEM::DMMoFEMCreateMoFEM (DM dm, MoFEM::Interface *m_field_ptr, const char problem_name[], const MoFEM::BitRefLevel bit_level, const MoFEM::BitRefLevel bit_mask=MoFEM::BitRefLevel().set()) |
| Must be called by user to set MoFEM data structures. | |
| PetscErrorCode | MoFEM::DMMoFEMCreateSubDM (DM subdm, DM dm, const char problem_name[]) |
| Must be called by user to set Sub DM MoFEM data structures. | |
| PetscErrorCode | MoFEM::DMoFEMGetInterfacePtr (DM dm, MoFEM::Interface **m_field_ptr) |
| Get pointer to MoFEM::Interface. | |
| PetscErrorCode | MoFEM::DMMoFEMGetProblemPtr (DM dm, const MoFEM::Problem **problem_ptr) |
| Get pointer to problem data structure. | |
| PetscErrorCode | MoFEM::DMMoFEMRebuildProblem (DM dm, const MoFEM::BitRefLevel target_bit, const MoFEM::BitRefLevel target_mask, IS *old_row_indices=PETSC_NULLPTR, IS *new_row_indices=PETSC_NULLPTR) |
| Rebuild the DM's parent problem in place on a new bit ref level. | |
| PetscErrorCode | MoFEM::DMMoFEMSetSquareProblem (DM dm, PetscBool square_problem) |
| set squared problem | |
| PetscErrorCode | MoFEM::DMMoFEMGetSquareProblem (DM dm, PetscBool *square_problem) |
| get squared problem | |
| PetscErrorCode | MoFEM::DMMoFEMResolveSharedFiniteElements (DM dm, std::string fe_name) |
| Resolve shared entities. | |
| PetscErrorCode | MoFEM::DMMoFEMGetProblemFiniteElementLayout (DM dm, std::string fe_name, PetscLayout *layout) |
| Get finite elements layout in the problem. | |
| PetscErrorCode | MoFEM::DMMoFEMAddElement (DM dm, std::string fe_name) |
| add element to dm | |
| PetscErrorCode | MoFEM::DMMoFEMAddElement (DM dm, std::vector< std::string > fe_name) |
| add element to dm | |
| PetscErrorCode | MoFEM::DMMoFEMUnSetElement (DM dm, std::string fe_name) |
| unset element from dm | |
| PetscErrorCode | MoFEM::DMoFEMMeshToLocalVector (DM dm, Vec l, InsertMode mode, ScatterMode scatter_mode, RowColData rc=RowColData::COL) |
| set local (or ghosted) vector values on mesh for partition only | |
| PetscErrorCode | MoFEM::DMoFEMMeshToGlobalVector (DM dm, Vec g, InsertMode mode, ScatterMode scatter_mode, RowColData rc=RowColData::COL) |
| set ghosted vector values on all existing mesh entities | |
| PetscErrorCode | MoFEM::DMoFEMPreProcessFiniteElements (DM dm, MoFEM::FEMethod *method) |
| execute finite element method for each element in dm (problem) | |
| PetscErrorCode | MoFEM::DMoFEMPostProcessFiniteElements (DM dm, MoFEM::FEMethod *method) |
| execute finite element method for each element in dm (problem) | |
| PetscErrorCode | MoFEM::DMoFEMLoopFiniteElementsUpAndLowRank (DM dm, const char fe_name[], MoFEM::FEMethod *method, int low_rank, int up_rank, CacheTupleWeakPtr cache_ptr=CacheTupleSharedPtr()) |
| Executes FEMethod for finite elements in DM. | |
| PetscErrorCode | MoFEM::DMoFEMLoopFiniteElementsUpAndLowRank (DM dm, const std::string fe_name, boost::shared_ptr< MoFEM::FEMethod > method, int low_rank, int up_rank, CacheTupleWeakPtr cache_ptr=CacheTupleSharedPtr()) |
| Executes FEMethod for finite elements in DM. | |
| PetscErrorCode | MoFEM::DMoFEMLoopFiniteElements (DM dm, const char fe_name[], MoFEM::FEMethod *method, CacheTupleWeakPtr cache_ptr=CacheTupleSharedPtr()) |
| Executes FEMethod for finite elements in DM. | |
| PetscErrorCode | MoFEM::DMoFEMLoopFiniteElements (DM dm, const std::string fe_name, boost::shared_ptr< MoFEM::FEMethod > method, CacheTupleWeakPtr cache_ptr=CacheTupleSharedPtr()) |
| Executes FEMethod for finite elements in DM. | |
| PetscErrorCode | MoFEM::DMoFEMLoopDofs (DM dm, const char field_name[], MoFEM::DofMethod *method) |
| execute method for dofs on field in problem | |
| PetscErrorCode | MoFEM::DMMoFEMKSPSetComputeRHS (DM dm, const char fe_name[], MoFEM::FEMethod *method, MoFEM::BasicMethod *pre_only, MoFEM::BasicMethod *post_only) |
| set KSP right hand side evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMKSPSetComputeRHS (DM dm, const std::string fe_name, boost::shared_ptr< MoFEM::FEMethod > method, boost::shared_ptr< MoFEM::BasicMethod > pre_only, boost::shared_ptr< MoFEM::BasicMethod > post_only) |
| set KSP right hand side evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMKSPSetComputeOperators (DM dm, const char fe_name[], MoFEM::FEMethod *method, MoFEM::BasicMethod *pre_only, MoFEM::BasicMethod *post_only) |
| Set KSP operators and push mofem finite element methods. | |
| PetscErrorCode | MoFEM::DMMoFEMKSPSetComputeOperators (DM dm, const std::string fe_name, boost::shared_ptr< MoFEM::FEMethod > method, boost::shared_ptr< MoFEM::BasicMethod > pre_only, boost::shared_ptr< MoFEM::BasicMethod > post_only) |
| Set KSP operators and push mofem finite element methods. | |
| PetscErrorCode | MoFEM::DMMoFEMSNESSetFunction (DM dm, const char fe_name[], MoFEM::FEMethod *method, MoFEM::BasicMethod *pre_only, MoFEM::BasicMethod *post_only) |
| set SNES residual evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMSNESSetFunction (DM dm, const std::string fe_name, boost::shared_ptr< MoFEM::FEMethod > method, boost::shared_ptr< MoFEM::BasicMethod > pre_only, boost::shared_ptr< MoFEM::BasicMethod > post_only) |
| set SNES residual evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMSNESSetJacobian (DM dm, const char fe_name[], MoFEM::FEMethod *method, MoFEM::BasicMethod *pre_only, MoFEM::BasicMethod *post_only) |
| set SNES Jacobian evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMSNESSetJacobian (DM dm, const std::string fe_name, boost::shared_ptr< MoFEM::FEMethod > method, boost::shared_ptr< MoFEM::BasicMethod > pre_only, boost::shared_ptr< MoFEM::BasicMethod > post_only) |
| set SNES Jacobian evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMTSSetIFunction (DM dm, const char fe_name[], MoFEM::FEMethod *method, MoFEM::BasicMethod *pre_only, MoFEM::BasicMethod *post_only) |
| set TS implicit function evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMTSSetIFunction (DM dm, const std::string fe_name, boost::shared_ptr< MoFEM::FEMethod > method, boost::shared_ptr< MoFEM::BasicMethod > pre_only, boost::shared_ptr< MoFEM::BasicMethod > post_only) |
| set TS implicit function evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMTSSetIJacobian (DM dm, const std::string fe_name, boost::shared_ptr< MoFEM::FEMethod > method, boost::shared_ptr< MoFEM::BasicMethod > pre_only, boost::shared_ptr< MoFEM::BasicMethod > post_only) |
| set TS Jacobian evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMTSSetIJacobian (DM dm, const char fe_name[], MoFEM::FEMethod *method, MoFEM::BasicMethod *pre_only, MoFEM::BasicMethod *post_only) |
| set TS Jacobian evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMTSSetI2Function (DM dm, const std::string fe_name, boost::shared_ptr< MoFEM::FEMethod > method, boost::shared_ptr< MoFEM::BasicMethod > pre_only, boost::shared_ptr< MoFEM::BasicMethod > post_only) |
| set TS implicit function evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMTSSetI2Function (DM dm, const char fe_name[], MoFEM::FEMethod *method, MoFEM::BasicMethod *pre_only, MoFEM::BasicMethod *post_only) |
| set TS implicit function evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMTSSetI2Jacobian (DM dm, const std::string fe_name, boost::shared_ptr< MoFEM::FEMethod > method, boost::shared_ptr< MoFEM::BasicMethod > pre_only, boost::shared_ptr< MoFEM::BasicMethod > post_only) |
| set TS Jacobian evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMTSSetI2Jacobian (DM dm, const char fe_name[], MoFEM::FEMethod *method, MoFEM::BasicMethod *pre_only, MoFEM::BasicMethod *post_only) |
| set TS Jacobian evaluation function | |
| PetscErrorCode | MoFEM::DMMoFEMGetKspCtx (DM dm, MoFEM::KspCtx **ksp_ctx) |
| get MoFEM::KspCtx data structure | |
| PetscErrorCode | MoFEM::DMMoFEMGetKspCtx (DM dm, const boost::shared_ptr< MoFEM::KspCtx > &ksp_ctx) |
| get MoFEM::KspCtx data structure | |
| PetscErrorCode | MoFEM::DMMoFEMSetKspCtx (DM dm, boost::shared_ptr< MoFEM::KspCtx > ksp_ctx) |
| set MoFEM::KspCtx data structure | |
| PetscErrorCode | MoFEM::DMMoFEMGetSnesCtx (DM dm, MoFEM::SnesCtx **snes_ctx) |
| get MoFEM::SnesCtx data structure | |
| PetscErrorCode | MoFEM::DMMoFEMGetSnesCtx (DM dm, const boost::shared_ptr< MoFEM::SnesCtx > &snes_ctx) |
| get MoFEM::SnesCtx data structure | |
| PetscErrorCode | MoFEM::DMMoFEMSetSnesCtx (DM dm, boost::shared_ptr< MoFEM::SnesCtx > snes_ctx) |
| Set MoFEM::SnesCtx data structure. | |
| PetscErrorCode | MoFEM::DMMoFEMGetTsCtx (DM dm, MoFEM::TsCtx **ts_ctx) |
| get MoFEM::TsCtx data structure | |
| PetscErrorCode | MoFEM::DMMoFEMGetTsCtx (DM dm, const boost::shared_ptr< MoFEM::TsCtx > &ts_ctx) |
| get MoFEM::TsCtx data structure | |
| PetscErrorCode | MoFEM::DMMoFEMSetTsCtx (DM dm, boost::shared_ptr< MoFEM::TsCtx > ts_ctx) |
| Set MoFEM::TsCtx data structure. | |
| PetscErrorCode | MoFEM::DMMoFEMSetIsPartitioned (DM dm, PetscBool is_partitioned) |
| PetscErrorCode | MoFEM::DMMoFEMGetIsPartitioned (DM dm, PetscBool *is_partitioned) |
| PetscErrorCode | MoFEM::DMSetOperators_MoFEM (DM dm) |
| Set operators for MoFEM dm. | |
| PetscErrorCode | MoFEM::DMCreate_MoFEM (DM dm) |
| Create dm data structure with MoFEM data structure. | |
| PetscErrorCode | MoFEM::DMDestroy_MoFEM (DM dm) |
| Destroys dm with MoFEM data structure. | |
| PetscErrorCode | MoFEM::DMCreateGlobalVector_MoFEM (DM dm, Vec *g) |
| DMShellSetCreateGlobalVector. | |
| PetscErrorCode | MoFEM::DMCreateGlobalVector_MoFEM (DM dm, SmartPetscObj< Vec > &g_ptr, RowColData rc=RowColData::COL) |
| DMShellSetCreateGlobalVector. | |
| PetscErrorCode | MoFEM::DMCreateLocalVector_MoFEM (DM dm, Vec *l) |
| DMShellSetCreateLocalVector. | |
| PetscErrorCode | MoFEM::DMCreateMatrix_MoFEM (DM dm, Mat *M) |
| PetscErrorCode | MoFEM::DMCreateMatrix_MoFEM (DM dm, SmartPetscObj< Mat > &M) |
| PetscErrorCode | MoFEM::DMSetFromOptions_MoFEM (DM dm) |
| PetscErrorCode | MoFEM::DMSetUp_MoFEM (DM dm) |
| PetscErrorCode | MoFEM::DMSubDMSetUp_MoFEM (DM subdm) |
| PetscErrorCode | MoFEM::DMMoFEMAddSubFieldRow (DM dm, const char field_name[]) |
| PetscErrorCode | MoFEM::DMMoFEMAddSubFieldRow (DM dm, const char field_name[], boost::shared_ptr< Range > r_ptr) |
| Add field to sub dm problem on rows. | |
| PetscErrorCode | MoFEM::DMMoFEMAddSubFieldCol (DM dm, const char field_name[]) |
| PetscErrorCode | MoFEM::DMMoFEMGetIsSubDM (DM dm, PetscBool *is_sub_dm) |
| PetscErrorCode | MoFEM::DMMoFEMAddRowCompositeProblem (DM dm, const char prb_name[]) |
| Add problem to composite DM on row. | |
| PetscErrorCode | MoFEM::DMMoFEMAddColCompositeProblem (DM dm, const char prb_name[]) |
| Add problem to composite DM on col. | |
| PetscErrorCode | MoFEM::DMMoFEMGetIsCompDM (DM dm, PetscBool *is_comp_dm) |
| Get if this DM is composite DM. | |
| PetscErrorCode | MoFEM::DMGlobalToLocalBegin_MoFEM (DM dm, Vec, InsertMode, Vec) |
| PetscErrorCode | MoFEM::DMGlobalToLocalEnd_MoFEM (DM dm, Vec, InsertMode, Vec) |
| PetscErrorCode | MoFEM::DMLocalToGlobalBegin_MoFEM (DM, Vec, InsertMode, Vec) |
| PetscErrorCode | MoFEM::DMLocalToGlobalEnd_MoFEM (DM, Vec, InsertMode, Vec) |
| PetscErrorCode | MoFEM::DMCreateFieldIS_MoFEM (DM dm, PetscInt *numFields, char ***fieldNames, IS **fields) |
| PetscErrorCode | MoFEM::DMMoFEMGetFieldIS (DM dm, RowColData rc, const char field_name[], IS *is) |
| get field is in the problem | |
| MoFEMErrorCode | MoFEM::DMMoFEMCreateBlockMat (DM dm, Mat *mat) |
| Create block matrix. | |
| MoFEMErrorCode | MoFEM::DMMoFEMCreateBlockMat (DM dm, SmartPetscObj< Mat > &mat) |
| Create block matrix. | |
| auto | MoFEM::createDMMatrix (DM dm) |
| Get smart matrix from DM. | |
| auto | MoFEM::createDMVector (DM dm, RowColData rc=RowColData::COL) |
| Get smart vector from DM. | |
| MoFEMErrorCode | MoFEM::DMMGViaApproxOrdersPushBackCoarseningIS (DM, IS is, Mat A, bool create_sub_matrix, bool shell_sub_a) |
| Push back coarsening level to MG via approximation orders. | |
| MoFEMErrorCode | MoFEM::DMMGViaApproxOrdersPopBackCoarseningIS (DM) |
| Pop IS form MG via approximation orders. | |
| MoFEMErrorCode | MoFEM::DMMGViaApproxOrdersClearCoarseningIS (DM) |
| Clear approximation orders. | |
| MoFEMErrorCode | MoFEM::DMRegister_MGViaApproxOrders (const char sname[]) |
| Register DM for Multi-Grid via approximation orders. | |
| MoFEMErrorCode | MoFEM::DMCreateMatrix_MGViaApproxOrders (DM dm, Mat *M) |
| Create matrix for Multi-Grid via approximation orders. | |
| MoFEMErrorCode | MoFEM::DMCoarsen_MGViaApproxOrders (DM dm, MPI_Comm comm, DM *dmc) |
| Coarsen DM. | |
Implementation of PETSc DM, managing interactions between mesh data structures and vectors and matrices.
DM objects are used to manage communication between the algebraic structures in PETSc (Vec and Mat) and mesh data structures in PDE-based (or other) simulations.
DM is abstract interface, here is it particular implementation for MoFEM code.
|
inline |
#include <src/petsc/DMMoFEM.hpp>
Get smart matrix from DM.
Definition at line 1236 of file DMMoFEM.hpp.
|
inline |
#include <src/petsc/DMMoFEM.hpp>
Get smart vector from DM.
Definition at line 1279 of file DMMoFEM.hpp.
| MoFEMErrorCode MoFEM::DMCoarsen_MGViaApproxOrders | ( | DM | dm, |
| MPI_Comm | comm, | ||
| DM * | dmc | ||
| ) |
#include <src/petsc/impl/PCMGSetUpViaApproxOrders.cpp>
Coarsen DM.
Not used directly by user
| dm | Distributed mesh data structure |
| comm | Communicator |
| dmc | Coarse distributed mesh data structure |
Definition at line 386 of file PCMGSetUpViaApproxOrders.cpp.
| PetscErrorCode MoFEM::DMCreate_MoFEM | ( | DM | dm | ) |
#include <src/petsc/DMMoFEM.hpp>
Create dm data structure with MoFEM data structure.
| dm | Distributed mesh manager to create |
Definition at line 71 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMCreateFieldIS_MoFEM | ( | DM | dm, |
| PetscInt * | numFields, | ||
| char *** | fieldNames, | ||
| IS ** | fields | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Creates a set of IS objects with the global indices of dofs for each field
| dm | The number of fields (or NULL if not requested) |
Output:
| numFields | The number of fields (or NULL if not requested) |
| fieldNames | The name for each field (or NULL if not requested) |
| fields | The global indices for each field (or NULL if not requested) |
Definition at line 1548 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMCreateGlobalVector_MoFEM | ( | DM | dm, |
| SmartPetscObj< Vec > & | g_ptr, | ||
| RowColData | rc = RowColData::COL |
||
| ) |
#include <src/petsc/DMMoFEM.hpp>
DMShellSetCreateGlobalVector.
sets the routine to create a global vector associated with the shell DM
Definition at line 1253 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMCreateGlobalVector_MoFEM | ( | DM | dm, |
| Vec * | g | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
DMShellSetCreateGlobalVector.
sets the routine to create a global vector associated with the shell DM
| dm | Distributed mesh manager |
| g | Pointer to global vector to create |
Definition at line 1243 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMCreateLocalVector_MoFEM | ( | DM | dm, |
| Vec * | l | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
DMShellSetCreateLocalVector.
sets the routine to create a local vector associated with the shell DM
Definition at line 1264 of file DMMoFEM.cpp.
| MoFEMErrorCode MoFEM::DMCreateMatrix_MGViaApproxOrders | ( | DM | dm, |
| Mat * | M | ||
| ) |
#include <src/petsc/impl/PCMGSetUpViaApproxOrders.cpp>
Create matrix for Multi-Grid via approximation orders.
Not used directly by user
| dm | Distributed mesh data structure |
| M | Matrix |
Definition at line 349 of file PCMGSetUpViaApproxOrders.cpp.
| PetscErrorCode MoFEM::DMCreateMatrix_MoFEM | ( | DM | dm, |
| Mat * | M | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
DMShellSetCreateMatrix
sets the routine to create a matrix associated with the shell DM
Definition at line 1274 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMCreateMatrix_MoFEM | ( | DM | dm, |
| SmartPetscObj< Mat > & | M | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
DMShellSetCreateMatrix
sets the routine to create a matrix associated with the shell DM
Definition at line 1314 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMDestroy_MoFEM | ( | DM | dm | ) |
#include <src/petsc/DMMoFEM.hpp>
Destroys dm with MoFEM data structure.
| dm | Distributed mesh manager to destroy |
destroy the MoFEM structure
Definition at line 105 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMGlobalToLocalBegin_MoFEM | ( | DM | dm, |
| Vec | g, | ||
| InsertMode | mode, | ||
| Vec | l | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
DMShellSetGlobalToLocal
the routine that begins the global to local scatter
Definition at line 1478 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMGlobalToLocalEnd_MoFEM | ( | DM | dm, |
| Vec | g, | ||
| InsertMode | mode, | ||
| Vec | l | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
DMShellSetGlobalToLocal
the routine that begins the global to local scatter
Definition at line 1486 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMLocalToGlobalBegin_MoFEM | ( | DM | dm, |
| Vec | l, | ||
| InsertMode | mode, | ||
| Vec | g | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
DMShellSetLocalToGlobal
the routine that begins the local to global scatter
DMShellSetLocalToGlobal
the routine that ends the local to global scatter
Definition at line 1514 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMLocalToGlobalEnd_MoFEM | ( | DM | , |
| Vec | l, | ||
| InsertMode | mode, | ||
| Vec | g | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
DMShellSetLocalToGlobal
the routine that ends the local to global scatter
Definition at line 1543 of file DMMoFEM.cpp.
| MoFEMErrorCode MoFEM::DMMGViaApproxOrdersClearCoarseningIS | ( | DM | ) |
#include <src/petsc/impl/PCMGSetUpViaApproxOrders.cpp>
Clear approximation orders.
| DM | dm |
Definition at line 293 of file PCMGSetUpViaApproxOrders.cpp.
| MoFEMErrorCode MoFEM::DMMGViaApproxOrdersPopBackCoarseningIS | ( | DM | ) |
#include <src/petsc/impl/PCMGSetUpViaApproxOrders.cpp>
Pop IS form MG via approximation orders.
| DM | dm |
Definition at line 281 of file PCMGSetUpViaApproxOrders.cpp.
| MoFEMErrorCode MoFEM::DMMGViaApproxOrdersPushBackCoarseningIS | ( | DM | , |
| IS | is, | ||
| Mat | A, | ||
| bool | create_sub_matrix, | ||
| bool | shell_sub_a | ||
| ) |
#include <src/petsc/impl/PCMGSetUpViaApproxOrders.cpp>
Push back coarsening level to MG via approximation orders.
| DM | discrete manager |
| is | Push back IS used for coarsening |
| A | Get sub-matrix of A using is (that sets operators for coarsening levels) |
| subA | Returning pointer to created sub matrix |
| subA | If true create sub matrix, otherwise in subA has to be valid pointer to subA |
Definition at line 227 of file PCMGSetUpViaApproxOrders.cpp.
| PetscErrorCode MoFEM::DMMoFEMAddColCompositeProblem | ( | DM | dm, |
| const char | prb_name[] | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Add problem to composite DM on col.
This create block on col with DOFs from problem of given name
| dm | the DM object |
| prb_name | add problem name |
Definition at line 411 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMAddElement | ( | DM | dm, |
| std::string | fe_name | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
add element to dm
| dm | Distributed mesh manager |
| fe_name | Finite element name |
Definition at line 574 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMAddElement | ( | DM | dm, |
| std::vector< std::string > | fe_name | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
add element to dm
| dm | Distributed mesh manager |
| fe_name | Vector of finite element names |
Definition at line 583 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMAddRowCompositeProblem | ( | DM | dm, |
| const char | prb_name[] | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Add problem to composite DM on row.
This create block on row with DOFs from problem of given name
| dm | the DM object |
| prb_name | add problem name |
Definition at line 393 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMAddSubFieldCol | ( | DM | dm, |
| const char | field_name[] | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Add field to sub dm problem on columns
Definition at line 309 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMAddSubFieldRow | ( | DM | dm, |
| const char | field_name[] | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Add field to sub dm problem on rows
| dm | Distributed mesh manager |
| field_name | Name of field to add to rows |
Definition at line 267 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMAddSubFieldRow | ( | DM | dm, |
| const char | field_name[], | ||
| boost::shared_ptr< Range > | r_ptr | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Add field to sub dm problem on rows.
| dm | |
| field_name | |
| m |
Definition at line 287 of file DMMoFEM.cpp.
| MoFEMErrorCode MoFEM::DMMoFEMCreateBlockMat | ( | DM | dm, |
| Mat * | mat | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Create block matrix.
| dm | |
| mat |
Definition at line 1630 of file DMMoFEM.cpp.
| MoFEMErrorCode MoFEM::DMMoFEMCreateBlockMat | ( | DM | dm, |
| SmartPetscObj< Mat > & | mat | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Create block matrix.
| dm | |
| mat | smart pointer |
| PetscErrorCode MoFEM::DMMoFEMCreateMoFEM | ( | DM | dm, |
| MoFEM::Interface * | m_field_ptr, | ||
| const char | problem_name[], | ||
| const MoFEM::BitRefLevel | bit_level, | ||
| const MoFEM::BitRefLevel | bit_mask = MoFEM::BitRefLevel().set() |
||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Must be called by user to set MoFEM data structures.
Definition at line 143 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMCreateSubDM | ( | DM | subdm, |
| DM | dm, | ||
| const char | problem_name[] | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Must be called by user to set Sub DM MoFEM data structures.
| subdm | Sub distributed mesh manager to create |
| dm | Parent distributed mesh manager |
| problem_name | Name of the problem to create sub DM for |
Definition at line 244 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetFieldIS | ( | DM | dm, |
| RowColData | rc, | ||
| const char | field_name[], | ||
| IS * | is | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
get field is in the problem
| dm | the DM objects |
| rc | ROW or COL (no difference is problem is squared) |
| field_name | name of the field |
| is | returned the IS object |
Definition at line 1593 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetIsCompDM | ( | DM | dm, |
| PetscBool * | is_comp_dm | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Get if this DM is composite DM.
| dm | the DM object |
| is_comp_dm | return true if composite problem here |
Definition at line 431 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetIsPartitioned | ( | DM | dm, |
| PetscBool * | is_partitioned | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
get if read mesh is partitioned
| dm | Distributed mesh manager |
| is_partitioned | Pointer to boolean flag for partition status |
get if read mesh is partitioned
Definition at line 1210 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetIsSubDM | ( | DM | dm, |
| PetscBool * | is_sub_dm | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Return true if this DM is sub problem
| dm | the DM object |
| is_subproblem | true if subproblem |
Definition at line 351 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetKspCtx | ( | DM | dm, |
| const boost::shared_ptr< MoFEM::KspCtx > & | ksp_ctx | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
get MoFEM::KspCtx data structure
| dm | Distributed mesh manager |
| ksp_ctx | Shared pointer to KSP context structure |
Definition at line 1153 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetKspCtx | ( | DM | dm, |
| MoFEM::KspCtx ** | ksp_ctx | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
get MoFEM::KspCtx data structure
| dm | Distributed mesh manager |
| ksp_ctx | Pointer to KSP context structure |
Definition at line 1144 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetProblemFiniteElementLayout | ( | DM | dm, |
| std::string | fe_name, | ||
| PetscLayout * | layout | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Get finite elements layout in the problem.
In layout is stored information how many elements are on each processor, for more information look at petsc documentation http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/IS/PetscLayoutCreate.html#PetscLayoutCreate
| dm | discrete manager for this problem |
| fe_name | finite element name |
| layout | pointer to layout, for created layout user takes responsibility for destroying it. |
Definition at line 553 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetProblemPtr | ( | DM | dm, |
| const MoFEM::Problem ** | problem_ptr | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Get pointer to problem data structure.
| dm | Distributed mesh manager |
| problem_ptr | Pointer to pointer of problem data structure |
Definition at line 451 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetSnesCtx | ( | DM | dm, |
| const boost::shared_ptr< MoFEM::SnesCtx > & | snes_ctx | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
get MoFEM::SnesCtx data structure
| dm | Distributed mesh manager |
| snes_ctx | Shared pointer to SNES context structure |
Definition at line 1179 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetSnesCtx | ( | DM | dm, |
| MoFEM::SnesCtx ** | snes_ctx | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
get MoFEM::SnesCtx data structure
| dm | Distributed mesh manager |
| snes_ctx | Pointer to SNES context structure |
Definition at line 1170 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetSquareProblem | ( | DM | dm, |
| PetscBool * | square_problem | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
get squared problem
If true, it is assumed that matrix has the same indexing on rows and columns. This reduces interprocessor communication.
Definition at line 566 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetTsCtx | ( | DM | dm, |
| const boost::shared_ptr< MoFEM::TsCtx > & | ts_ctx | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
get MoFEM::TsCtx data structure
Definition at line 1226 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMGetTsCtx | ( | DM | dm, |
| MoFEM::TsCtx ** | ts_ctx | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
get MoFEM::TsCtx data structure
Definition at line 1218 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMKSPSetComputeOperators | ( | DM | dm, |
| const char | fe_name[], | ||
| MoFEM::FEMethod * | method, | ||
| MoFEM::BasicMethod * | pre_only, | ||
| MoFEM::BasicMethod * | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Set KSP operators and push mofem finite element methods.
| dm | DM |
| fe_name | finite element name |
| method | method on the element (executed for each element in the problem which given name) |
| pre_only | method for pre-process before element method |
| post_only | method for post-process after element method |
Definition at line 754 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMKSPSetComputeOperators | ( | DM | dm, |
| const std::string | fe_name, | ||
| boost::shared_ptr< MoFEM::FEMethod > | method, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | pre_only, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Set KSP operators and push mofem finite element methods.
| dm | DM |
| fe_name | finite element name |
| method | method on the element (executed for each element in the problem which given name) |
| pre_only | method for pre-process before element method |
| post_only | method for post-process after element method |
Definition at line 765 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMKSPSetComputeRHS | ( | DM | dm, |
| const char | fe_name[], | ||
| MoFEM::FEMethod * | method, | ||
| MoFEM::BasicMethod * | pre_only, | ||
| MoFEM::BasicMethod * | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set KSP right hand side evaluation function
Definition at line 713 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMKSPSetComputeRHS | ( | DM | dm, |
| const std::string | fe_name, | ||
| boost::shared_ptr< MoFEM::FEMethod > | method, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | pre_only, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set KSP right hand side evaluation function
Definition at line 723 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMRebuildProblem | ( | DM | dm, |
| const MoFEM::BitRefLevel | target_bit, | ||
| const MoFEM::BitRefLevel | target_mask, | ||
| IS * | old_row_indices = PETSC_NULLPTR, |
||
| IS * | new_row_indices = PETSC_NULLPTR |
||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Rebuild the DM's parent problem in place on a new bit ref level.
Collective. For a set-up, partitioned, non-composite parent DM: the problem keeps its name and the DM, its selector is set to target_bit and target_mask, the numbered DOFs are rebuilt by the distributed builder (every index changes; nothing is preserved), the finite elements and the ghost DOFs are partitioned again, and the vectors the DM caches, its block matrix structure and its nested Schur data are dropped. Sub-DMs, matrices, vectors, index sets and solvers made from the old numbering must be recreated by the caller.
| dm | parent DMMOFEM, set up with DMMoFEMSetIsPartitioned true |
| target_bit | bit ref level of the rebuilt problem |
| target_mask | bit ref mask of the rebuilt problem |
| old_row_indices | optional, collective: old global row indices of the DOFs owned by this rank that exist in both numberings; the caller destroys it |
| new_row_indices | optional, collective: their new global row indices, same order; the caller destroys it |
Definition at line 479 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMResolveSharedFiniteElements | ( | DM | dm, |
| std::string | fe_name | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Resolve shared entities.
| dm | dm |
| fe_name | finite element for which shared entities are resolved |
This allows for tag reduction or tag exchange, f.e.
Definition at line 544 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMSetIsPartitioned | ( | DM | dm, |
| PetscBool | is_partitioned | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
sets if read mesh is partitioned
| dm | Distributed mesh manager |
| is_partitioned | Boolean flag indicating if mesh is partitioned |
get if read mesh is partitioned
Definition at line 1199 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMSetKspCtx | ( | DM | dm, |
| boost::shared_ptr< MoFEM::KspCtx > | ksp_ctx | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set MoFEM::KspCtx data structure
| dm | Distributed mesh manager |
| ksp_ctx | Shared pointer to KSP context structure to set |
Definition at line 1161 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMSetSnesCtx | ( | DM | dm, |
| boost::shared_ptr< MoFEM::SnesCtx > | snes_ctx | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Set MoFEM::SnesCtx data structure.
Definition at line 1187 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMSetSquareProblem | ( | DM | dm, |
| PetscBool | square_problem | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set squared problem
If true, it is assumed that matrix has the same indexing on rows and columns. This reduces interprocessor communication.
Definition at line 536 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMSetTsCtx | ( | DM | dm, |
| boost::shared_ptr< MoFEM::TsCtx > | ts_ctx | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Set MoFEM::TsCtx data structure.
It take over pointer, do not delete it, DM will destroy pointer when is destroyed.
Definition at line 1235 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMSNESSetFunction | ( | DM | dm, |
| const char | fe_name[], | ||
| MoFEM::FEMethod * | method, | ||
| MoFEM::BasicMethod * | pre_only, | ||
| MoFEM::BasicMethod * | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set SNES residual evaluation function
Definition at line 794 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMSNESSetFunction | ( | DM | dm, |
| const std::string | fe_name, | ||
| boost::shared_ptr< MoFEM::FEMethod > | method, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | pre_only, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set SNES residual evaluation function
Definition at line 804 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMSNESSetJacobian | ( | DM | dm, |
| const char | fe_name[], | ||
| MoFEM::FEMethod * | method, | ||
| MoFEM::BasicMethod * | pre_only, | ||
| MoFEM::BasicMethod * | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set SNES Jacobian evaluation function
Definition at line 835 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMSNESSetJacobian | ( | DM | dm, |
| const std::string | fe_name, | ||
| boost::shared_ptr< MoFEM::FEMethod > | method, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | pre_only, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set SNES Jacobian evaluation function
Definition at line 845 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMTSSetI2Function | ( | DM | dm, |
| const char | fe_name[], | ||
| MoFEM::FEMethod * | method, | ||
| MoFEM::BasicMethod * | pre_only, | ||
| MoFEM::BasicMethod * | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set TS implicit function evaluation function
Definition at line 1040 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMTSSetI2Function | ( | DM | dm, |
| const std::string | fe_name, | ||
| boost::shared_ptr< MoFEM::FEMethod > | method, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | pre_only, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set TS implicit function evaluation function
Definition at line 1051 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMTSSetI2Jacobian | ( | DM | dm, |
| const char | fe_name[], | ||
| MoFEM::FEMethod * | method, | ||
| MoFEM::BasicMethod * | pre_only, | ||
| MoFEM::BasicMethod * | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set TS Jacobian evaluation function
Definition at line 1083 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMTSSetI2Jacobian | ( | DM | dm, |
| const std::string | fe_name, | ||
| boost::shared_ptr< MoFEM::FEMethod > | method, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | pre_only, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set TS Jacobian evaluation function
Definition at line 1093 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMTSSetIFunction | ( | DM | dm, |
| const char | fe_name[], | ||
| MoFEM::FEMethod * | method, | ||
| MoFEM::BasicMethod * | pre_only, | ||
| MoFEM::BasicMethod * | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set TS implicit function evaluation function
Definition at line 876 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMTSSetIFunction | ( | DM | dm, |
| const std::string | fe_name, | ||
| boost::shared_ptr< MoFEM::FEMethod > | method, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | pre_only, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set TS implicit function evaluation function
Definition at line 887 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMTSSetIJacobian | ( | DM | dm, |
| const char | fe_name[], | ||
| MoFEM::FEMethod * | method, | ||
| MoFEM::BasicMethod * | pre_only, | ||
| MoFEM::BasicMethod * | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set TS Jacobian evaluation function
Definition at line 919 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMTSSetIJacobian | ( | DM | dm, |
| const std::string | fe_name, | ||
| boost::shared_ptr< MoFEM::FEMethod > | method, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | pre_only, | ||
| boost::shared_ptr< MoFEM::BasicMethod > | post_only | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set TS Jacobian evaluation function
Definition at line 929 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMMoFEMUnSetElement | ( | DM | dm, |
| std::string | fe_name | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
unset element from dm
| dm | Distributed mesh manager |
| fe_name | Finite element name to remove |
Definition at line 591 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMoFEMGetInterfacePtr | ( | DM | dm, |
| MoFEM::Interface ** | m_field_ptr | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Get pointer to MoFEM::Interface.
| dm | Distributed mesh manager |
| m_field_ptr | Pointer to pointer of field interface |
Definition at line 439 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMoFEMLoopDofs | ( | DM | dm, |
| const char | field_name[], | ||
| MoFEM::DofMethod * | method | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
execute method for dofs on field in problem
Definition at line 681 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMoFEMLoopFiniteElements | ( | DM | dm, |
| const char | fe_name[], | ||
| MoFEM::FEMethod * | method, | ||
| CacheTupleWeakPtr | cache_ptr = CacheTupleSharedPtr() |
||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Executes FEMethod for finite elements in DM.
| dm | MoFEM discrete manager |
| fe_name | name of element |
| method | pointer to MOFEM::FEMethod |
Definition at line 662 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMoFEMLoopFiniteElements | ( | DM | dm, |
| const std::string | fe_name, | ||
| boost::shared_ptr< MoFEM::FEMethod > | method, | ||
| CacheTupleWeakPtr | cache_ptr = CacheTupleSharedPtr() |
||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Executes FEMethod for finite elements in DM.
| dm | MoFEM discrete manager |
| fe_name | name of element |
| method | pointer to MOFEM::FEMethod |
Definition at line 675 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMoFEMLoopFiniteElementsUpAndLowRank | ( | DM | dm, |
| const char | fe_name[], | ||
| MoFEM::FEMethod * | method, | ||
| int | low_rank, | ||
| int | up_rank, | ||
| CacheTupleWeakPtr | cache_ptr = CacheTupleSharedPtr() |
||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Executes FEMethod for finite elements in DM.
| dm | MoFEM discrete manager |
| fe_name | name of finite element |
| method | pointer to MoFEM::FEMethod |
| low_rank | lowest rank of processor |
| up_rank | upper run of processor |
Definition at line 643 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMoFEMLoopFiniteElementsUpAndLowRank | ( | DM | dm, |
| const std::string | fe_name, | ||
| boost::shared_ptr< MoFEM::FEMethod > | method, | ||
| int | low_rank, | ||
| int | up_rank, | ||
| CacheTupleWeakPtr | cache_ptr = CacheTupleSharedPtr() |
||
| ) |
#include <src/petsc/DMMoFEM.hpp>
Executes FEMethod for finite elements in DM.
| dm | MoFEM discrete manager |
| fe_name | name of finite element |
| method | pointer to MoFEM::FEMethod |
| low_rank | lowest rank of processor |
| up_rank | upper run of processor |
Definition at line 655 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMoFEMMeshToGlobalVector | ( | DM | dm, |
| Vec | g, | ||
| InsertMode | mode, | ||
| ScatterMode | scatter_mode, | ||
| RowColData | rc = RowColData::COL |
||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set ghosted vector values on all existing mesh entities
| g | vector |
| mode | see petsc manual for VecSetValue (ADD_VALUES or INSERT_VALUES) |
| scatter_mode | see petsc manual for ScatterMode (The available modes are: SCATTER_FORWARD or SCATTER_REVERSE) |
SCATTER_REVERSE set data to field entities from V vector.
SCATTER_FORWARD set vector V from data field entities
Definition at line 611 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMoFEMMeshToLocalVector | ( | DM | dm, |
| Vec | l, | ||
| InsertMode | mode, | ||
| ScatterMode | scatter_mode, | ||
| RowColData | rc = RowColData::COL |
||
| ) |
#include <src/petsc/DMMoFEM.hpp>
set local (or ghosted) vector values on mesh for partition only
| l | vector |
| mode | see petsc manual for VecSetValue (ADD_VALUES or INSERT_VALUES) |
| scatter_mode | see petsc manual for ScatterMode (The available modes are: SCATTER_FORWARD or SCATTER_REVERSE) |
SCATTER_REVERSE set data to field entities from V vector. SCATTER_FORWARD set vector V from data field entities
This code will update ghosted entities on all processors
For implementations see VecManager::setLocalGhostVector.
Definition at line 600 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMoFEMPostProcessFiniteElements | ( | DM | dm, |
| MoFEM::FEMethod * | method | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
execute finite element method for each element in dm (problem)
| dm | Distributed mesh manager |
| method | Finite element method to execute for postprocessing |
Definition at line 632 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMoFEMPreProcessFiniteElements | ( | DM | dm, |
| MoFEM::FEMethod * | method | ||
| ) |
#include <src/petsc/DMMoFEM.hpp>
execute finite element method for each element in dm (problem)
| dm | Distributed mesh manager |
| method | Finite element method to execute for preprocessing |
Definition at line 622 of file DMMoFEM.cpp.
| MoFEMErrorCode MoFEM::DMRegister_MGViaApproxOrders | ( | const char | sname[] | ) |
#include <src/petsc/impl/PCMGSetUpViaApproxOrders.cpp>
Register DM for Multi-Grid via approximation orders.
| sname | problem/dm registered name |
Definition at line 302 of file PCMGSetUpViaApproxOrders.cpp.
| PetscErrorCode MoFEM::DMRegister_MoFEM | ( | const char | sname[] | ) |
#include <src/petsc/DMMoFEM.hpp>
Register MoFEM problem.
| sname | Solver name string identifier |
Definition at line 43 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMSetFromOptions_MoFEM | ( | DM | dm | ) |
#include <src/petsc/DMMoFEM.hpp>
Set options for MoFEM DM
Definition at line 1362 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMSetOperators_MoFEM | ( | DM | dm | ) |
#include <src/petsc/DMMoFEM.hpp>
Set operators for MoFEM dm.
| dm | Distributed mesh manager |
Definition at line 49 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMSetUp_MoFEM | ( | DM | dm | ) |
#include <src/petsc/DMMoFEM.hpp>
sets up the MoFEM structures inside a DM object
Definition at line 1384 of file DMMoFEM.cpp.
| PetscErrorCode MoFEM::DMSubDMSetUp_MoFEM | ( | DM | subdm | ) |
#include <src/petsc/DMMoFEM.hpp>
Sets up the MoFEM structures inside a DM object for sub dm
| subdm | Sub distributed mesh manager to set up |
Definition at line 1431 of file DMMoFEM.cpp.