|
Nektar++
|
#include <TestHelmSolve.hpp>
Public Member Functions | |
| TestHelmSolve ()=default | |
| void | SetTestCase () |
| void | RunTestCase (const std::string &method) |
| void | RepeatSolve () |
| Solve again with the current output as the initial guess. | |
| void | SetGlobalSysSolnInfo (const std::string &property, const std::string &value) |
| Set a GLOBALSYSSOLNINFO property for the first variable only, which the linear solver applies to all variables solved together. | |
| unsigned int | GetNiterations () |
| void | ExpectedSolution () |
Public Member Functions inherited from TestLinearSolver< TData > | |
| TestLinearSolver ()=default | |
| virtual | ~TestLinearSolver ()=default |
| void | Configure () |
| Read the session, build the expansion list and allocate the fields the test cases work on. | |
| bool | Compare (TData tol) |
| Compare the computed field to the expected one, with absolute tolerance tol. The two must have the same blocks and components; their interleave widths may differ. | |
Protected Attributes | |
| unsigned int | m_coordDim |
| TData | m_lambda |
| std::vector< TData > | m_diffCoeff |
| std::shared_ptr< HelmSolveOp< TData > > | m_op |
| std::shared_ptr< LinearSolverOp< TData > > | m_linsolve |
Protected Attributes inherited from TestLinearSolver< TData > | |
| std::string | m_meshName = "" |
| SessionReaderSharedPtr | m_session |
| ExpListSharedPtr | m_expList |
| Field< TData, FieldState::Phys > | m_in |
| Field< TData, FieldState::Coeff > | m_out |
| Field< TData, FieldState::Coeff > | m_expected |
Additional Inherited Members | |
Protected Member Functions inherited from TestLinearSolver< TData > | |
| void | SetSession () |
| void | SetExpList () |
| void | SetFixture () |
Definition at line 46 of file TestHelmSolve.hpp.
|
default |
|
inline |
Definition at line 225 of file TestHelmSolve.hpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::StdRegions::eFactorCoeffD00, Nektar::StdRegions::eFactorCoeffD01, Nektar::StdRegions::eFactorCoeffD02, Nektar::StdRegions::eFactorCoeffD11, Nektar::StdRegions::eFactorCoeffD12, Nektar::StdRegions::eFactorCoeffD22, Nektar::StdRegions::eFactorLambda, Nektar::Collections::eNoCollection, Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), graph, TestHelmSolve< TData >::m_coordDim, TestHelmSolve< TData >::m_diffCoeff, TestLinearSolver< TData >::m_expected, TestLinearSolver< TData >::m_expList, TestLinearSolver< TData >::m_in, TestHelmSolve< TData >::m_lambda, TestLinearSolver< TData >::m_session, Nektar::SpatialDomains::MeshGraphIO::Read(), and Nektar::LibUtilities::Field< TData, TState >::ToArray().
Referenced by TestHelmSolve< TData >::SetTestCase().
|
inline |
Definition at line 220 of file TestHelmSolve.hpp.
References TestHelmSolve< TData >::m_linsolve.
|
inline |
Solve again with the current output as the initial guess.
Definition at line 204 of file TestHelmSolve.hpp.
References TestLinearSolver< TData >::m_in, TestHelmSolve< TData >::m_op, and TestLinearSolver< TData >::m_out.
|
inline |
Definition at line 172 of file TestHelmSolve.hpp.
References TestHelmSolve< TData >::m_diffCoeff, TestLinearSolver< TData >::m_expList, TestLinearSolver< TData >::m_in, TestHelmSolve< TData >::m_lambda, TestHelmSolve< TData >::m_linsolve, TestHelmSolve< TData >::m_op, TestLinearSolver< TData >::m_out, TestLinearSolver< TData >::m_session, Nektar::LibUtilities::Field< TData, TState >::ReshapeStorage(), and Nektar::LibUtilities::Field< TData, TState >::SetInterleaveWidth().
|
inline |
Set a GLOBALSYSSOLNINFO property for the first variable only, which the linear solver applies to all variables solved together.
Definition at line 213 of file TestHelmSolve.hpp.
References TestLinearSolver< TData >::m_session.
|
inline |
Definition at line 51 of file TestHelmSolve.hpp.
References el, TestHelmSolve< TData >::ExpectedSolution(), Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), TestHelmSolve< TData >::m_coordDim, TestHelmSolve< TData >::m_diffCoeff, TestLinearSolver< TData >::m_expList, TestLinearSolver< TData >::m_in, TestHelmSolve< TData >::m_lambda, TestLinearSolver< TData >::m_out, and TestLinearSolver< TData >::m_session.
|
protected |
Definition at line 276 of file TestHelmSolve.hpp.
Referenced by TestHelmSolve< TData >::ExpectedSolution(), and TestHelmSolve< TData >::SetTestCase().
|
protected |
Definition at line 278 of file TestHelmSolve.hpp.
Referenced by TestHelmSolve< TData >::ExpectedSolution(), TestHelmSolve< TData >::RunTestCase(), and TestHelmSolve< TData >::SetTestCase().
|
protected |
Definition at line 277 of file TestHelmSolve.hpp.
Referenced by TestHelmSolve< TData >::ExpectedSolution(), TestHelmSolve< TData >::RunTestCase(), and TestHelmSolve< TData >::SetTestCase().
|
protected |
Definition at line 280 of file TestHelmSolve.hpp.
Referenced by TestHelmSolve< TData >::GetNiterations(), and TestHelmSolve< TData >::RunTestCase().
|
protected |
Definition at line 279 of file TestHelmSolve.hpp.
Referenced by TestHelmSolve< TData >::RepeatSolve(), and TestHelmSolve< TData >::RunTestCase().