NuMFor 9f2ab49 (2024-04-08)
Numerical (Modern) Fortran. Library for Simple Numerical computing
|
save_array Stores an 1D or 2D array to file or stdout More...
Public Member Functions | |
subroutine | save_array1d (x, ncols, fname, fmt, header, unit) |
subroutine | save_array2d (x, fname, fmt, header, unit) |
save_array Stores an 1D or 2D array to file or stdout
Examples:
subroutine save_array1d | ( | real(dp), dimension(:), intent(in) | x, |
integer, intent(in), optional | ncols, | ||
character(len=*), intent(in), optional | fname, | ||
character(len=*), intent(in), optional | fmt, | ||
character(len=*), intent(in), optional | header, | ||
integer, intent(in), optional | unit ) |
[in] | x | Array to store |
[in] | ncols | Number of columns to write. Default 1 |
[in] | fname | Filename. Default: stdout |
[in] | fmt | String with format. Default 'g0.5' for each data |
[in] | header | If present, text to write before data. |
[in] | unit | If the file is already open, the unit at which it is associated. |
References basic::print_msg().
subroutine save_array2d | ( | real(dp), dimension(:, :), intent(in) | x, |
character(len=*), intent(in), optional | fname, | ||
character(len=*), intent(in), optional | fmt, | ||
character(len=*), intent(in), optional | header, | ||
integer, intent(in), optional | unit ) |
[in] | x | Array to store |
[in] | fname | Filename. Default: stdout |
[in] | fmt | String with format. Default 'g0.5' for each data |
[in] | header | If present, text to write before data. |
[in] | unit | If the file is already open, the unit at which it is associated. |
References basic::print_msg().