Thyra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Thyra_DefaultSpmdVectorSpaceFactory_def.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_DEFAULT_SPMD_VECTOR_SPACE_FACTORY_HPP
11 #define THYRA_DEFAULT_SPMD_VECTOR_SPACE_FACTORY_HPP
12 
13 #include "Thyra_DefaultSpmdVectorSpaceFactory_decl.hpp"
14 #include "Thyra_VectorSpaceFactoryBase.hpp"
15 #include "Thyra_DefaultSpmdVectorSpace.hpp"
16 
17 namespace Thyra {
18 
19 template<class Scalar>
21  const Teuchos::RCP<const Teuchos::Comm<Ordinal> > &comm
22  )
23  :comm_(comm)
24 {}
25 
26 template<class Scalar>
29 {
30  return locallyReplicatedDefaultSpmdVectorSpace<Scalar>(comm_, dim);
31 }
32 
33 } // end namespace Thyra
34 
35 #endif // THYRA_DEFAULT_SPMD_VECTOR_SPACE_FACTORY_HPP
Teuchos::RCP< const VectorSpaceBase< Scalar > > createVecSpc(int dim) const
Create a new locally-replicated DefaultSpmdVectorSpace object given its dimension! ...
DefaultSpmdVectorSpaceFactory(const Teuchos::RCP< const Teuchos::Comm< Ordinal > > &comm=Teuchos::null)
Depreciated .