Mesh Oriented datABase  (version 5.6.0)
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 ndim
 
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 178 of file ReadRTT.hpp.

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

References cell_types, coor_units, ncell_data, ncell_defs, ncell_flag_types, ncell_flags, ncell_types, ncells, ndim, nnode_data, nnode_flag_types, nnode_flags, nnodes, nnodes_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 228 of file ReadRTT.hpp.

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

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 173 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().

◆ ncell_data

int moab::ReadRTT::dimData::ncell_data

Definition at line 176 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 172 of file ReadRTT.hpp.

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

◆ ncells

int moab::ReadRTT::dimData::ncells

Definition at line 171 of file ReadRTT.hpp.

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

◆ ndim

int moab::ReadRTT::dimData::ndim

Definition at line 158 of file ReadRTT.hpp.

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

◆ nnode_data

int moab::ReadRTT::dimData::nnode_data

Definition at line 162 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 160 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 161 of file ReadRTT.hpp.

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

◆ nnodes

int moab::ReadRTT::dimData::nnodes

Definition at line 159 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().

◆ nside_data

int moab::ReadRTT::dimData::nside_data

Definition at line 169 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 165 of file ReadRTT.hpp.

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

◆ nsides

int moab::ReadRTT::dimData::nsides

Definition at line 164 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 166 of file ReadRTT.hpp.

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


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