29 #include "sll_assert.h"
30 #include "sll_working_precision.h"
61 character(len=*),
intent(in) :: filename
62 sll_int32,
intent(out) :: file_id
63 sll_int32,
intent(out) :: error
68 do 100 file_id = 20, 99
69 inquire (unit=file_id, opened=lopen)
73 open (file_id, status=
'SCRATCH', err=100)
74 close (file_id, status=
'DELETE', err=100)
84 inquire (file=filename, opened=lopen)
85 sll_assert_always(.not. lopen)
106 sll_int32,
intent(in) :: file_id
107 sll_int32,
intent(out) :: error
109 close (file_id, iostat=error)
115 sll_int32,
intent(in) :: file_id
116 sll_int32,
intent(out) :: error
117 sll_real64,
intent(in) :: array
118 write (file_id, iostat=error) array
123 sll_int32,
intent(in) :: file_id
124 sll_int32,
intent(out) :: error
125 sll_real64,
intent(in) :: array(:)
126 write (file_id, iostat=error) array
131 sll_int32,
intent(in) :: file_id
132 sll_int32,
intent(out) :: error
133 sll_real64,
intent(in) :: array(:, :)
134 write (file_id, iostat=error) array
139 sll_int32,
intent(in) :: file_id
140 sll_int32,
intent(out) :: error
141 sll_real64,
intent(in) :: array(:, :, :)
142 write (file_id, iostat=error) array
147 sll_int32,
intent(in) :: file_id
148 sll_int32,
intent(out) :: error
149 sll_real64,
intent(out) :: array
150 read (file_id, iostat=error) array
155 sll_int32,
intent(in) :: file_id
156 sll_int32,
intent(out) :: error
157 sll_real64,
intent(out) :: array(:, :)
158 read (file_id, iostat=error) array
Write a nD array in a binary file.
Implements the functions to write binary file to store heavy data.
subroutine, public sll_s_binary_write_array_1d(file_id, array, error)
Write a 1D array in the binary file file_id.
subroutine, public sll_s_binary_read_array_0d(file_id, array, error)
Read a 0D array in the binary file file_id.
subroutine sll_s_binary_write_array_3d(file_id, array, error)
Write a 3D array in the binary file file_id.
subroutine, public sll_s_binary_write_array_2d(file_id, array, error)
Write a 2D array in the binary file file_id.
subroutine, public sll_s_binary_write_array_0d(file_id, array, error)
Write a 0D array in the binary file file_id.
subroutine, public sll_s_binary_read_array_2d(file_id, array, error)
Read a 2D array in the binary file file_id.
subroutine, public sll_s_binary_file_close(file_id, error)
Open binary file.
subroutine, public sll_s_binary_file_create(filename, file_id, error)
Create binary file.