Public Member Functions | Public Attributes | List of all members
MoFEM::Version Struct Reference

#include <src/interfaces/UnknownInterface.hpp>

Public Member Functions

 Version ()
 Version (const int v[3])
 Version (const int minor, const int major, const int build)
MoFEMErrorCode printVersion (std::string prefix="", MPI_Comm comm=PETSC_COMM_WORLD)

Public Attributes

int majorVersion
int minorVersion
int buildVersion

Detailed Description

Definition at line 48 of file UnknownInterface.hpp.

Constructor & Destructor Documentation

◆ Version() [1/3]

MoFEM::Version::Version ( )

Definition at line 52 of file UnknownInterface.hpp.

53  : majorVersion(MoFEM_VERSION_MAJOR), minorVersion(MoFEM_VERSION_MINOR),
54  buildVersion(MoFEM_VERSION_BUILD) {}

◆ Version() [2/3]

MoFEM::Version::Version ( const int  v[3])

Definition at line 55 of file UnknownInterface.hpp.

◆ Version() [3/3]

MoFEM::Version::Version ( const int  minor,
const int  major,
const int  build 

Definition at line 57 of file UnknownInterface.hpp.

Member Function Documentation

◆ printVersion()

MoFEMErrorCode MoFEM::Version::printVersion ( std::string  prefix = "",

Definition at line 60 of file UnknownInterface.hpp.

61  {
63  if(!prefix.empty()) {
64  prefix += " ";
65  }
66  CHKERR PetscPrintf(comm, "%s%d.%d.%d\n", prefix.c_str(), majorVersion,
69  }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:482
#define CHKERR
Inline error check.
Definition: definitions.h:601
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:412

Member Data Documentation

◆ buildVersion

int MoFEM::Version::buildVersion

Definition at line 51 of file UnknownInterface.hpp.

◆ majorVersion

int MoFEM::Version::majorVersion

Definition at line 49 of file UnknownInterface.hpp.

◆ minorVersion

int MoFEM::Version::minorVersion

Definition at line 50 of file UnknownInterface.hpp.

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