preCICE v3.1.2
Loading...
Searching...
No Matches
Static Public Member Functions | Static Private Attributes | List of all members
precice::utils::Petsc Class Reference

Utility class for managing PETSc operations. More...

#include <Petsc.hpp>

Collaboration diagram for precice::utils::Petsc:
[legend]

Static Public Member Functions

static void initialize (utils::Parallel::Communicator comm)
 Initializes the Petsc environment.
 
static void finalize ()
 Finalizes Petsc environment.
 

Static Private Attributes

static bool weInitialized = false
 Whether we have initialized Petsc or if it was initialized by an application calling us.
 
static logging::Logger _log
 

Detailed Description

Utility class for managing PETSc operations.

Definition at line 15 of file Petsc.hpp.

Member Function Documentation

◆ finalize()

void precice::utils::Petsc::finalize ( )
static

Finalizes Petsc environment.

Definition at line 98 of file Petsc.cpp.

◆ initialize()

void precice::utils::Petsc::initialize ( utils::Parallel::Communicator comm)
static

Initializes the Petsc environment.

Parameters
[in]commThe communicator to Initialize PETSc on

Definition at line 78 of file Petsc.cpp.

Member Data Documentation

◆ _log

precice::logging::Logger precice::utils::Petsc::_log
staticprivate

Definition at line 31 of file Petsc.hpp.

◆ weInitialized

bool precice::utils::Petsc::weInitialized = false
staticprivate

Whether we have initialized Petsc or if it was initialized by an application calling us.

Definition at line 29 of file Petsc.hpp.


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