MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include <iostream>
#include <sstream>
#include <ctime>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include "moab/Core.hpp"
#include "moab/Interface.hpp"
#include "moab/IntxMesh/Intx2MeshOnSphere.hpp"
#include <cmath>
#include "TestUtil.hpp"
#include "moab/ParallelComm.hpp"
#include "moab/ProgOptions.hpp"
#include "MBParallelConventions.h"
#include "moab/ReadUtilIface.hpp"
#include "MBTagConventions.hpp"
#include "moab/IntxMesh/IntxUtils.hpp"
Go to the source code of this file.
Functions | |
std::string | input_mesh_file ("Homme_2pt.h5m") |
std::string | mpas_file ("mpas_p8.h5m") |
void | test_intx_in_parallel_elem_based () |
void | test_intx_mpas () |
int | main (int argc, char **argv) |
ErrorCode | manufacture_lagrange_mesh_on_sphere (Interface *mb, EntityHandle euler_set) |
Variables | |
double | EPS1 = 0.2 |
double | CubeSide = 6. |
double | radius |
std::string input_mesh_file | ( | "Homme_2pt.h5m" | ) |
Referenced by main(), and test_intx_in_parallel_elem_based().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 44 of file par_intx_sph.cpp.
References CubeSide, EPS1, input_mesh_file(), radius, RUN_TEST, test_intx_in_parallel_elem_based(), and test_intx_mpas().
ErrorCode manufacture_lagrange_mesh_on_sphere | ( | Interface * | mb, |
EntityHandle | euler_set | ||
) |
Definition at line 80 of file par_intx_sph.cpp.
References moab::Range::begin(), moab::IntxUtils::cart_to_spherical(), CHECK_ERR, moab::Range::end(), ErrorCode, moab::Core::get_connectivity(), moab::Core::get_coords(), moab::Core::get_entities_by_dimension(), moab::IntxUtils::SphereCoords::lat, moab::CartVect::length(), moab::IntxUtils::SphereCoords::lon, mb, MB_TAG_CREAT, MB_TAG_DENSE, MB_TYPE_DOUBLE, radius, moab::Range::size(), t, T, moab::Core::tag_get_handle(), and moab::Core::tag_iterate().
Referenced by test_intx_in_parallel_elem_based(), and test_intx_mpas().
std::string mpas_file | ( | "mpas_p8.h5m" | ) |
Referenced by test_intx_mpas().
void test_intx_in_parallel_elem_based | ( | ) |
Definition at line 147 of file par_intx_sph.cpp.
References moab::IntxAreaUtils::area_on_sphere(), CHECK, moab::ParallelComm::check_all_shared_handles(), CHECK_ERR, moab::Intx2Mesh::create_departure_mesh_2nd_alg(), moab::Core::create_meshset(), EPS1, ErrorCode, example, moab::Intx2Mesh::FindMaxEdges(), moab::ParallelComm::get_pcomm(), input_mesh_file(), moab::Intx2Mesh::intersect_meshes(), moab::Core::load_file(), manufacture_lagrange_mesh_on_sphere(), mb, MESHSET_SET, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), radius, rank, moab::Intx2Mesh::set_box_error(), moab::Intx2Mesh::set_error_tolerance(), moab::Intx2MeshOnSphere::set_radius_destination_mesh(), moab::Intx2MeshOnSphere::set_radius_source_mesh(), and moab::Core::write_file().
Referenced by main().
void test_intx_mpas | ( | ) |
Definition at line 216 of file par_intx_sph.cpp.
References moab::IntxAreaUtils::area_on_sphere(), moab::ParallelComm::check_all_shared_handles(), CHECK_ERR, moab::Intx2Mesh::create_departure_mesh_2nd_alg(), moab::Core::create_meshset(), moab::IntxUtils::enforce_convexity(), EPS1, ErrorCode, example, moab::Intx2Mesh::FindMaxEdges(), moab::ParallelComm::get_pcomm(), moab::Intx2Mesh::intersect_meshes(), moab::Core::load_file(), manufacture_lagrange_mesh_on_sphere(), mb, MESHSET_SET, mpas_file(), moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), radius, rank, moab::Intx2Mesh::set_box_error(), moab::Intx2Mesh::set_error_tolerance(), moab::Intx2MeshOnSphere::set_radius_destination_mesh(), moab::Intx2MeshOnSphere::set_radius_source_mesh(), and moab::Core::write_file().
Referenced by main().
double CubeSide = 6. |
Definition at line 39 of file par_intx_sph.cpp.
Referenced by main().
double EPS1 = 0.2 |
Definition at line 36 of file par_intx_sph.cpp.
Referenced by main(), test_intx_in_parallel_elem_based(), and test_intx_mpas().
double radius |
Definition at line 40 of file par_intx_sph.cpp.
Referenced by main(), manufacture_lagrange_mesh_on_sphere(), test_intx_in_parallel_elem_based(), and test_intx_mpas().