@@ -118,7 +118,7 @@ avtVlsvFileFormat::avtVlsvFileFormat(const char *filename): avtSTMDFileFormat(&f
118
118
119
119
// INITIALIZE DATA MEMBERS
120
120
inputFile = filename ;
121
- vlsv = NULL ;
121
+ vlsvReader = NULL ;
122
122
123
123
/*
124
124
// TEST
@@ -167,7 +167,7 @@ void avtVlsvFileFormat::FreeUpResources(void) {
167
167
debug3 << "VLSV\t object " << objectNumber << " / " << objectCounter << endl ;
168
168
169
169
// Delete VLSVReader:
170
- delete vlsv ; vlsv = NULL ;
170
+ delete vlsvReader ; vlsvReader = NULL ;
171
171
dataTime = INVALID_TIME ;
172
172
dataTimeFound = false;
173
173
dataTimestep = INVALID_CYCLE ;
@@ -256,12 +256,12 @@ void avtVlsvFileFormat::PopulateDatabaseMetaData(avtDatabaseMetaData* md) {
256
256
257
257
// ActivateTimeStep should get called prior to this function.
258
258
// Check that a VLSV file is open:
259
- if (vlsv == NULL ) {
259
+ if (vlsvReader == NULL ) {
260
260
debug2 << "VLSV\t VLSVReader in NULL, calling ActivateTimestep()." << endl ;
261
261
ActivateTimestep ();
262
262
}
263
263
string dummy ;
264
- if (vlsv -> getFileName (dummy ) == false) {
264
+ if (vlsvReader -> getFileName (dummy ) == false) {
265
265
debug2 << "VLSV\t ERROR: Input file has not been opened." << endl ;
266
266
return ;
267
267
}
@@ -428,7 +428,7 @@ void avtVlsvFileFormat::ActivateTimestep(void) {
428
428
debug3 << "VLSV\t object " << objectNumber << " / " << objectCounter << endl ;
429
429
430
430
// Delete old VLSVReader:
431
- delete vlsv ; vlsv = NULL ;
431
+ delete vlsvReader ; vlsvReader = NULL ;
432
432
433
433
/*
434
434
// TEST
@@ -440,11 +440,11 @@ void avtVlsvFileFormat::ActivateTimestep(void) {
440
440
*/
441
441
442
442
// Create new VLSVReader and open given file:
443
- vlsv = new VLSVReader ;
444
- if (vlsv -> open (inputFile ) == false) {
443
+ vlsvReader = new vlsv :: Reader ;
444
+ if (vlsvReader -> open (inputFile ) == false) {
445
445
debug2 << "VLSV\t ERROR: VLSVReader failed to open input file '" << inputFile << "'" << endl ;
446
- vlsv -> close ();
447
- delete vlsv ; vlsv = NULL ;
446
+ vlsvReader -> close ();
447
+ delete vlsvReader ; vlsvReader = NULL ;
448
448
EXCEPTION1 (InvalidDBTypeException ,"VLSV Plugin could not open the file." );
449
449
return ;
450
450
}
@@ -453,8 +453,8 @@ void avtVlsvFileFormat::ActivateTimestep(void) {
453
453
if (metadataRead == false) {
454
454
if (readMetadata () == false) {
455
455
debug2 << "VLSV\t ERROR: Failed to read metadata" << endl ;
456
- vlsv -> close ();
457
- delete vlsv ; vlsv = NULL ;
456
+ vlsvReader -> close ();
457
+ delete vlsvReader ; vlsvReader = NULL ;
458
458
EXCEPTION1 (InvalidDBTypeException ,"VLSV Plugin could not open the file." );
459
459
return ;
460
460
}
@@ -484,7 +484,7 @@ vtkDataSet* avtVlsvFileFormat::GetMesh(int domain,const char *meshname) {
484
484
debug3 << "VLSV\t object " << objectNumber << " / " << objectCounter << endl ;
485
485
486
486
// Check that VLSVReader exists:
487
- if (vlsv == NULL ) {
487
+ if (vlsvReader == NULL ) {
488
488
debug1 << "VLSV\t ERROR: VLSVReader is NULL" << endl ;
489
489
EXCEPTION1 (InvalidVariableException , meshname );
490
490
return NULL ;
@@ -515,7 +515,7 @@ vtkDataSet* avtVlsvFileFormat::GetMesh(int domain,const char *meshname) {
515
515
516
516
// Read mesh coordinates:
517
517
void * meshOut = NULL ;
518
- if (reader -> second -> readMesh (vlsv ,metadata -> second ,domain ,meshOut ) == false) {
518
+ if (reader -> second -> readMesh (vlsvReader ,metadata -> second ,domain ,meshOut ) == false) {
519
519
debug2 << "VLSV\t ERROR: Mesh reader failed to generate mesh" << endl ;
520
520
}
521
521
@@ -548,7 +548,7 @@ bool avtVlsvFileFormat::PrepareVariable(int domain,const char* varName,
548
548
meshReader = meshReaders .end ();
549
549
550
550
// Check that VLSVReader exists:
551
- if (vlsv == NULL ) {
551
+ if (vlsvReader == NULL ) {
552
552
debug1 << "VLSV\t ERROR: VLSVReader is NULL" << endl ;
553
553
return false;
554
554
}
@@ -639,7 +639,7 @@ vtkDataArray* avtVlsvFileFormat::ReadVariable(int domain,const char* varName) {
639
639
return NULL ;
640
640
}
641
641
642
- if (meshReader -> second -> readVariable (vlsv ,metadata -> second ,* variableMetadata ,domain ,variablePointer ) == false) {
642
+ if (meshReader -> second -> readVariable (vlsvReader ,metadata -> second ,* variableMetadata ,domain ,variablePointer ) == false) {
643
643
debug1 << "VLSV\t ERROR: Failed to read variable data" << endl ;
644
644
rv -> Delete ();
645
645
return NULL ;
@@ -683,14 +683,14 @@ int avtVlsvFileFormat::GetCycle(void) {
683
683
debug3 << "VLSV\t object " << objectNumber << " / " << objectCounter << endl ;
684
684
685
685
// Check that VLSVReader is not NULL:
686
- if (vlsv == NULL ) {
686
+ if (vlsvReader == NULL ) {
687
687
debug1 << "VLSV\t ERROR: VLSVReader is NULL." << endl ;
688
688
return INVALID_CYCLE ;
689
689
}
690
690
691
691
// Read simulation timestep:
692
692
dataTimestepFound = true;
693
- if (vlsv -> readParameter ("timestep" ,dataTimestep ) == false) {
693
+ if (vlsvReader -> readParameter ("timestep" ,dataTimestep ) == false) {
694
694
dataTimestep = INVALID_CYCLE ;
695
695
dataTimestepFound = false;
696
696
}
@@ -705,14 +705,14 @@ double avtVlsvFileFormat::GetTime(void) {
705
705
debug3 << "VLSV\t object " << objectNumber << " / " << objectCounter << endl ;
706
706
707
707
// Check that VLSVReader is not NULL:
708
- if (vlsv == NULL ) {
708
+ if (vlsvReader == NULL ) {
709
709
debug1 << "VLSV\t ERROR: VLSVReader is NULL." << endl ;
710
710
return INVALID_TIME ;
711
711
}
712
712
713
713
// Read simulation time:
714
714
dataTimeFound = true;
715
- if (vlsv -> readParameter ("time" ,dataTime ) == false) {
715
+ if (vlsvReader -> readParameter ("time" ,dataTime ) == false) {
716
716
dataTime = INVALID_TIME ;
717
717
dataTimeFound = false;
718
718
}
@@ -736,13 +736,13 @@ bool avtVlsvFileFormat::readMetadata() {
736
736
metadataRead = false;
737
737
738
738
// Check that VLSVReader exists:
739
- if (vlsv == NULL ) {
739
+ if (vlsvReader == NULL ) {
740
740
return false;
741
741
}
742
742
743
743
// Read mesh names:
744
744
set < string > meshNames ;
745
- if (vlsv -> getUniqueAttributeValues ("MESH" ,"name" ,meshNames ) == false) {
745
+ if (vlsvReader -> getUniqueAttributeValues ("MESH" ,"name" ,meshNames ) == false) {
746
746
return false;
747
747
}
748
748
@@ -754,17 +754,17 @@ bool avtVlsvFileFormat::readMetadata() {
754
754
map < string ,string > attribsOut ;
755
755
list < pair < string ,string > > attribsIn ;
756
756
attribsIn .push_back (make_pair ("name" ,* it ));
757
- vlsv -> getArrayAttributes ("MESH" ,attribsIn ,attribsOut );
757
+ vlsvReader -> getArrayAttributes ("MESH" ,attribsIn ,attribsOut );
758
758
if (attribsOut .find ("type" ) == attribsOut .end ()) {
759
759
debug4 << "VLSV\t skipping it because its type is unspecified" << endl ;
760
760
continue ;
761
761
}
762
762
763
763
// Check if mesh type corresponds to one of types supported by VisIt:
764
764
bool supportedType = true;
765
- if (attribsOut ["type" ] == VLSV :: MESH_POINT ) {
765
+ if (attribsOut ["type" ] == vlsv :: mesh :: STRING_POINT ) {
766
766
vlsvplugin ::VisitPointMeshMetadata * pointMesh = new vlsvplugin ::VisitPointMeshMetadata ();
767
- if (pointMesh -> read (vlsv ,attribsOut ) == false) {
767
+ if (pointMesh -> read (vlsvReader ,attribsOut ) == false) {
768
768
debug2 << "VLSV\t\t Failed to read point mesh metadata" << endl ;
769
769
delete pointMesh ; pointMesh = NULL ;
770
770
} else {
@@ -782,9 +782,9 @@ bool avtVlsvFileFormat::readMetadata() {
782
782
meshMetadata .erase (tmp );
783
783
}
784
784
}
785
- } else if (attribsOut ["type" ] == VLSV :: MESH_QUAD_MULTI ) {
785
+ } else if (attribsOut ["type" ] == vlsv :: mesh :: STRING_QUAD_MULTI ) {
786
786
vlsvplugin ::VisitQuadMultiMeshMetadata * multiMesh = new vlsvplugin ::VisitQuadMultiMeshMetadata ();
787
- if (multiMesh -> read (vlsv ,attribsOut ) == false) {
787
+ if (multiMesh -> read (vlsvReader ,attribsOut ) == false) {
788
788
debug2 << "VLSV\t\t Failed to read multimesh metadata" << endl ;
789
789
delete multiMesh ; multiMesh = NULL ;
790
790
} else {
@@ -802,9 +802,9 @@ bool avtVlsvFileFormat::readMetadata() {
802
802
meshMetadata .erase (tmp );
803
803
}
804
804
}
805
- } else if (attribsOut ["type" ] == VLSV :: MESH_UCD_MULTI ) {
805
+ } else if (attribsOut ["type" ] == vlsv :: mesh :: STRING_UCD_MULTI ) {
806
806
vlsvplugin ::VisitUCDMultiMeshMetadata * multiUCD = new vlsvplugin ::VisitUCDMultiMeshMetadata ();
807
- if (multiUCD -> read (vlsv ,attribsOut ) == false) {
807
+ if (multiUCD -> read (vlsvReader ,attribsOut ) == false) {
808
808
debug2 << "VLSV\t\t Failed to read multimesh metadata" << endl ;
809
809
delete multiUCD ; multiUCD = NULL ;
810
810
} else {
0 commit comments