PlasCom2  1.0
XPACC Multi-physics simluation application
TestGrid.C File Reference
#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"
Include dependency graph for TestGrid.C:

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 &parallelUnitResults, 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 &parallelUnitResults, 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 &parallelUnitResults, pcpp::CommunicatorType &testComm)
 
void TestGrid_CurvilinearVGWavy (ix::test::results &parallelUnitResults, pcpp::CommunicatorType &testComm)
 
void TestGrid_PBS_IntegratedHalo (ix::test::results &parallelUnitResults, pcpp::CommunicatorType &testComm)
 

Macro Definition Documentation

◆ CLSIZE1

#define CLSIZE1   101

◆ CLSIZE2

#define CLSIZE2   101

◆ CLSIZE3

#define CLSIZE3   1001

Function Documentation

◆ GenerateCurvilinearMetric1()

int GenerateCurvilinearMetric1 ( std::vector< size_t > &  ijk,
std::vector< double > &  met,
std::vector< double > &  jac,
double &  jacm1 
)

Definition at line 784 of file TestGrid.C.

References CLSIZE1, CLSIZE2, CLSIZE3, x, and y.

◆ GenerateCurvilinearMetric2()

int GenerateCurvilinearMetric2 ( std::vector< size_t > &  ijk,
std::vector< double > &  xyz,
double &  jacm1 
)

Definition at line 910 of file TestGrid.C.

References CLSIZE1, CLSIZE2, and CLSIZE3.

◆ GenerateRectilinearMetric1()

int GenerateRectilinearMetric1 ( std::vector< size_t > &  ijk,
std::vector< double > &  xyz,
double &  jacm1 
)

Definition at line 417 of file TestGrid.C.

◆ TestGrid_CartesianMetric()

◆ TestGrid_CurvilinearMetric()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestGrid_CurvilinearVGWavy()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestGrid_PBS_IntegratedHalo()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestGrid_RectilinearMetric()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestGrid_SubRegion()

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().

Here is the call graph for this function:
Here is the caller graph for this function: