Thyra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
16 namespace Thyra {
17 
18 namespace SpmdVectorSpaceUtilities {
19 
21 Ordinal computeMapCode( const Teuchos::Comm<Ordinal> &comm, const Ordinal localSubDim );
22 
24 Ordinal computeLocalOffset( const Teuchos::Comm<Ordinal> &comm, const Ordinal localSubDim );
25 
27 Ordinal 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. `*.