Report Typos and Errors    
Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
sll_k_hdf5_ser_read_array.F90
Go to the documentation of this file.
1 integer(hsize_t) :: array_dims(rank)
2 integer(hid_t) :: dataset_id
3 
4 array_dims = int(shape(array), hsize_t)
5 
6 ! Open existing dataset
7 call h5dopen_f(handle%file_id, dsetname, dataset_id, error)
8 sll_assert_always(error == 0)
9 
10 ! Read dataset into array
11 call h5dread_f(dataset_id, datatype, array, array_dims, error)
12 sll_assert_always(error == 0)
13 
14 ! Close dataset
15 call h5dclose_f(dataset_id, error)
16 sll_assert_always(error == 0)
    Report Typos and Errors