|
Nektar++
|
#include <TestMath.hpp>
Public Member Functions | |
| TestMath () | |
| ~TestMath () | |
| void | Configure () |
| void | SetTestCase () |
| void | abs () |
| void | neg () |
| void | sqrt () |
| void | add () |
| void | sub () |
| void | mul () |
| void | div () |
| void | daxpy (TData alpha) |
| void | daxpby (TData alpha, TData beta) |
| void | daxpbypcz (TData alpha, TData beta, TData gamma) |
| w = alpha x + beta y + gamma z, with z = x. | |
| TData | sum () |
| TData | max () |
| TData | min () |
| TData | inner_product () |
| TData | l1norm () |
| TData | l2norm () |
| TData | linfnorm () |
| bool | Compare (TData tol) |
| Compare this field to another field, with absolute tolerance tol. Two fields must have same storage shape and same components. | |
Protected Member Functions | |
| void | Evaluate (const std::string &name, Field< TData, FieldState::Phys > &field, Array< OneD, double > &x, Array< OneD, double > &y, Array< OneD, double > &z, Array< OneD, double > &fce) |
Fills every component of field with the session function name evaluated for the variable of that component. | |
Protected Attributes | |
| std::string | m_meshName = "" |
| Field< TData, FieldState::Phys > * | m_in1 = nullptr |
| Field< TData, FieldState::Phys > * | m_in2 = nullptr |
| Field< TData, FieldState::Phys > * | m_out = nullptr |
| Field< TData, FieldState::Phys > * | m_expected = nullptr |
| ExpListSharedPtr | m_expList |
| SessionReaderSharedPtr | m_session |
| Math::MathHelper | m_math |
Definition at line 69 of file TestMath.hpp.
|
inline |
Definition at line 77 of file TestMath.hpp.
References TestMath< TData >::m_expected, TestMath< TData >::m_in1, TestMath< TData >::m_in2, and TestMath< TData >::m_out.
Definition at line 161 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestMath< TData >::m_expected, and TestMath< TData >::m_in1.
Definition at line 227 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestMath< TData >::m_expected, TestMath< TData >::m_in1, and TestMath< TData >::m_in2.
|
inline |
Compare this field to another field, with absolute tolerance tol. Two fields must have same storage shape and same components.
Definition at line 558 of file TestMath.hpp.
References el, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), TestMath< TData >::m_expected, TestMath< TData >::m_out, TestMath< TData >::m_session, and rank.
Definition at line 99 of file TestMath.hpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::LibUtilities::SessionReader::CreateInstance(), Nektar::Collections::eNoCollection, graph, TestMath< TData >::m_expected, TestMath< TData >::m_expList, TestMath< TData >::m_in1, TestMath< TData >::m_in2, TestMath< TData >::m_math, TestMath< TData >::m_meshName, TestMath< TData >::m_out, TestMath< TData >::m_session, and Nektar::SpatialDomains::MeshGraphIO::Read().
Definition at line 349 of file TestMath.hpp.
References Nektar::LibUtilities::beta, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestMath< TData >::m_expected, TestMath< TData >::m_in1, and TestMath< TData >::m_in2.
|
inline |
w = alpha x + beta y + gamma z, with z = x.
Definition at line 375 of file TestMath.hpp.
References Nektar::LibUtilities::beta, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestMath< TData >::m_expected, TestMath< TData >::m_in1, and TestMath< TData >::m_in2.
Definition at line 324 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestMath< TData >::m_expected, TestMath< TData >::m_in1, and TestMath< TData >::m_in2.
Definition at line 299 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestMath< TData >::m_expected, TestMath< TData >::m_in1, and TestMath< TData >::m_in2.
|
inlineprotected |
Fills every component of field with the session function name evaluated for the variable of that component.
Definition at line 673 of file TestMath.hpp.
Referenced by TestMath< TData >::SetTestCase().
|
inline |
Definition at line 460 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestMath< TData >::m_in1, and TestMath< TData >::m_in2.
|
inline |
Definition at line 482 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), and TestMath< TData >::m_in1.
|
inline |
Definition at line 505 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), and TestMath< TData >::m_in1.
|
inline |
Definition at line 528 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), and TestMath< TData >::m_in1.
|
inline |
Definition at line 420 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), and TestMath< TData >::m_in1.
|
inline |
Definition at line 440 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), and TestMath< TData >::m_in1.
Definition at line 275 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestMath< TData >::m_expected, TestMath< TData >::m_in1, and TestMath< TData >::m_in2.
Definition at line 182 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestMath< TData >::m_expected, and TestMath< TData >::m_in1.
Definition at line 147 of file TestMath.hpp.
References TestMath< TData >::Evaluate(), TestMath< TData >::m_expList, TestMath< TData >::m_in1, and TestMath< TData >::m_in2.
Definition at line 203 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestMath< TData >::m_expected, and TestMath< TData >::m_in1.
Definition at line 251 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestMath< TData >::m_expected, TestMath< TData >::m_in1, and TestMath< TData >::m_in2.
|
inline |
Definition at line 400 of file TestMath.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), and TestMath< TData >::m_in1.
|
protected |
Definition at line 664 of file TestMath.hpp.
Referenced by TestMath< TData >::abs(), TestMath< TData >::add(), TestMath< TData >::Compare(), TestMath< TData >::Configure(), TestMath< TData >::daxpby(), TestMath< TData >::daxpbypcz(), TestMath< TData >::daxpy(), TestMath< TData >::div(), TestMath< TData >::mul(), TestMath< TData >::neg(), TestMath< TData >::sqrt(), TestMath< TData >::sub(), and TestMath< TData >::~TestMath().
|
protected |
Definition at line 665 of file TestMath.hpp.
Referenced by TestMath< TData >::Configure(), and TestMath< TData >::SetTestCase().
|
protected |
Definition at line 661 of file TestMath.hpp.
Referenced by TestMath< TData >::abs(), TestMath< TData >::add(), TestMath< TData >::Configure(), TestMath< TData >::daxpby(), TestMath< TData >::daxpbypcz(), TestMath< TData >::daxpy(), TestMath< TData >::div(), TestMath< TData >::inner_product(), TestMath< TData >::l1norm(), TestMath< TData >::l2norm(), TestMath< TData >::linfnorm(), TestMath< TData >::max(), TestMath< TData >::min(), TestMath< TData >::mul(), TestMath< TData >::neg(), TestMath< TData >::SetTestCase(), TestMath< TData >::sqrt(), TestMath< TData >::sub(), TestMath< TData >::sum(), and TestMath< TData >::~TestMath().
|
protected |
Definition at line 662 of file TestMath.hpp.
Referenced by TestMath< TData >::add(), TestMath< TData >::Configure(), TestMath< TData >::daxpby(), TestMath< TData >::daxpbypcz(), TestMath< TData >::daxpy(), TestMath< TData >::div(), TestMath< TData >::inner_product(), TestMath< TData >::mul(), TestMath< TData >::SetTestCase(), TestMath< TData >::sub(), and TestMath< TData >::~TestMath().
|
protected |
Definition at line 667 of file TestMath.hpp.
Referenced by TestMath< TData >::Configure().
|
protected |
Definition at line 660 of file TestMath.hpp.
Referenced by TestMath< TData >::Configure(), and TestMath< TData >::TestMath().
|
protected |
Definition at line 663 of file TestMath.hpp.
Referenced by TestMath< TData >::Compare(), TestMath< TData >::Configure(), and TestMath< TData >::~TestMath().
|
protected |
Definition at line 666 of file TestMath.hpp.
Referenced by TestMath< TData >::Compare(), and TestMath< TData >::Configure().