#include "Testing.H"
#include "Simulation.H"
#include "OperatorKernels.H"
#include "Stencil.H"
#include "PCPPCommUtil.H"
#include "PCPPReport.H"
#include "PCPPIntervalUtils.H"
#include "PCPPHDF5.H"
#include "Report.H"
#include "PC2IO.H"
#include "GridGen.H"
Go to the source code of this file.
Macros | |
#define | CLSIZE1 101 |
#define | CLSIZE2 101 |
#define | CLSIZE3 1001 |
Functions | |
void | TestGrid_SubRegion (ix::test::results &serialUnitResults) |
void | TestGrid_CartesianMetric (ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm) |
template<int numDim> | |
int | GenerateRectilinearMetric1 (std::vector< size_t > &ijk, std::vector< double > &xyz, double &jacm1) |
void | TestGrid_RectilinearMetric (ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm) |
template<int numDim> | |
int | GenerateCurvilinearMetric1 (std::vector< size_t > &ijk, std::vector< double > &met, std::vector< double > &jac, double &jacm1) |
template<int numDim> | |
int | GenerateCurvilinearMetric2 (std::vector< size_t > &ijk, std::vector< double > &xyz, double &jacm1) |
void | TestGrid_CurvilinearMetric (ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm) |
void | TestGrid_CurvilinearVGWavy (ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm) |
void | TestGrid_PBS_IntegratedHalo (ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm) |
#define CLSIZE1 101 |
Definition at line 778 of file TestGrid.C.
Referenced by GenerateCurvilinearMetric1(), GenerateCurvilinearMetric2(), and TestGrid_CurvilinearMetric().
#define CLSIZE2 101 |
Definition at line 779 of file TestGrid.C.
Referenced by GenerateCurvilinearMetric1(), GenerateCurvilinearMetric2(), and TestGrid_CurvilinearMetric().
#define CLSIZE3 1001 |
Definition at line 780 of file TestGrid.C.
Referenced by GenerateCurvilinearMetric1(), GenerateCurvilinearMetric2(), and TestGrid_CurvilinearMetric().
int GenerateCurvilinearMetric1 | ( | std::vector< size_t > & | ijk, |
std::vector< double > & | met, | ||
std::vector< double > & | jac, | ||
double & | jacm1 | ||
) |
int GenerateCurvilinearMetric2 | ( | std::vector< size_t > & | ijk, |
std::vector< double > & | xyz, | ||
double & | jacm1 | ||
) |
Definition at line 910 of file TestGrid.C.
int GenerateRectilinearMetric1 | ( | std::vector< size_t > & | ijk, |
std::vector< double > & | xyz, | ||
double & | jacm1 | ||
) |
Definition at line 417 of file TestGrid.C.
void TestGrid_CartesianMetric | ( | ix::test::results & | parallelUnitResults, |
pcpp::CommunicatorType & | testComm | ||
) |
Definition at line 229 of file TestGrid.C.
References pcpp::report::CartesianSetup(), pcpp::comm::CheckResult(), parallel_blockstructured::ComputeMetrics(), apptools::DumpContents(), GlobalObj< StackType, ErrorType, ProfilerType >::ErrOut(), parallel_blockstructured::GenerateCoordinates(), simulation::report::Grid(), gridJacobian, gridMetric, gridSizes, ParallelGlobalObj< CommunicatorType, StackType, ErrorType, ProfilerType >::Init(), paralleltopologyinfo::isPeriodic, parallel_blockstructured::Jacobian(), parallel_blockstructured::Metric(), paralleltopologyinfo::numDimensions, parallel_blockstructured::ParallelSetup(), GlobalObj< StackType, ErrorType, ProfilerType >::Profiling(), ix::util::RenewStream(), parallel_blockstructured::SetGridSizes(), parallel_blockstructured::SetPhysicalExtent(), GlobalObj< StackType, ErrorType, ProfilerType >::SetVerbLevel(), GlobalObj< StackType, ErrorType, ProfilerType >::StdOut(), and results::UpdateResult().
Referenced by ParallelTestingObject< CommType, ResultsType >::Test__Grid__CartesianMetric().
void TestGrid_CurvilinearMetric | ( | ix::test::results & | parallelUnitResults, |
pcpp::CommunicatorType & | testComm | ||
) |
Definition at line 949 of file TestGrid.C.
References dataset::AddField(), CommunicatorObject::Barrier(), bufferInterval, parallel_blockstructured::BufferSize(), bufferSizes, parallel_blockstructured::BufferSizes(), pcpp::report::CartesianSetup(), pcpp::comm::CheckResult(), CLSIZE1, CLSIZE2, CLSIZE3, parallel_blockstructured::ComputeJacobianMatrix(), parallel_blockstructured::ComputeMetricIdentities(), parallel_blockstructured::ComputeMetrics(), parallel_blockstructured::CoordinateData(), dataset::Create(), plascom2::operators::sbp::CreateStencilConnectivity(), simulation::grid::CURVILINEAR, apptools::DumpContents(), GlobalObj< StackType, ErrorType, ProfilerType >::ErrOut(), parallel_blockstructured::ExchangeCoordinates(), ix::sys::FILEEXISTS(), parallel_blockstructured::GenerateCoordinates(), dataset::GetFieldBuffer(), simulation::report::Grid(), gridJacobian, gridMetric, gridSizes, parallel_blockstructured::GridSizes(), ParallelGlobalObj< CommunicatorType, StackType, ErrorType, ProfilerType >::Init(), plascom2::operators::sbp::Initialize(), paralleltopologyinfo::isPeriodic, parallel_blockstructured::Jacobian(), parallel_blockstructured::JacobianMatrix(), parallel_blockstructured::Metric(), paralleltopologyinfo::numDimensions, numPointsBuffer, stencilset::numStencils, opInterval, plascom2::io::hdf5::OutputSingle(), parallel_blockstructured::ParallelSetup(), parallel_blockstructured::PartitionBufferInterval(), parallel_blockstructured::PartitionInterval(), GlobalObj< StackType, ErrorType, ProfilerType >::Profiling(), ix::sys::Remove(), ix::util::RenewStream(), dataset::SetFieldBuffer(), parallel_blockstructured::SetGridSizes(), parallel_blockstructured::SetType(), parallel_blockstructured::SetupDifferentialOperator(), GlobalObj< StackType, ErrorType, ProfilerType >::SetVerbLevel(), GlobalObj< StackType, ErrorType, ProfilerType >::StdOut(), stencilset::stencilStarts, and results::UpdateResult().
Referenced by ParallelTestingObject< CommType, ResultsType >::Test__Grid__CurvilinearMetric().
void TestGrid_CurvilinearVGWavy | ( | ix::test::results & | parallelUnitResults, |
pcpp::CommunicatorType & | testComm | ||
) |
Definition at line 1470 of file TestGrid.C.
References dataset::AddField(), CommunicatorObject::Barrier(), bufferInterval, parallel_blockstructured::BufferSize(), bufferSizes, parallel_blockstructured::BufferSizes(), pcpp::report::CartesianSetup(), pcpp::comm::CheckResult(), parallel_blockstructured::ComputeJacobianMatrix(), parallel_blockstructured::ComputeMetricIdentities(), parallel_blockstructured::ComputeMetrics(), parallel_blockstructured::CoordinateData(), dataset::Create(), plascom2::operators::sbp::CreateStencilConnectivity(), simulation::grid::CURVILINEAR, apptools::DumpContents(), GlobalObj< StackType, ErrorType, ProfilerType >::ErrOut(), parallel_blockstructured::ExchangeCoordinates(), ix::sys::FILEEXISTS(), parallel_blockstructured::GenerateCoordinates(), dataset::GetFieldBuffer(), simulation::report::Grid(), gridSizes, parallel_blockstructured::GridSizes(), ParallelGlobalObj< CommunicatorType, StackType, ErrorType, ProfilerType >::Init(), plascom2::operators::sbp::Initialize(), paralleltopologyinfo::isPeriodic, paralleltopologyinfo::numDimensions, numPointsBuffer, stencilset::numStencils, opInterval, plascom2::io::hdf5::OutputSingle(), parallel_blockstructured::ParallelSetup(), parallel_blockstructured::PartitionBufferInterval(), parallel_blockstructured::PartitionInterval(), GlobalObj< StackType, ErrorType, ProfilerType >::Profiling(), ix::sys::Remove(), ix::util::RenewStream(), dataset::SetFieldBuffer(), parallel_blockstructured::SetGridSizes(), parallel_blockstructured::SetPeriodicLengths(), parallel_blockstructured::SetType(), parallel_blockstructured::SetupDifferentialOperator(), GlobalObj< StackType, ErrorType, ProfilerType >::SetVerbLevel(), GlobalObj< StackType, ErrorType, ProfilerType >::StdOut(), stencilset::stencilStarts, and results::UpdateResult().
Referenced by ParallelTestingObject< CommType, ResultsType >::Test__Grid__CurvilinearVGWavy().
void TestGrid_PBS_IntegratedHalo | ( | ix::test::results & | parallelUnitResults, |
pcpp::CommunicatorType & | testComm | ||
) |
Definition at line 1800 of file TestGrid.C.
References CommunicatorObject::Barrier(), bufferInterval, parallel_blockstructured::BufferSize(), bufferSizes, parallel_blockstructured::BufferSizes(), pcpp::report::CartesianSetup(), pcpp::comm::CheckResult(), halo::CommunicationBuffers(), parallel_base::Communicator(), halo::CreateLocalHaloExtents(), halo::CreateMessageBuffers(), halo::CreateRemoteHaloExtents(), halo::CreateSimpleRecvIndices(), halo::CreateSimpleSendIndices(), apptools::DumpContents(), GlobalObj< StackType, ErrorType, ProfilerType >::ErrOut(), parallel_blockstructured::Finalize(), ParallelGlobalObj< CommunicatorType, StackType, ErrorType, ProfilerType >::Finalize(), sizeextent::GetFlatIndices(), ParallelGlobalObj< CommunicatorType, StackType, ErrorType, ProfilerType >::Init(), plascom2::operators::sbp::Initialize(), sizeextent::InitSimple(), paralleltopologyinfo::isPeriodic, halo::LocalHaloBufferExtents(), numComponents, halo::messagebuffers::numComponents, paralleltopologyinfo::numDimensions, numPointsBuffer, halo::messagebuffers::numPointsRecv, halo::messagebuffers::numPointsSend, stencilset::numStencils, halo::PackMessageBuffers(), parallel_blockstructured::PartitionBufferInterval(), pcpp::util::PartitionCartesianInterval(), parallel_blockstructured::PartitionInterval(), sizeextent::PrettyPrint(), GlobalObj< StackType, ErrorType, ProfilerType >::Profiling(), CommunicatorObject::Rank(), halo::ReceiveMessage(), halo::messagebuffers::recvBuffers, halo::RecvIndices(), halo::RemoteHaloBufferExtents(), ix::util::RenewStream(), halo::messagebuffers::sendBuffers, halo::SendIndices(), halo::SendMessage(), parallel_blockstructured::SetDimensionExtensions(), parallel_blockstructured::SetGridSizes(), halo::SetLocalBufferSizes(), halo::SetLocalHaloExtents(), halo::SetLocalPartitionExtent(), halo::SetNeighbors(), halo::SetRemoteHaloExtents(), pcpp::comm::SetupCartesianTopology(), GlobalObj< StackType, ErrorType, ProfilerType >::SetVerbLevel(), CommunicatorObject::Size(), GlobalObj< StackType, ErrorType, ProfilerType >::StdOut(), halo::UnPackMessageBuffers(), and results::UpdateResult().
Referenced by ParallelTestingObject< CommType, ResultsType >::Test__Grid__PBSIH().
void TestGrid_RectilinearMetric | ( | ix::test::results & | parallelUnitResults, |
pcpp::CommunicatorType & | testComm | ||
) |
Definition at line 435 of file TestGrid.C.
References parallel_blockstructured::BufferSize(), bufferSizes, parallel_blockstructured::BufferSizes(), pcpp::report::CartesianSetup(), pcpp::comm::CheckResult(), base::Close(), pcpp::io::xdmf::CloseFileTag(), pcpp::io::xdmf::CloseGridTag(), parallel_blockstructured::ComputeMetrics(), plascom2::operators::sbp::CreateStencilConnectivity(), apptools::DumpContents(), GlobalObj< StackType, ErrorType, ProfilerType >::ErrOut(), parallel_blockstructured::ExchangeCoordinates(), ix::sys::FILEEXISTS(), parallel_blockstructured::GenerateCoordinates(), simulation::report::Grid(), gridJacobian, gridMetric, gridSizes, parallel_blockstructured::GridSizes(), ParallelGlobalObj< CommunicatorType, StackType, ErrorType, ProfilerType >::Init(), plascom2::operators::sbp::Initialize(), paralleltopologyinfo::isPeriodic, parallel_blockstructured::Jacobian(), parallel_blockstructured::Metric(), paralleltopologyinfo::numDimensions, numPointsBuffer, stencilset::numStencils, pcpp::io::xdmf::OpenFileTag(), pcpp::io::xdmf::OpenGridTag(), opInterval, parallel_blockstructured::ParallelSetup(), parallel_blockstructured::PartitionBufferInterval(), parallel_blockstructured::PartitionInterval(), GlobalObj< StackType, ErrorType, ProfilerType >::Profiling(), simulation::grid::RECTILINEAR, ix::sys::Remove(), ix::util::RenewStream(), parallel_blockstructured::SetGridSizes(), parallel_blockstructured::SetType(), parallel_blockstructured::SetupDifferentialOperator(), GlobalObj< StackType, ErrorType, ProfilerType >::SetVerbLevel(), GlobalObj< StackType, ErrorType, ProfilerType >::StdOut(), stencilset::stencilStarts, results::UpdateResult(), pcpp::io::hdf5::WriteGrid(), and pcpp::io::xdmf::WriteGridSection().
Referenced by ParallelTestingObject< CommType, ResultsType >::Test__Grid__RectilinearMetric().
void TestGrid_SubRegion | ( | ix::test::results & | serialUnitResults | ) |
Definition at line 18 of file TestGrid.C.
References gridSizes, sizeextent::InitSimple(), simulation::grid::InitSubRegionFromString(), subregion::normalDirection, subregion::regionInterval, subregion::regionName, and results::UpdateResult().
Referenced by TestingObject< ResultsType >::Test__Grid__SubRegion().