24 #ifndef VTKAMRFLASHREADERINTERNAL_HPP_ 25 #define VTKAMRFLASHREADERINTERNAL_HPP_ 49 #define FLASH_READER_MAX_DIMS 3 50 #define FLASH_READER_LEAF_BLOCK 1 51 #define FLASH_READER_FLASH3_FFV8 8 52 #define FLASH_READER_FLASH3_FFV9 9 87 int MinGlobalDivisionIds[3];
88 int MaxGlobalDivisionIds[3];
98 char FileCreationTime[80];
99 char FlashVersion[80];
101 char BuildDirectory[80];
102 char build_machine[80];
105 char SetupTimeStamp[80];
106 char BuildTimeStamp[80];
113 if ( sepaName.length() > 9 && sepaName.substr(0,9) ==
"particle_" )
115 sepaName =
std::string(
"Particles/" ) + sepaName.substr( 9 );
145 int BlockGridDimensions[3];
146 int BlockCellDimensions[3];
173 void SetFileName(
char * fileName ) { this->FileName = fileName; }
178 return particleName.c_str();
182 void ReadProcessorIds();
183 void ReadDoubleScalars( hid_t fileIndx );
184 void ReadIntegerScalars( hid_t fileIndx );
185 void ReadVersionInformation( hid_t fileIndx );
186 void ReadSimulationParameters
187 ( hid_t fileIndx,
bool bTmCycle =
false );
188 void GetBlockMinMaxGlobalDivisionIds();
190 void ReadBlockTypes();
191 void ReadBlockBounds();
192 void ReadBlockCenters();
193 void ReadBlockStructures();
194 void ReadRefinementLevels();
195 void ReadDataAttributeNames();
197 void ReadParticlesComponent
198 ( hid_t dataIndx,
const char * compName,
double * dataBuff );
199 void ReadParticleAttributes();
200 void ReadParticleAttributesFLASH3();
201 void GetBlockAttribute(
const char *atribute,
int blockIdx,
FlashReaderSimulationInformation SimulationInformation
std::map< std::string, int > ParticleAttributeNamesToIds
abstract class to specify dataset behavior
const char * GetParticleName(char *variableName)
FlashReaderSimulationParameters SimulationParameters
int NumberOfNeighborsPerBlock
struct tagFlashReaderSimulationParameters FlashReaderSimulationParameters
void SetFileName(char *fileName)
struct tagFlashReaderSimulationInformation FlashReaderSimulationInformation
std::vector< hid_t > ParticleAttributeTypes
std::vector< Block > Blocks
struct tagFlashReaderDoubleScalar FlashReaderDoubleScalar
static std::string GetSeparatedParticleName(const std::string &variable)
~vtkFlashReaderInternal()
struct tagFlashReaderIntegerScalar FlashReaderIntegerScalar
int NumberOfChildrenPerBlock
std::vector< std::string > AttributeNames
std::vector< std::string > ParticleAttributeNames
GLsizei const GLchar ** string
std::vector< int > LeafBlocks