Advanced Multi-Physics (AMP)
On-Line Documentation
SundialsVectorTests.h
Go to the documentation of this file.
1#ifndef included_AMP_test_SundialsVectorTests
2#define included_AMP_test_SundialsVectorTests
3
4#include "string"
5#include <algorithm>
6
7#include "AMP/utils/UnitTest.h"
8#include "AMP/vectors/sundials/ManagedSundialsVector.h"
9#include "AMP/vectors/testHelpers/VectorTests.h"
10
11
12namespace AMP::LinearAlgebra {
13
14
20{
21public:
22 explicit SundialsVectorTests( std::shared_ptr<const VectorFactory> factory )
23 : d_factory( factory )
24 {
25 }
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
59
60private:
61 std::shared_ptr<const VectorFactory> d_factory;
62
64 {
65 return reinterpret_cast<AMP::LinearAlgebra::ManagedSundialsVector *>( a->content );
66 }
67};
68
69
70} // namespace AMP::LinearAlgebra
71
72
73#endif
A class that can provide a Sundials N_Vector view of an AMP Vector.
A helper class to store/run tests for a vector.
void AbsSundialsVector(AMP::UnitTest *utils)
void MaxNormSundialsVector(AMP::UnitTest *utils)
void ProdSundialsVector(AMP::UnitTest *utils)
void CloneSundialsVector(AMP::UnitTest *utils)
void DotProdSundialsVector(AMP::UnitTest *utils)
void WRMSNormSundialsVector(AMP::UnitTest *utils)
void InvSundialsVector(AMP::UnitTest *utils)
void LinearSumSundialsVector(AMP::UnitTest *utils)
void testSundialsVector(AMP::UnitTest *ut)
void MinQuotientSundialsVector(AMP::UnitTest *utils)
static AMP::LinearAlgebra::ManagedSundialsVector * getVector(N_Vector &a)
void ConstSundialsVector(AMP::UnitTest *utils)
std::shared_ptr< const VectorFactory > d_factory
void DivSundialsVector(AMP::UnitTest *utils)
void L1NormSundialsVector(AMP::UnitTest *utils)
void AddConstSundialsVector(AMP::UnitTest *utils)
SundialsVectorTests(std::shared_ptr< const VectorFactory > factory)
void ScaleSundialsVector(AMP::UnitTest *utils)
void MinSundialsVector(AMP::UnitTest *utils)
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