Child helper class for HOMME grid (CAM_SE) More...
#include <NCHelperHOMME.hpp>
Inheritance diagram for moab::NCHelperHOMME:
Collaboration diagram for moab::NCHelperHOMME:Public Member Functions | |
| NCHelperHOMME (ReadNC *readNC, int fileId, const FileOptions &opts, EntityHandle fileSet) | |
Public Member Functions inherited from moab::UcdNCHelper | |
| UcdNCHelper (ReadNC *readNC, int fileId, const FileOptions &opts, EntityHandle fileSet) | |
| virtual | ~UcdNCHelper () |
Public Member Functions inherited from moab::NCHelper | |
| NCHelper (ReadNC *readNC, int fileId, const FileOptions &opts, EntityHandle fileSet) | |
| virtual | ~NCHelper () |
| ErrorCode | create_conventional_tags (const std::vector< int > &tstep_nums) |
| Create NC conventional tags. More... | |
| ErrorCode | update_time_tag_vals () |
| Update time tag values if timesteps spread across files. More... | |
Static Public Member Functions | |
| static bool | can_read_file (ReadNC *readNC, int fileId) |
Static Public Member Functions inherited from moab::NCHelper | |
| static ReadNC::NCFormatType | get_nc_format (ReadNC *readNC, int fileId) |
| Get appropriate format to read the file. More... | |
| static std::string | get_default_ncformat_options (ReadNC::NCFormatType format) |
| Get appropriate format to read the file. More... | |
| static NCHelper * | get_nc_helper (ReadNC *readNC, int fileId, const FileOptions &opts, EntityHandle fileSet) |
| Get appropriate helper instance for ReadNC class. More... | |
Private Member Functions | |
| virtual ErrorCode | init_mesh_vals () |
| Implementation of NCHelper::init_mesh_vals() More... | |
| virtual ErrorCode | check_existing_mesh () |
| Implementation of NCHelper::check_existing_mesh() More... | |
| virtual ErrorCode | create_mesh (Range &faces) |
| Implementation of NCHelper::create_mesh() More... | |
| virtual std::string | get_mesh_type_name () |
| Implementation of NCHelper::get_mesh_type_name() More... | |
| virtual ErrorCode | read_ucd_variables_to_nonset_allocate (std::vector< ReadNC::VarData > &vdatas, std::vector< int > &tstep_nums) |
| Implementation of UcdNCHelper::read_ucd_variables_to_nonset_allocate() More... | |
| virtual ErrorCode | read_ucd_variables_to_nonset (std::vector< ReadNC::VarData > &vdatas, std::vector< int > &tstep_nums) |
| Implementation of UcdNCHelper::read_ucd_variables_to_nonset() More... | |
Private Attributes | |
| int | _spectralOrder |
| int | connectId |
| bool | isConnFile |
Additional Inherited Members | |
Protected Member Functions inherited from moab::UcdNCHelper | |
| template<typename T > | |
| void | kji_to_jik_stride (size_t, size_t nj, size_t nk, void *dest, T *source, Range &localGid) |
| This version takes as input the moab range, from which we actually need just the size of each sequence, for a proper transpose of the data. More... | |
Protected Member Functions inherited from moab::NCHelper | |
| ErrorCode | read_variables_setup (std::vector< std::string > &var_names, std::vector< int > &tstep_nums, std::vector< ReadNC::VarData > &vdatas, std::vector< ReadNC::VarData > &vsetdatas) |
| Separate set and non-set variables (common to scd mesh and ucd mesh) More... | |
| ErrorCode | read_variables_to_set (std::vector< ReadNC::VarData > &vdatas, std::vector< int > &tstep_nums) |
| Read set variables (common to scd mesh and ucd mesh) More... | |
| ErrorCode | read_coordinate (const char *var_name, int lmin, int lmax, std::vector< double > &cvals) |
| ErrorCode | get_tag_to_set (ReadNC::VarData &var_data, int tstep_num, Tag &tagh) |
| ErrorCode | get_tag_to_nonset (ReadNC::VarData &var_data, int tstep_num, Tag &tagh, int num_lev) |
| ErrorCode | create_attrib_string (const std::map< std::string, ReadNC::AttData > &attMap, std::string &attString, std::vector< int > &attLen) |
| Create a character string attString of attMap. with '\0' terminating each attribute name, ';' separating the data type and value, and ';' separating one name/data type/value from the next'. attLen stores the end position for each name/data type/ value. More... | |
| ErrorCode | create_dummy_variables () |
| For a dimension that does not have a corresponding coordinate variable (e.g. ncol for HOMME), create a dummy variable with a sparse tag to store the dimension length. More... | |
Protected Attributes inherited from moab::UcdNCHelper | |
| int | nCells |
| Dimensions of global grid in file. More... | |
| int | nEdges |
| int | nVertices |
| int | nLocalCells |
| Dimensions of my local part of grid. More... | |
| int | nLocalEdges |
| int | nLocalVertices |
| std::vector< double > | xVertVals |
| Coordinate values for vertices. More... | |
| std::vector< double > | yVertVals |
| std::vector< double > | zVertVals |
| int | cDim |
| Dimension numbers for nCells, nEdges and nVertices. More... | |
| int | eDim |
| int | vDim |
| Range | localGidCells |
| Local global ID for cells, edges and vertices. More... | |
| Range | localGidEdges |
| Range | localGidVerts |
Protected Attributes inherited from moab::NCHelper | |
| ReadNC * | _readNC |
| Allow NCHelper to directly access members of ReadNC. More... | |
| int | _fileId |
| Cache some information from ReadNC. More... | |
| const FileOptions & | _opts |
| EntityHandle | _fileSet |
| int | nTimeSteps |
| Dimensions of time and level. More... | |
| int | nLevels |
| std::vector< double > | tVals |
| Values for time and level. More... | |
| std::vector< double > | levVals |
| int | tDim |
| Dimension numbers for time and level. More... | |
| int | levDim |
| std::set< std::string > | ignoredVarNames |
| Ignored variables. More... | |
| std::set< std::string > | dummyVarNames |
| Dummy variables. More... | |
Child helper class for HOMME grid (CAM_SE)
Definition at line 18 of file NCHelperHOMME.hpp.
| moab::NCHelperHOMME::NCHelperHOMME | ( | ReadNC * | readNC, |
| int | fileId, | ||
| const FileOptions & | opts, | ||
| EntityHandle | fileSet | ||
| ) |
Definition at line 11 of file NCHelperHOMME.cpp.
References _spectralOrder, moab::ReadNC::fileId, moab::ReadNC::globalAtts, isConnFile, and NCFUNC.
|
static |
Definition at line 31 of file NCHelperHOMME.cpp.
References moab::ReadNC::dimNames, moab::ReadNC::globalAtts, and NCFUNC.
Referenced by moab::NCHelper::get_nc_format().
|
privatevirtual |
Implementation of NCHelper::check_existing_mesh()
Implements moab::NCHelper.
Definition at line 222 of file NCHelperHOMME.cpp.
References moab::NCHelper::_fileSet, moab::NCHelper::_readNC, moab::Range::empty(), moab::Interface::get_entities_by_dimension(), moab::UcdNCHelper::localGidVerts, MB_CHK_SET_ERR, MB_SUCCESS, moab::ReadNC::mbImpl, moab::ReadNC::mGlobalIdTag, moab::UcdNCHelper::nLocalVertices, moab::ReadNC::noMesh, moab::Range::size(), and moab::Interface::tag_get_data().
Implementation of NCHelper::create_mesh()
Implements moab::NCHelper.
Definition at line 257 of file NCHelperHOMME.cpp.
References moab::NCHelper::_fileSet, moab::NCHelper::_opts, moab::NCHelper::_readNC, _spectralOrder, moab::Interface::add_entities(), moab::Range::begin(), moab::Interface::connect_iterate(), connectId, moab::ReadUtilIface::create_gather_set(), moab::SpectralMeshTool::create_spectral_elems(), moab::ReadNC::dbgOut, moab::Range::end(), moab::ReadNC::fileId, moab::ReadNC::fileName, moab::ReadNC::gatherSetRank, moab::ReadNC::get_dimensions(), moab::ReadUtilIface::get_element_connect(), moab::ReadUtilIface::get_node_coords(), moab::FileOptions::get_str_option(), moab::Range::insert(), isConnFile, moab::ReadNC::isParallel, moab::NCHelper::levVals, moab::UcdNCHelper::localGidVerts, MB_CHK_SET_ERR, MB_SET_ERR, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, moab::ReadNC::mbImpl, MBQUAD, moab::Range::merge(), moab::ReadNC::mGlobalIdTag, moab::ReadNC::mpFileIdTag, NCDF_SIZE, moab::UcdNCHelper::nCells, NCFUNC, NCFUNCAG, moab::UcdNCHelper::nLocalVertices, moab::UcdNCHelper::nVertices, moab::pideg, moab::ProcConfig::proc_comm(), moab::ParallelComm::proc_config(), moab::ProcConfig::proc_rank(), moab::ProcConfig::proc_size(), moab::ReadNC::readMeshIface, moab::Range::size(), moab::SpectralMeshTool::spectral_vertices_tag(), moab::ReadNC::spectralMesh, moab::Interface::tag_get_bytes(), moab::Interface::tag_get_handle(), moab::Interface::tag_iterate(), moab::Interface::tag_set_data(), moab::DebugOutput::tprintf(), moab::ReadNC::trivialPartitionShift, moab::UcdNCHelper::xVertVals, and moab::UcdNCHelper::yVertVals.
|
inlineprivatevirtual |
Implementation of NCHelper::get_mesh_type_name()
Implements moab::NCHelper.
Definition at line 32 of file NCHelperHOMME.hpp.
|
privatevirtual |
Implementation of NCHelper::init_mesh_vals()
Implements moab::NCHelper.
Definition at line 64 of file NCHelperHOMME.cpp.
References moab::NCHelper::_fileId, moab::NCHelper::_readNC, moab::NCHelper::create_dummy_variables(), moab::ReadNC::dimLens, moab::ReadNC::dimNames, moab::ReadNC::VarData::entLoc, moab::ReadNC::ENTLOCVERT, isConnFile, moab::NCHelper::levDim, moab::NCHelper::levVals, MB_CHK_SET_ERR, MB_SET_ERR, MB_SUCCESS, moab::UcdNCHelper::nCells, NCFUNC, moab::NCHelper::nLevels, moab::NCHelper::nTimeSteps, moab::ReadNC::VarData::numLev, moab::UcdNCHelper::nVertices, moab::NCHelper::read_coordinate(), moab::NCHelper::tDim, moab::NCHelper::tVals, moab::ReadNC::VarData::varDims, moab::ReadNC::varInfo, moab::UcdNCHelper::vDim, moab::UcdNCHelper::xVertVals, and moab::UcdNCHelper::yVertVals.
|
privatevirtual |
Implementation of UcdNCHelper::read_ucd_variables_to_nonset()
Implements moab::UcdNCHelper.
Definition at line 807 of file NCHelperHOMME.cpp.
References moab::NCHelper::_fileId, moab::NCHelper::_readNC, moab::ReadNC::dbgOut, moab::DebugOutput::get_verbosity(), moab::UcdNCHelper::kji_to_jik_stride(), moab::UcdNCHelper::localGidVerts, MB_CHK_SET_ERR, MB_SET_ERR, MB_SUCCESS, NCDF_SIZE, NCFUNCAG, moab::Range::pair_begin(), moab::Range::pair_end(), moab::DebugOutput::printf(), moab::Range::psize(), read_ucd_variables_to_nonset_allocate(), and moab::DebugOutput::tprintf().
|
privatevirtual |
Implementation of UcdNCHelper::read_ucd_variables_to_nonset_allocate()
Implements moab::UcdNCHelper.
Definition at line 618 of file NCHelperHOMME.cpp.
References moab::NCHelper::_fileSet, moab::NCHelper::_readNC, moab::Range::begin(), moab::ReadNC::dbgOut, moab::ReadNC::dimLens, moab::Range::end(), moab::ReadNC::ENTLOCVERT, moab::Interface::get_entities_by_dimension(), moab::NCHelper::get_tag_to_nonset(), moab::UcdNCHelper::localGidVerts, MB_CHK_SET_ERR, MB_INDEX_OUT_OF_RANGE, MB_SET_ERR, MB_SUCCESS, moab::ReadNC::mbImpl, moab::UcdNCHelper::nLocalVertices, moab::Range::psize(), moab::Range::size(), moab::Interface::tag_iterate(), moab::NCHelper::tDim, and moab::DebugOutput::tprintf().
Referenced by read_ucd_variables_to_nonset().
|
private |
Definition at line 51 of file NCHelperHOMME.hpp.
Referenced by create_mesh(), and NCHelperHOMME().
|
private |
Definition at line 52 of file NCHelperHOMME.hpp.
Referenced by create_mesh().
|
private |
Definition at line 53 of file NCHelperHOMME.hpp.
Referenced by create_mesh(), init_mesh_vals(), and NCHelperHOMME().