Attached Files | exodusii.patch.txt [^] (1,686 bytes) 1969-12-31 19:00 [Show Content] [Hide Content]Index: vtkExodusIIReader.cxx
===================================================================
RCS file: /cvsroot/ParaView3/ParaView3/VTK/Hybrid/vtkExodusIIReader.cxx,v
retrieving revision 1.13
diff -u -r1.13 vtkExodusIIReader.cxx
--- vtkExodusIIReader.cxx 17 Apr 2007 16:15:19 -0000 1.13
+++ vtkExodusIIReader.cxx 24 Apr 2007 18:24:26 -0000
@@ -399,6 +399,9 @@
Map=2, //!< The array has a corresponding entry in MapInfo
Generated=3 //!< The array is procedurally generated (e.g., BlockId)
};
+
+ /// the time stamp for reading information
+ vtkTimeStamp InformationTimeStamp;
friend class vtkExodusIIReader;
@@ -3195,7 +3198,7 @@
char tmpName[256];
tmpName[255] = '\0';
- this->Modified(); // Update MTime so that it will be newer than parent's FileNameMTime
+ this->InformationTimeStamp.Modified(); // Update MTime so that it will be newer than parent's FileNameMTime
VTK_EXO_FUNC( ex_get_init_ext( exoid, &this->ModelParameters ),
"Unable to read database parameters." );
@@ -4163,7 +4166,8 @@
unsigned long vtkExodusIIReader::GetMetadataMTime()
{
- return this->Metadata->GetMTime();
+ return this->Metadata->InformationTimeStamp < this->Metadata->GetMTime() ?
+ this->Metadata->InformationTimeStamp : this->Metadata->GetMTime();
}
#define vtkSetStringMacroBody(propName,fname) \
@@ -4216,7 +4220,7 @@
vtkInformation* outInfo = outputVector->GetInformationObject(0);
// If the metadata is older than the filename
- if ( this->Metadata->GetMTime() < this->FileNameMTime )
+ if ( this->GetMetadataMTime() < this->FileNameMTime )
{
if ( this->Metadata->OpenFile( this->FileName ) )
{
|