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 70 of file SundanceProblemTesting.hpp.
| Sundance::LineDomain::LineDomain | ( | const Array< int > & | nx | ) |
Definition at line 124 of file SundanceProblemTesting.cpp.
References init().
| Sundance::LineDomain::LineDomain | ( | double | a, |
| double | b, | ||
| const Array< int > & | nx | ||
| ) |
Definition at line 130 of file SundanceProblemTesting.cpp.
References init().
| double Sundance::LineDomain::a | ( | ) | const [inline] |
Definition at line 95 of file SundanceProblemTesting.hpp.
References a_.
| double Sundance::LineDomain::b | ( | ) | const [inline] |
Definition at line 98 of file SundanceProblemTesting.hpp.
References b_.
| void Sundance::LineDomain::init | ( | ) | [private] |
Definition at line 135 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 89 of file SundanceProblemTesting.hpp.
References interior_.
Referenced by Sundance::LP1DTestBase::interior().
| const CellFilter& Sundance::LineDomain::left | ( | ) | const [inline] |
Definition at line 83 of file SundanceProblemTesting.hpp.
References left_.
| const Mesh& Sundance::LineDomain::mesh | ( | int | i | ) | const [inline] |
Definition at line 92 of file SundanceProblemTesting.hpp.
References mesh_.
Referenced by Sundance::LP1DTestBase::getMesh().
| int Sundance::LineDomain::numMeshes | ( | ) | const [inline] |
Definition at line 80 of file SundanceProblemTesting.hpp.
References mesh_.
Referenced by Sundance::LP1DTestBase::numMeshes().
| int Sundance::LineDomain::nx | ( | int | i | ) | const [inline] |
Definition at line 101 of file SundanceProblemTesting.hpp.
References nx_.
| const CellFilter& Sundance::LineDomain::right | ( | ) | const [inline] |
Definition at line 86 of file SundanceProblemTesting.hpp.
References right_.
double Sundance::LineDomain::a_ [private] |
Definition at line 106 of file SundanceProblemTesting.hpp.
double Sundance::LineDomain::b_ [private] |
Definition at line 107 of file SundanceProblemTesting.hpp.
CellFilter Sundance::LineDomain::interior_ [private] |
Definition at line 109 of file SundanceProblemTesting.hpp.
Referenced by interior().
CellFilter Sundance::LineDomain::left_ [private] |
Definition at line 110 of file SundanceProblemTesting.hpp.
Array<Mesh> Sundance::LineDomain::mesh_ [private] |
Definition at line 112 of file SundanceProblemTesting.hpp.
Referenced by init(), mesh(), and numMeshes().
Array<int> Sundance::LineDomain::nx_ [private] |
Definition at line 108 of file SundanceProblemTesting.hpp.
CellFilter Sundance::LineDomain::right_ [private] |
Definition at line 111 of file SundanceProblemTesting.hpp.