63 Node3D(
double x,
double y,
double z )
74 std::vector< int >& tstep_nums,
75 std::vector< ReadNC::VarData >& vdatas,
76 std::vector< ReadNC::VarData >& vsetdatas );
93 std::string& attString,
94 std::vector< int >& attLen );
136 for(
unsigned int i = 0; i < 6; i++ )
159 std::vector< int >& tstep_nums );
165 template <
typename T >
166 void kji_to_jik(
size_t ni,
size_t nj,
size_t nk,
void* dest, T* source )
168 size_t nik = ni * nk, nij = ni * nj;
169 T* tmp_data =
reinterpret_cast< T*
>( dest );
170 for( std::size_t j = 0; j != nj; j++ )
171 for( std::size_t i = 0; i != ni; i++ )
172 for( std::size_t k = 0; k != nk; k++ )
173 tmp_data[j * nik + i * nk + k] = source[k * nij + j * ni + i];
225 std::vector< int >& tstep_nums ) = 0;
226 #ifdef MOAB_HAVE_PNETCDF
227 virtual ErrorCode read_ucd_variables_to_nonset_async( std::vector< ReadNC::VarData >& vdatas,
228 std::vector< int >& tstep_nums ) = 0;
231 std::vector< int >& tstep_nums ) = 0;
237 template <
typename T >
240 std::size_t idxInSource = 0;
243 T* tmp_data =
reinterpret_cast< T*
>( dest );
246 std::size_t size_range = pair_iter->second - pair_iter->first + 1;
247 std::size_t nik = size_range * nk, nij = size_range * nj;
248 for( std::size_t j = 0; j != nj; j++ )
249 for( std::size_t i = 0; i != size_range; i++ )
250 for( std::size_t k = 0; k != nk; k++ )
251 tmp_data[idxInSource + j * nik + i * nk + k] =
252 source[idxInSource + k * nij + j * size_range + i];
253 idxInSource += ( size_range * nj * nk );