!> !> @file ex6.f90 !> !> @brief Simple read dataset created by pex1 with "getarr" !> !> @copyright !> Copyright (©) 2021 EPFL (Ecole Polytechnique Fédérale de Lausanne) !> SPC (Swiss Plasma Center) !> !> futils is free software: you can redistribute it and/or modify it under !> the terms of the GNU Lesser General Public License as published by the Free !> Software Foundation, either version 3 of the License, or (at your option) !> any later version. !> !> futils is distributed in the hope that it will be useful, but WITHOUT ANY !> WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS !> FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. !> !> You should have received a copy of the GNU Lesser General Public License !> along with this program. If not, see . !> !> @authors !> (in alphabetical order) !> @author Trach-Minh Tran !> PROGRAM main ! ! Simple read dataset created by pex1 with "getarr" ! USE futils IMPLICIT NONE CHARACTER(len=32) :: file='para.h5' CHARACTER(len=32) :: name='/array_col' INTEGER, PARAMETER :: nx=10, ny=10 INTEGER :: fid, i DOUBLE PRECISION, DIMENSION(nx,ny) :: array !=========================================================================== ! CALL openf(file, fid) CALL getarr(fid, name, array) ! DO i=1,nx WRITE(*,'(10f5.0)') array(i,:) END DO ! CALL closef(fid) END PROGRAM main