Example demonstrating creation of continent boundary edge meshes. More...
#include "moab/Core.hpp"#include "moab/ReadUtilIface.hpp"#include "moab/CartVect.hpp"#include <iostream>#include <fstream>
Include dependency graph for BoundaryContinents.cpp:Go to the source code of this file.
Functions | |
| double | getLat (CartVect p) |
| double | getLon (CartVect p) |
| int | main (int argc, char **argv) |
Variables | |
| string | bd_name = string( MESH_DIR ) + string( "/../examples/earth/boundary_points.dat" ) |
| string | loops = string( MESH_DIR ) + string( "/../examples/earth/SaveLoopCounts" ) |
Example demonstrating creation of continent boundary edge meshes.
This example shows how to:
This tool is useful for creating continent boundary meshes for climate and geophysical applications.
Definition in file BoundaryContinents.cpp.
| double getLat | ( | CartVect | p | ) |
Definition at line 44 of file BoundaryContinents.cpp.
References moab::CartVect::normalize().
Referenced by main().
| double getLon | ( | CartVect | p | ) |
Definition at line 49 of file BoundaryContinents.cpp.
References moab::CartVect::normalize().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
get loops for boundaries
Definition at line 65 of file BoundaryContinents.cpp.
References moab::Core::add_entities(), bd_name, moab::Range::begin(), moab::Core::create_meshset(), moab::Core::create_vertices(), moab::Core::delete_entities(), moab::Range::end(), moab::Core::get_connectivity(), moab::Core::get_coords(), moab::ReadUtilIface::get_element_connect(), getLat(), getLon(), moab::Core::globalId_tag(), moab::Range::insert(), length_squared(), loops, mb, MB_CHK_ERR, MB_CHK_SET_ERR, MBEDGE, MESHSET_SET, moab::Interface::query_interface(), moab::Core::set_coords(), moab::Range::size(), moab::Core::tag_set_data(), and moab::Core::write_file().
| string bd_name = string( MESH_DIR ) + string( "/../examples/earth/boundary_points.dat" ) |
Definition at line 41 of file BoundaryContinents.cpp.
Referenced by main().
| string loops = string( MESH_DIR ) + string( "/../examples/earth/SaveLoopCounts" ) |
Definition at line 42 of file BoundaryContinents.cpp.
Referenced by main().