MCPcopy Create free account
hub / github.com/Kitware/VTK / get_var_double

Method get_var_double

IO/NetCDF/vtkXArrayAccessor.cxx:532–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532int vtkXArrayAccessor::get_var_double(int ncid, int varid, double* ip)
533{
534 if (static_cast<size_t>(varid) >= this->Var.size())
535 return NC_ENOTVAR;
536
537 size_t ndims = this->VarDims[varid].size();
538 std::vector<size_t> start, count;
539 start.resize(ndims, 0);
540 count.resize(ndims, 0);
541 for (size_t i = 0; i < ndims; ++i)
542 {
543 count[i] = this->DimLen[this->VarDims[varid][i]];
544 }
545
546 return get_vars_double(ncid, varid, start.data(), count.data(), nullptr, ip);
547}
548
549void vtkXArrayAccessor::SetDim(const std::vector<std::string>& v)
550{

Callers 4

LoadMetaDataMethod · 0.45
LoadBoundsVariableMethod · 0.45

Calls 3

sizeMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected