25 #ifndef vtkAMRFlashReaderInternal_h 26 #define vtkAMRFlashReaderInternal_h 35 #include "vtkSetGet.h" 51 #define FLASH_READER_MAX_DIMS 3 52 #define FLASH_READER_LEAF_BLOCK 1 53 #define FLASH_READER_FLASH3_FFV8 8 54 #define FLASH_READER_FLASH3_FFV9 9 89 int MinGlobalDivisionIds[3];
90 int MaxGlobalDivisionIds[3];
100 char FileCreationTime[80];
101 char FlashVersion[80];
103 char BuildDirectory[80];
104 char build_machine[80];
107 char SetupTimeStamp[80];
108 char BuildTimeStamp[80];
115 if ( sepaName.length() > 9 && sepaName.substr(0,9) ==
"particle_" )
117 sepaName =
std::string(
"Particles/" ) + sepaName.substr( 9 );
147 int BlockGridDimensions[3];
148 int BlockCellDimensions[3];
175 void SetFileName(
char * fileName ) { this->FileName = fileName; }
180 return particleName.c_str();
184 void ReadProcessorIds();
185 void ReadDoubleScalars( hid_t fileIndx );
186 void ReadIntegerScalars( hid_t fileIndx );
187 void ReadVersionInformation( hid_t fileIndx );
188 void ReadSimulationParameters
189 ( hid_t fileIndx,
bool bTmCycle =
false );
190 void GetBlockMinMaxGlobalDivisionIds();
192 void ReadBlockTypes();
193 void ReadBlockBounds();
194 void ReadBlockCenters();
195 void ReadBlockStructures();
196 void ReadRefinementLevels();
197 void ReadDataAttributeNames();
199 void ReadParticlesComponent
200 ( hid_t dataIndx,
const char * compName,
double * dataBuff );
201 void ReadParticleAttributes();
202 void ReadParticleAttributesFLASH3();
203 void GetBlockAttribute(
const char *attribute,
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
std::vector< int > LeafBlocks