#include <iostream>
#include <cmath>
#include "moab/Core.hpp"
#include "moab/Interface.hpp"
#include "moab/IntxMesh/Intx2MeshOnSphere.hpp"
#include "moab/ParallelComm.hpp"
#include "moab/ProgOptions.hpp"
#include "MBParallelConventions.h"
#include "moab/ReadUtilIface.hpp"
#include "MBTagConventions.hpp"
#include "moab/IntxMesh/IntxUtils.hpp"
#include "IntxUtilsCSLAM.hpp"
#include "TestUtil.hpp"
Go to the source code of this file.
Variables | |
double | radius = 1. |
moab::ErrorCode add_field_value | ( | moab::Interface * | mb, |
moab::EntityHandle | euler_set, | ||
int | rank, | ||
moab::Tag & | tagTracer, | ||
moab::Tag & | tagElem, | ||
moab::Tag & | tagArea, | ||
int | field_type | ||
) |
Definition at line 637 of file linear_remap.cpp.
References moab::Range::begin(), moab::IntxUtils::cart_to_spherical(), moab::Range::end(), ErrorCode, field_type, moab::Core::get_connectivity(), moab::Core::get_coords(), moab::Core::get_entities_by_dimension(), moab::IntxUtils::SphereCoords::lat, moab::IntxUtils::SphereCoords::lon, mb, MB_SUCCESS, IntxUtilsCSLAM::quasi_smooth_field(), moab::IntxUtils::SphereCoords::R, moab::Range::size(), IntxUtilsCSLAM::slotted_cylinder_field(), IntxUtilsCSLAM::smooth_field(), moab::IntxUtils::spherical_to_cart(), moab::Core::tag_get_data(), and moab::Core::tag_iterate().
Referenced by main().
void decide_gnomonic_plane_test | ( | const CartVect & | pos, |
int & | plane | ||
) |
void get_barycenters | ( | moab::Interface * | mb, |
moab::EntityHandle | set, | ||
moab::Tag & | planeTag, | ||
moab::Tag & | barycenterTag | ||
) |
Definition at line 172 of file linear_remap.cpp.
References moab::Range::begin(), moab::Range::end(), ErrorCode, moab::Core::get_connectivity(), moab::Core::get_coords(), moab::Core::get_entities_by_dimension(), moab::IntxUtils::gnomonic_projection(), mb, MB_SUCCESS, moab::R, moab::IntxUtils::reverse_gnomonic_projection(), moab::Core::tag_get_data(), and moab::Core::tag_set_data().
Referenced by main().
void get_gnomonic_plane | ( | moab::Interface * | mb, |
moab::EntityHandle | set, | ||
moab::Tag & | planeTag | ||
) |
Definition at line 125 of file linear_remap.cpp.
References moab::Range::begin(), center(), moab::IntxUtils::decide_gnomonic_plane(), moab::Range::end(), ErrorCode, moab::Core::get_connectivity(), moab::Core::get_coords(), moab::Core::get_entities_by_dimension(), mb, MB_SUCCESS, moab::R, and moab::Core::tag_set_data().
Referenced by main().
void get_linear_reconstruction | ( | moab::Interface * | mb, |
moab::EntityHandle | set, | ||
moab::Tag & | rhoTag, | ||
moab::Tag & | planeTag, | ||
moab::Tag & | barycenterTag, | ||
moab::Tag & | linearCoefTag | ||
) |
Definition at line 257 of file linear_remap.cpp.
References moab::Range::begin(), moab::Range::end(), ErrorCode, moab::Core::get_adjacencies(), moab::Core::get_connectivity(), moab::Core::get_entities_by_dimension(), moab::IntxUtils::gnomonic_projection(), mb, MB_SUCCESS, moab::R, moab::Range::size(), moab::Core::tag_get_data(), moab::Core::tag_set_data(), and moab::Interface::UNION.
Referenced by main().
int gnomonic_projection_test | ( | const moab::CartVect & | pos, |
double | R, | ||
int | plane, | ||
double & | c1, | ||
double & | c2 | ||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 62 of file linear_remap.cpp.
References add_field_value(), moab::Core::create_meshset(), ErrorCode, get_barycenters(), get_gnomonic_plane(), get_linear_reconstruction(), moab::Core::load_file(), mb, MB_TAG_CREAT, MB_TAG_DENSE, MB_TYPE_DOUBLE, MB_TYPE_INTEGER, MESHSET_SET, moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), moab::Core::tag_get_handle(), and test_linear_reconstruction().
int reverse_gnomonic_projection_test | ( | const double & | c1, |
const double & | c2, | ||
double | R, | ||
int | plane, | ||
moab::CartVect & | pos | ||
) |
void test_linear_reconstruction | ( | moab::Interface * | mb, |
moab::EntityHandle | set, | ||
moab::Tag & | rhoTag, | ||
moab::Tag & | planeTag, | ||
moab::Tag & | barycenterTag, | ||
moab::Tag & | linearCoefTag | ||
) |
Definition at line 376 of file linear_remap.cpp.
References moab::Range::begin(), moab::Range::end(), ErrorCode, moab::Core::get_connectivity(), moab::Core::get_coords(), moab::Core::get_entities_by_dimension(), moab::IntxUtils::gnomonic_projection(), mb, MB_SUCCESS, moab::R, and moab::Core::tag_get_data().
Referenced by main().
double radius = 1. |
Definition at line 60 of file linear_remap.cpp.