Thyra
Version of the Day
Loading...
Searching...
No Matches
core
src
support
operator_vector
adapter_support
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>
20
DefaultSpmdVectorSpaceFactory<Scalar>::DefaultSpmdVectorSpaceFactory
(
21
const
Teuchos::RCP
<
const
Teuchos::Comm<Ordinal>
> &comm
22
)
23
:comm_(comm)
24
{}
25
26
template
<
class
Scalar>
27
Teuchos::RCP<const VectorSpaceBase<Scalar>
>
28
DefaultSpmdVectorSpaceFactory<Scalar>::createVecSpc
(
int
dim)
const
29
{
30
return
locallyReplicatedDefaultSpmdVectorSpace<Scalar>(comm_, dim);
31
}
32
33
}
// end namespace Thyra
34
35
#endif
// THYRA_DEFAULT_SPMD_VECTOR_SPACE_FACTORY_HPP
Teuchos::Comm
Teuchos::RCP
Thyra::DefaultSpmdVectorSpaceFactory::createVecSpc
Teuchos::RCP< const VectorSpaceBase< Scalar > > createVecSpc(int dim) const
Create a new locally-replicated DefaultSpmdVectorSpace object given its dimension!
Definition
Thyra_DefaultSpmdVectorSpaceFactory_def.hpp:28
Thyra::DefaultSpmdVectorSpaceFactory::DefaultSpmdVectorSpaceFactory
DefaultSpmdVectorSpaceFactory(const Teuchos::RCP< const Teuchos::Comm< Ordinal > > &comm=Teuchos::null)
Depreciated .
Definition
Thyra_DefaultSpmdVectorSpaceFactory_def.hpp:20
Generated on Thu Oct 9 2025 21:00:31 for Thyra by
1.9.8