GEOSX
coreComponents
linearAlgebra
interfaces
trilinos
EpetraUtils.hpp
Go to the documentation of this file.
1
/*
2
* ------------------------------------------------------------------------------------------------------------
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*
5
* Copyright (c) 2018-2020 Lawrence Livermore National Security LLC
6
* Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University
7
* Copyright (c) 2018-2020 Total, S.A
8
* Copyright (c) 2019- GEOSX Contributors
9
* All rights reserved
10
*
11
* See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
12
* ------------------------------------------------------------------------------------------------------------
13
*/
14
18
#ifndef GEOSX_LINEARALGEBRA_INTERFACES_EPETRAUTILS_HPP_
19
#define GEOSX_LINEARALGEBRA_INTERFACES_EPETRAUTILS_HPP_
20
21
#include "
common/DataTypes.hpp
"
22
23
namespace
geosx
24
{
25
31
inline
long
long
*
toEpetraLongLong
(
globalIndex
*
const
index )
32
{
33
return
reinterpret_cast<
long
long
*
>
(index);
34
}
35
41
inline
long
long
const
*
toEpetraLongLong
(
globalIndex
const
*
const
index )
42
{
43
return
reinterpret_cast<
long
long
const
*
>
(index);
44
}
45
46
}
47
48
#endif //GEOSX_LINEARALGEBRA_INTERFACES_EPETRAUTILS_HPP_
geosx::globalIndex
long long int globalIndex
Global index type (for indexing objects across MPI partitions).
Definition:
DataTypes.hpp:128
geosx
Definition:
DataLayouts.hpp:25
geosx::toEpetraLongLong
long long * toEpetraLongLong(globalIndex *const index)
Converts a non-const array from GEOSX globalIndex type to Epetra long long.
Definition:
EpetraUtils.hpp:31
DataTypes.hpp
Generated by
1.8.13