Thyra Version of the Day
Loading...
Searching...
No Matches
Thyra_SpmdVectorSpaceUtilities.hpp
1// @HEADER
2// *****************************************************************************
3// Thyra: Interfaces and Support for Abstract Numerical Algorithms
4//
5// Copyright 2004 NTESS and the Thyra contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef THYRA_SPMD_VECTOR_SPACE_UTILITIES_HPP
11#define THYRA_SPMD_VECTOR_SPACE_UTILITIES_HPP
12
13#include "Thyra_OperatorVectorTypes.hpp"
14#include "Teuchos_Comm.hpp"
15
16namespace Thyra {
17
18namespace SpmdVectorSpaceUtilities {
19
21Ordinal computeMapCode( const Teuchos::Comm<Ordinal> &comm, const Ordinal localSubDim );
22
24Ordinal computeLocalOffset( const Teuchos::Comm<Ordinal> &comm, const Ordinal localSubDim );
25
27Ordinal computeGlobalDim( const Teuchos::Comm<Ordinal> &comm, const Ordinal localSubDim );
28
29} // namespace SpmdVectorSpaceUtiltities
30
31} // namespace Thyra
32
33#endif // THYRA_SPMD_VECTOR_SPACE_UTILITIES_HPP
Teuchos::Ordinal Ordinal
Type for the dimension of a vector space. `*.