Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::ReadRTT::dimData Struct Reference
+ Collaboration diagram for moab::ReadRTT::dimData:

Public Member Functions

void print ()
 
void validate ()
 

Public Attributes

std::string coor_units
 
std::string prob_time_units
 
int ncell_defs
 
int nnodes_max
 
int nsides_max
 
int nnodes_sides_max
 
int ndim
 
int n_dim_topo
 
int nnodes
 
int nnode_flag_types
 
std::vector< int > nnode_flags
 
int nnode_data
 
int nsides
 
int nside_types
 
int side_types
 
int nside_flag_types
 
std::vector< int > nside_flags
 
int nside_data
 
int ncells
 
int ncell_types
 
int cell_types
 
int ncell_flag_types
 
std::vector< int > ncell_flags
 
int ncell_data
 

Detailed Description

Definition at line 150 of file ReadRTT.hpp.

Member Function Documentation

◆ print()

void moab::ReadRTT::dimData::print ( )
inline

Definition at line 180 of file ReadRTT.hpp.

181  {
182  std::cout << "dimData: " << std::endl;
183  std::cout << "coor_units: " << coor_units << std::endl;
184  std::cout << "prob_time_units: " << prob_time_units << std::endl;
185  std::cout << "ncell_defs: " << ncell_defs << std::endl;
186  std::cout << std::endl;
187  std::cout << "Node information: " << std::endl;
188  std::cout << "nnodes_max: " << nnodes_max << std::endl;
189  std::cout << "nsides_max: " << nsides_max << std::endl;
190  std::cout << "nnodes_sides_max: " << nnodes_sides_max << std::endl;
191  std::cout << "ndim: " << ndim << std::endl;
192  std::cout << "n_dim_topo: " << n_dim_topo << std::endl;
193  std::cout << "nnodes: " << nnodes << std::endl;
194  std::cout << "nnode_flag_types: " << nnode_flag_types << std::endl;
195  std::cout << "nnode_flags: ";
196  for( size_t i = 0; i < nnode_flags.size(); i++ )
197  {
198  std::cout << nnode_flags[i] << " ";
199  }
200  std::cout << std::endl;
201  std::cout << "nnode_data: " << nnode_data << std::endl;
202 
203  std::cout << std::endl;
204  std::cout << "Side information: " << std::endl;
205  std::cout << "nsides: " << nsides << std::endl;
206  std::cout << "nside_types: " << nside_types << std::endl;
207  std::cout << "side_types: " << side_types << std::endl;
208  std::cout << "nside_flag_types: " << nside_flag_types << std::endl;
209  std::cout << "nside_flags: ";
210  for( size_t i = 0; i < nside_flags.size(); i++ )
211  {
212  std::cout << nside_flags[i] << " ";
213  }
214  std::cout << std::endl;
215  std::cout << "nside_data: " << nside_data << std::endl;
216 
217  std::cout << std::endl;
218  std::cout << "Cell information: " << std::endl;
219  std::cout << "ncells: " << ncells << std::endl;
220  std::cout << "ncell_types: " << ncell_types << std::endl;
221  std::cout << "cell_types: " << cell_types << std::endl;
222  std::cout << "ncell_flag_types: " << ncell_flag_types << std::endl;
223  std::cout << "ncell_flags: ";
224  for( size_t i = 0; i < ncell_flags.size(); i++ )
225  {
226  std::cout << ncell_flags[i] << " ";
227  }
228  std::cout << std::endl;
229  std::cout << "ncell_data: " << ncell_data << std::endl;
230  }

References cell_types, coor_units, n_dim_topo, ncell_data, ncell_defs, ncell_flag_types, ncell_flags, ncell_types, ncells, ndim, nnode_data, nnode_flag_types, nnode_flags, nnodes, nnodes_max, nnodes_sides_max, nside_data, nside_flag_types, nside_flags, nside_types, nsides, nsides_max, prob_time_units, and side_types.

◆ validate()

void moab::ReadRTT::dimData::validate ( )
inline

Definition at line 232 of file ReadRTT.hpp.

233  {
234  if( nnode_flag_types > 0 && nnode_flag_types != (int)nnode_flags.size() )
235  {
236  std::cerr << "Warning: nnode_flag_types does not match nnode_flags.size()" << std::endl;
237  }
238 
239  if( nside_flag_types > 0 && nside_flag_types != (int)nside_flags.size() )
240  {
241  std::cerr << "Warning: nside_flag_types does not match nside_flags.size()" << std::endl;
242  }
243 
244  if( ncell_flag_types > 0 && ncell_flag_types != (int)ncell_flags.size() )
245  {
246  std::cerr << "Warning: ncell_flag_types does not match ncell_flags.size()" << std::endl;
247  }
248 
249  if( ncell_flag_types > 1 )
250  {
251  std::cerr << "Warning: Additional flag types will not be read" << std::endl;
252  }
253  }

References ncell_flag_types, ncell_flags, nnode_flag_types, nnode_flags, nside_flag_types, and nside_flags.

Referenced by moab::ReadRTT::parse_dims().

Member Data Documentation

◆ cell_types

int moab::ReadRTT::dimData::cell_types

Definition at line 175 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ coor_units

std::string moab::ReadRTT::dimData::coor_units

Definition at line 152 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ n_dim_topo

int moab::ReadRTT::dimData::n_dim_topo

Definition at line 160 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ ncell_data

int moab::ReadRTT::dimData::ncell_data

Definition at line 178 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ ncell_defs

int moab::ReadRTT::dimData::ncell_defs

Definition at line 154 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ ncell_flag_types

int moab::ReadRTT::dimData::ncell_flag_types

◆ ncell_flags

std::vector< int > moab::ReadRTT::dimData::ncell_flags

◆ ncell_types

int moab::ReadRTT::dimData::ncell_types

Definition at line 174 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ ncells

int moab::ReadRTT::dimData::ncells

Definition at line 173 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ ndim

int moab::ReadRTT::dimData::ndim

Definition at line 159 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ nnode_data

int moab::ReadRTT::dimData::nnode_data

Definition at line 164 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ nnode_flag_types

int moab::ReadRTT::dimData::nnode_flag_types

Definition at line 162 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), print(), and validate().

◆ nnode_flags

std::vector< int > moab::ReadRTT::dimData::nnode_flags

Definition at line 163 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), print(), and validate().

◆ nnodes

int moab::ReadRTT::dimData::nnodes

Definition at line 161 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ nnodes_max

int moab::ReadRTT::dimData::nnodes_max

Definition at line 155 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ nnodes_sides_max

int moab::ReadRTT::dimData::nnodes_sides_max

Definition at line 157 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ nside_data

int moab::ReadRTT::dimData::nside_data

Definition at line 171 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ nside_flag_types

int moab::ReadRTT::dimData::nside_flag_types

◆ nside_flags

std::vector< int > moab::ReadRTT::dimData::nside_flags

◆ nside_types

int moab::ReadRTT::dimData::nside_types

Definition at line 167 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ nsides

int moab::ReadRTT::dimData::nsides

Definition at line 166 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ nsides_max

int moab::ReadRTT::dimData::nsides_max

Definition at line 156 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ prob_time_units

std::string moab::ReadRTT::dimData::prob_time_units

Definition at line 153 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().

◆ side_types

int moab::ReadRTT::dimData::side_types

Definition at line 168 of file ReadRTT.hpp.

Referenced by moab::ReadRTT::parse_dims(), and print().


The documentation for this struct was generated from the following file: