Sample functions for testing remapping operations. More...
Functions | |
| moab::ErrorCode | handleOverlapMemory (ToolContext &ctx, moab::TempestRemapper &remapper, Mesh *tempest_mesh) |
| moab::ErrorCode | handleOverlapMOAB (ToolContext &ctx, moab::TempestRemapper &remapper) |
| moab::ErrorCode | handleOverlapFiles (ToolContext &ctx, Mesh *tempest_mesh) |
| moab::ErrorCode | convertAndWriteMOABMesh (ToolContext &ctx, moab::TempestRemapper &remapper, Mesh *tempest_mesh) |
| Convert a generated TempestRemap mesh to MOAB format and write as h5m file. More... | |
| moab::ErrorCode | handleICOMesh (ToolContext &ctx, moab::TempestRemapper &remapper, Mesh *tempest_mesh) |
| moab::ErrorCode | handleRLLMesh (ToolContext &ctx, moab::TempestRemapper &remapper, Mesh *tempest_mesh) |
| moab::ErrorCode | handleCSMesh (ToolContext &ctx, moab::TempestRemapper &remapper, Mesh *tempest_mesh) |
Variables | |
| constexpr double | VORTEX_LON0 = 0.0 |
| constexpr double | VORTEX_LAT0 = 0.6 |
| constexpr double | VORTEX_R0 = 3.0 |
| constexpr double | VORTEX_D = 5.0 |
| constexpr double | VORTEX_T = 6.0 |
Sample functions for testing remapping operations.
These functions provide analytical test cases with different spatial patterns for verifying remapping accuracy and performance.
| moab::ErrorCode anonymous_namespace{mbtempest.cpp}::convertAndWriteMOABMesh | ( | ToolContext & | ctx, |
| moab::TempestRemapper & | remapper, | ||
| Mesh * | tempest_mesh | ||
| ) |
Convert a generated TempestRemap mesh to MOAB format and write as h5m file.
When the output filename has a .h5m extension, the mesh is converted from TempestRemap format to MOAB format in memory and written as a native MOAB HDF5 file. This allows the generated meshes to be loaded by mbtempest type 5 (OVERLAP_MOAB) workflows. The TempestRemap format file is still written (with .g extension) for compatibility.
Definition at line 1775 of file mbtempest.cpp.
References moab::TempestRemapper::ConvertTempestMesh(), moab::dot(), moab::IntxUtils::fix_degenerate_quads(), moab::TempestRemapper::GetMeshSet(), MB_CHK_SET_ERR, MB_SUCCESS, ToolContext::mbcore, ToolContext::outFilename, ToolContext::outputFormatter, moab::DebugOutput::printf(), ToolContext::proc_id, moab::TempestRemapper::SetMesh(), moab::Remapper::SourceMesh, ToolContext::timer_pop(), ToolContext::timer_push(), and moab::Core::write_file().
Referenced by handleCSMesh(), handleICOMesh(), and handleRLLMesh().
| moab::ErrorCode anonymous_namespace{mbtempest.cpp}::handleCSMesh | ( | ToolContext & | ctx, |
| moab::TempestRemapper & | remapper, | ||
| Mesh * | tempest_mesh | ||
| ) |
Definition at line 1864 of file mbtempest.cpp.
References ToolContext::blockSize, convertAndWriteMOABMesh(), moab::dot(), MB_CHK_SET_ERR, MB_SUCCESS, ToolContext::meshes, ToolContext::outFilename, ToolContext::timer_pop(), ToolContext::timer_push(), and TR_CHK_SET_ERR.
Referenced by CreateTempestMesh().
| moab::ErrorCode anonymous_namespace{mbtempest.cpp}::handleICOMesh | ( | ToolContext & | ctx, |
| moab::TempestRemapper & | remapper, | ||
| Mesh * | tempest_mesh | ||
| ) |
Definition at line 1811 of file mbtempest.cpp.
References ToolContext::blockSize, ToolContext::computeDual, convertAndWriteMOABMesh(), moab::dot(), MB_CHK_SET_ERR, MB_SUCCESS, ToolContext::meshes, ToolContext::outFilename, ToolContext::timer_pop(), ToolContext::timer_push(), and TR_CHK_SET_ERR.
Referenced by CreateTempestMesh().
| moab::ErrorCode anonymous_namespace{mbtempest.cpp}::handleOverlapFiles | ( | ToolContext & | ctx, |
| Mesh * | tempest_mesh | ||
| ) |
Definition at line 1754 of file mbtempest.cpp.
References ToolContext::inFilenames, MB_SUCCESS, ToolContext::meshes, ToolContext::outFilename, ToolContext::timer_pop(), ToolContext::timer_push(), and TR_CHK_SET_ERR.
Referenced by CreateTempestMesh().
| moab::ErrorCode anonymous_namespace{mbtempest.cpp}::handleOverlapMemory | ( | ToolContext & | ctx, |
| moab::TempestRemapper & | remapper, | ||
| Mesh * | tempest_mesh | ||
| ) |
Definition at line 1599 of file mbtempest.cpp.
References moab::TempestRemapper::GetMesh(), moab::TempestRemapper::GetMeshSet(), ToolContext::inFilenames, moab::TempestRemapper::LoadMesh(), MB_CHK_SET_ERR, MB_SUCCESS, ToolContext::meshes, ToolContext::meshsets, moab::TempestRemapper::SetMesh(), and TR_CHK_SET_ERR.
Referenced by CreateTempestMesh().
| moab::ErrorCode anonymous_namespace{mbtempest.cpp}::handleOverlapMOAB | ( | ToolContext & | ctx, |
| moab::TempestRemapper & | remapper | ||
| ) |
Definition at line 1630 of file mbtempest.cpp.
References ToolContext::computeWeights, moab::TempestRemapper::ConvertMeshToTempest(), ToolContext::disc_methods, moab::Core::get_entities_by_dimension(), ToolContext::get_file_read_options(), moab::TempestRemapper::GetMesh(), moab::TempestRemapper::GetMeshSet(), moab::Core::globalId_tag(), ToolContext::inFilenames, moab::Remapper::LoadNativeMesh(), MB_CHK_SET_ERR, MB_SUCCESS, ToolContext::mbcore, ToolContext::meshes, ToolContext::meshsets, ToolContext::n_procs, ToolContext::proc_id, moab::TempestRemapper::SetMeshType(), moab::Range::size(), and moab::Core::tag_get_handle().
Referenced by CreateTempestMesh().
| moab::ErrorCode anonymous_namespace{mbtempest.cpp}::handleRLLMesh | ( | ToolContext & | ctx, |
| moab::TempestRemapper & | remapper, | ||
| Mesh * | tempest_mesh | ||
| ) |
Definition at line 1832 of file mbtempest.cpp.
References ToolContext::blockSize, convertAndWriteMOABMesh(), moab::dot(), MB_CHK_SET_ERR, MB_SUCCESS, ToolContext::meshes, ToolContext::outFilename, ToolContext::timer_pop(), ToolContext::timer_push(), and TR_CHK_SET_ERR.
Referenced by CreateTempestMesh().
|
constexpr |
Definition at line 1959 of file mbtempest.cpp.
Referenced by sample_stationary_vortex().
|
constexpr |
Definition at line 1957 of file mbtempest.cpp.
Referenced by sample_stationary_vortex().
|
constexpr |
Definition at line 1956 of file mbtempest.cpp.
Referenced by sample_stationary_vortex().
|
constexpr |
Definition at line 1958 of file mbtempest.cpp.
Referenced by sample_stationary_vortex().
|
constexpr |
Definition at line 1960 of file mbtempest.cpp.
Referenced by sample_stationary_vortex().