GEOS
Namespaces | Functions
PetscUtils.hpp File Reference
#include "common/DataTypes.hpp"
#include <petscsys.h>

Go to the source code of this file.

Namespaces

 geos
 

Functions

PetscInt * geos::petsc::toPetscInt (globalIndex *const index)
 Converts a non-const array from GEOSX globalIndex type to PetscInt. More...
 
PetscInt const * geos::petsc::toPetscInt (globalIndex const *const index)
 Converts a const array from GEOSX globalIndex type to PetscInt. More...
 

Function Documentation

◆ toPetscInt() [1/2]

PetscInt* geos::petsc::toPetscInt ( globalIndex *const  index)
inline

Converts a non-const array from GEOSX globalIndex type to PetscInt.

Parameters
[in]indexthe input array
Returns
the converted array

Definition at line 49 of file PetscUtils.hpp.

◆ toPetscInt() [2/2]

PetscInt const* geos::petsc::toPetscInt ( globalIndex const *const  index)
inline

Converts a const array from GEOSX globalIndex type to PetscInt.

Parameters
[in]indexthe input array
Returns
the converted array

Definition at line 59 of file PetscUtils.hpp.