OGS
ApplicationsLib::detail::LinearSolverLibrarySetupPETSc Struct Referencefinal

Detailed Description

Definition at line 23 of file LinearSolverLibrarySetup.cpp.

Inheritance diagram for ApplicationsLib::detail::LinearSolverLibrarySetupPETSc:
[legend]
Collaboration diagram for ApplicationsLib::detail::LinearSolverLibrarySetupPETSc:
[legend]

Public Member Functions

 LinearSolverLibrarySetupPETSc (int argc, char *argv[])
 ~LinearSolverLibrarySetupPETSc ()

Additional Inherited Members

Static Public Member Functions inherited from ApplicationsLib::LinearSolverLibrarySetup
OGS_EXPORT_SYMBOL static std::shared_ptr< LinearSolverLibrarySetupcreate (int argc, char *argv[])
Protected Member Functions inherited from ApplicationsLib::LinearSolverLibrarySetup
 LinearSolverLibrarySetup ()=default
virtual ~LinearSolverLibrarySetup ()

Constructor & Destructor Documentation

◆ LinearSolverLibrarySetupPETSc()

ApplicationsLib::detail::LinearSolverLibrarySetupPETSc::LinearSolverLibrarySetupPETSc ( int argc,
char * argv[] )
inline

Definition at line 26 of file LinearSolverLibrarySetup.cpp.

27 {
28 char help[] = "ogs6 with PETSc \n";
29 PETSC_COMM_WORLD = BaseLib::MPI::OGS_COMM_WORLD;
30 PetscInitialize(&argc, &argv, nullptr, help);
31 MPI_Comm_set_errhandler(PETSC_COMM_WORLD, MPI_ERRORS_RETURN);
32 }
MPI_Comm OGS_COMM_WORLD
Definition MPI.cpp:9

References BaseLib::MPI::OGS_COMM_WORLD.

◆ ~LinearSolverLibrarySetupPETSc()

ApplicationsLib::detail::LinearSolverLibrarySetupPETSc::~LinearSolverLibrarySetupPETSc ( )
inline

Definition at line 34 of file LinearSolverLibrarySetup.cpp.

35 {
37 PetscFinalize();
38 }
void cleanupGlobalMatrixProviders()

References NumLib::cleanupGlobalMatrixProviders().


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