Advanced Multi-Physics (AMP)
On-Line Documentation
VectorTests.h
Go to the documentation of this file.
1#ifndef included_AMP_test_VectorTests
2#define included_AMP_test_VectorTests
3
4#include "AMP/utils/UnitTest.h"
5#include <memory>
6
7#include "AMP/vectors/Variable.h"
8#include "AMP/vectors/Vector.h"
9
10#include <string>
11
12
13namespace AMP::LinearAlgebra {
14
15
21{
22public:
23 virtual ~VectorFactory() {}
25 virtual std::string name() const = 0;
26
27protected:
30};
31
32
38{
39public:
40 explicit VectorTests( std::shared_ptr<const VectorFactory> factory ) : d_factory( factory ) {}
41
42public:
52
53
54public:
57 template<typename VIEWER>
89 // Test creating a multivector with multiple copies of the data
90 // This should always return one copy of the superset of the data
94
95public: // Vector selector tests
96 // Test to check that Vector::select, Vector::select, VectorSelector::subset,
97 // and VectorSelector::constSubset return the same vectors
99
100 // Test the behavior of VS_ByVariableName
102
103 // Test the behavior of VS_Comm
105
106 // Test the behavior of VS_Comm
108
109
110private:
111 std::shared_ptr<const VectorFactory> d_factory;
112};
113
114
115} // namespace AMP::LinearAlgebra
116
117
118// Extra includes
119#include "AMP/vectors/testHelpers/VectorTests.inline.h"
120
121
122#endif
VectorFactory(const VectorFactory &)
virtual std::string name() const =0
virtual AMP::LinearAlgebra::Vector::shared_ptr getVector() const =0
void testSundials(AMP::UnitTest *)
void VectorIteratorTests(AMP::UnitTest *)
void DivideVector(AMP::UnitTest *)
void DeepCloneOfView(AMP::UnitTest *)
std::shared_ptr< const VectorFactory > d_factory
void test_VS_Component(AMP::UnitTest *)
void InstantiateVector(AMP::UnitTest *)
void AxpbyVector(AMP::UnitTest *)
void LinearSumVector(AMP::UnitTest *)
void testAllSelectors(AMP::UnitTest *)
void DotProductVector(AMP::UnitTest *)
void TestContainsGlobalElement(AMP::UnitTest *)
void TestMultivectorDuplicate(AMP::UnitTest *)
void Bug_491(AMP::UnitTest *)
void AxpyVector(AMP::UnitTest *)
void AbsVector(AMP::UnitTest *)
void VerifyVectorMakeConsistentAdd(AMP::UnitTest *)
void VerifyVectorGhostCreate(AMP::UnitTest *)
void testManagedVector(AMP::UnitTest *)
void testBasicVector(AMP::UnitTest *)
void CloneVector(AMP::UnitTest *)
void MultiplyVector(AMP::UnitTest *)
void test_VS_Comm(AMP::UnitTest *)
void SetRandomValuesVector(AMP::UnitTest *)
void VerifyVectorMakeConsistentSet(AMP::UnitTest *)
void testTpetra(AMP::UnitTest *)
void SubtractVector(AMP::UnitTest *)
VectorTests(std::shared_ptr< const VectorFactory > factory)
Definition VectorTests.h:40
void ReciprocalVector(AMP::UnitTest *)
void AddVector(AMP::UnitTest *)
void testVectorSelector(AMP::UnitTest *)
void VerifyVectorMin(AMP::UnitTest *)
void CopyVector(AMP::UnitTest *)
void ScaleVector(AMP::UnitTest *)
void test_VS_ByVariableName(AMP::UnitTest *)
void VerifyVectorSetZeroGhosts(AMP::UnitTest *)
void SetToScalarVector(AMP::UnitTest *)
void testParallelVectors(AMP::UnitTest *)
void L2NormVector(AMP::UnitTest *)
void testNullVector(AMP::UnitTest *)
void L1NormVector(AMP::UnitTest *)
void VerifyVectorSum(AMP::UnitTest *)
void MaxNormVector(AMP::UnitTest *)
void Bug_728(AMP::UnitTest *)
void VectorIteratorLengthTest(AMP::UnitTest *)
void VerifyVectorMaxMin(AMP::UnitTest *)
void testPetsc(AMP::UnitTest *)
void testEpetra(AMP::UnitTest *)
void CopyVectorConsistency(AMP::UnitTest *)
void CopyRawDataBlockVector(AMP::UnitTest *)
void VerifyVectorMax(AMP::UnitTest *)
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
Definition Vector.h:60
Class UnitTest is simple utility for running unit tests. It provides basic routines for tracing succe...
Definition UnitTest.h:49



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page