Thyra Version of the Day
Loading...
Searching...
No Matches
Thyra_DefaultSpmdVectorSpaceFactory_decl.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_FACTORY_STD_DECL_HPP
11#define THYRA_SPMD_VECTOR_SPACE_FACTORY_STD_DECL_HPP
12
13#include "Thyra_VectorSpaceFactoryBase.hpp"
14
15namespace Teuchos { template<typename Ordinal> class Comm; }
16
17namespace Thyra {
18
34template<class Scalar>
36public:
37
40
43
61
63
64private:
65
67
68public:
69
73 );
74
75}; // end class DefaultSpmdVectorSpaceFactory
76
77
90template<class Scalar>
98
99
100// ///////////////////////////
101// Inline members
102
103
104template<class Scalar>
105inline
108{
109 return comm_;
110}
111
112} // end namespace Thyra
113
114#endif // THYRA_SPMD_VECTOR_SPACE_FACTORY_STD_DECL_HPP
Concrete implementation of a vector-space factory for a locally-replicated distributed DefaultSpmdVec...
Teuchos::RCP< const VectorSpaceBase< Scalar > > createVecSpc(int dim) const
Create a new locally-replicated DefaultSpmdVectorSpace object given its dimension!
Teuchos::RCP< const Teuchos::Comm< Ordinal > > getComm() const
Return the Spmd communicator.
RCP< DefaultSpmdVectorSpaceFactory< Scalar > > defaultSpmdVectorSpaceFactory(const Teuchos::RCP< const Teuchos::Comm< Ordinal > > &comm=Teuchos::null)
Construct with a Teuchos::Comm object.
Abstract interface for objects that can create vector spaces of a specified dimension.
T_To & dyn_cast(T_From &from)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)