------------------------------------------------------------------------------
| 606 | |
| 607 | //------------------------------------------------------------------------------ |
| 608 | int vtkNetCDFReader::UpdateMetaData() |
| 609 | { |
| 610 | if (this->MetaDataMTime < this->FileNameMTime || this->MetaDataMTime < this->Accessor->GetMTime()) |
| 611 | { |
| 612 | if (!this->FileName && this->Accessor->NeedsFileName()) |
| 613 | { |
| 614 | vtkErrorMacro(<< "FileName not set."); |
| 615 | return 0; |
| 616 | } |
| 617 | |
| 618 | int ncFD; |
| 619 | CALL_NETCDF_INT(this->Accessor->open(this->FileName, NC_NOWRITE, &ncFD)); |
| 620 | |
| 621 | int retval = this->ReadMetaData(ncFD); |
| 622 | |
| 623 | if (retval) |
| 624 | retval = this->FillVariableDimensions(ncFD); |
| 625 | |
| 626 | if (retval) |
| 627 | this->MetaDataMTime.Modified(); |
| 628 | |
| 629 | CALL_NETCDF_INT(this->Accessor->close(ncFD)); |
| 630 | |
| 631 | return retval; |
| 632 | } |
| 633 | else |
| 634 | { |
| 635 | return 1; |
| 636 | } |
| 637 | } |
| 638 | |
| 639 | //------------------------------------------------------------------------------ |
| 640 | vtkStdString vtkNetCDFReader::DescribeDimensions(int ncFD, const int* dimIds, int numDims) |
no test coverage detected