Public Member Functions | |
| LineDomain (const Array< int > &nx) | |
| LineDomain (double a, double b, const Array< int > &nx) | |
| int | numMeshes () const |
| const CellFilter & | left () const |
| const CellFilter & | right () const |
| const CellFilter & | interior () const |
| const Mesh & | mesh (int i) const |
| double | a () const |
| double | b () const |
| int | nx (int i) const |
Private Member Functions | |
| void | init () |
Private Attributes | |
| double | a_ |
| double | b_ |
| Array< int > | nx_ |
| CellFilter | interior_ |
| CellFilter | left_ |
| CellFilter | right_ |
| Array< Mesh > | mesh_ |
This class bundles together a sequence of uniform meshes of the 1D interval [a,b] with cell filters defining the interior and boundaries. It is intended for quick and reliable setup of 1D test problems.
Definition at line 81 of file SundanceProblemTesting.hpp.
| Sundance::LineDomain::LineDomain | ( | const Array< int > & | nx | ) |
Definition at line 138 of file SundanceProblemTesting.cpp.
References init().
| Sundance::LineDomain::LineDomain | ( | double | a, |
| double | b, | ||
| const Array< int > & | nx | ||
| ) |
Definition at line 144 of file SundanceProblemTesting.cpp.
References init().
| double Sundance::LineDomain::a | ( | ) | const [inline] |
Definition at line 106 of file SundanceProblemTesting.hpp.
References a_.
| double Sundance::LineDomain::b | ( | ) | const [inline] |
Definition at line 109 of file SundanceProblemTesting.hpp.
References b_.
| void Sundance::LineDomain::init | ( | ) | [private] |
Definition at line 149 of file SundanceProblemTesting.cpp.
References a_, b_, Sundance::MeshSource::getMesh(), Playa::MPIComm::getNProc(), left_, mesh_, nx_, right_, Sundance::CellFilter::subset(), and Playa::MPIComm::world().
Referenced by LineDomain().
| const CellFilter& Sundance::LineDomain::interior | ( | ) | const [inline] |
Definition at line 100 of file SundanceProblemTesting.hpp.
References interior_.
Referenced by Sundance::LP1DTestBase::interior().
| const CellFilter& Sundance::LineDomain::left | ( | ) | const [inline] |
Definition at line 94 of file SundanceProblemTesting.hpp.
References left_.
| const Mesh& Sundance::LineDomain::mesh | ( | int | i | ) | const [inline] |
Definition at line 103 of file SundanceProblemTesting.hpp.
References mesh_.
Referenced by Sundance::LP1DTestBase::getMesh().
| int Sundance::LineDomain::numMeshes | ( | ) | const [inline] |
Definition at line 91 of file SundanceProblemTesting.hpp.
References mesh_.
Referenced by Sundance::LP1DTestBase::numMeshes().
| int Sundance::LineDomain::nx | ( | int | i | ) | const [inline] |
Definition at line 112 of file SundanceProblemTesting.hpp.
References nx_.
| const CellFilter& Sundance::LineDomain::right | ( | ) | const [inline] |
Definition at line 97 of file SundanceProblemTesting.hpp.
References right_.
double Sundance::LineDomain::a_ [private] |
Definition at line 117 of file SundanceProblemTesting.hpp.
double Sundance::LineDomain::b_ [private] |
Definition at line 118 of file SundanceProblemTesting.hpp.
CellFilter Sundance::LineDomain::interior_ [private] |
Definition at line 120 of file SundanceProblemTesting.hpp.
Referenced by interior().
CellFilter Sundance::LineDomain::left_ [private] |
Definition at line 121 of file SundanceProblemTesting.hpp.
Array<Mesh> Sundance::LineDomain::mesh_ [private] |
Definition at line 123 of file SundanceProblemTesting.hpp.
Referenced by init(), mesh(), and numMeshes().
Array<int> Sundance::LineDomain::nx_ [private] |
Definition at line 119 of file SundanceProblemTesting.hpp.
CellFilter Sundance::LineDomain::right_ [private] |
Definition at line 122 of file SundanceProblemTesting.hpp.