------------------------------------------------------------------------------
| 561 | |
| 562 | //------------------------------------------------------------------------------ |
| 563 | int vtkNetCDFCFReader::vtkDependentDimensionInfo::LoadCoordinateVariable( |
| 564 | int ncFD, int varId, vtkDoubleArray* coords) |
| 565 | { |
| 566 | int dimIds[2]; |
| 567 | CALL_NETCDF_GW(this->Accessor->inq_vardimid(ncFD, varId, dimIds)); |
| 568 | |
| 569 | size_t dimSizes[2]; |
| 570 | for (int i = 0; i < 2; i++) |
| 571 | { |
| 572 | CALL_NETCDF_GW(this->Accessor->inq_dimlen(ncFD, dimIds[i], &dimSizes[i])); |
| 573 | } |
| 574 | |
| 575 | coords->SetNumberOfComponents(static_cast<int>(dimSizes[1])); |
| 576 | coords->SetNumberOfTuples(static_cast<vtkIdType>(dimSizes[0])); |
| 577 | CALL_NETCDF_GW(this->Accessor->get_var_double(ncFD, varId, coords->GetPointer(0))); |
| 578 | |
| 579 | return 1; |
| 580 | } |
| 581 | |
| 582 | //------------------------------------------------------------------------------ |
| 583 | int vtkNetCDFCFReader::vtkDependentDimensionInfo::LoadBoundsVariable( |
no test coverage detected