OGS
ApplicationsLib::LinearSolverLibrarySetup Struct Referencefinal

Detailed Description

Definition at line 29 of file LinearSolverLibrarySetup.h.

#include <LinearSolverLibrarySetup.h>

Public Member Functions

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

Constructor & Destructor Documentation

◆ LinearSolverLibrarySetup()

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

Definition at line 31 of file LinearSolverLibrarySetup.h.

32 {
33 MPI_Init(&argc, &argv);
34 char help[] = "ogs6 with PETSc \n";
35 PetscInitialize(&argc, &argv, nullptr, help);
36 MPI_Comm_set_errhandler(PETSC_COMM_WORLD, MPI_ERRORS_RETURN);
37 }

◆ ~LinearSolverLibrarySetup()

ApplicationsLib::LinearSolverLibrarySetup::~LinearSolverLibrarySetup ( )
inline

Definition at line 39 of file LinearSolverLibrarySetup.h.

40 {
42 PetscFinalize();
43 MPI_Finalize();
44 }
void cleanupGlobalMatrixProviders()

References NumLib::cleanupGlobalMatrixProviders().


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