Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
|
Collection of functions/subroutines operating on files and strings.
Functions/Subroutines | |
subroutine, public | sll_s_remove_file (filename) |
Remove file (dangerous function!) More... | |
subroutine, public | sll_s_read_file (filename, str) |
Read whole file content into allocatable string. More... | |
logical function, public | sll_f_check_equal_files (filename1, filename2) |
logical function, public | sll_f_check_empty_file (filename) |
Return True if file is empty, False otherwise. More... | |
subroutine, public | sll_s_ints_to_string (ints, str) |
Write an array of integers to a single string: . Numbers are separated by a blank space; . String is allocated here with minimum length. More... | |
subroutine, public | sll_s_split_path (path, head, tail) |
Split path into head (directory) and tail (file) More... | |
subroutine, public | sll_s_read_data_real_array (filename, data) |
Read data from file to real array. More... | |
subroutine, public | sll_s_concatenate_filename_and_path (filename, otherfile, filepath) |
Concatenate filename and path where path is extracted from another file name Example use: call sll_s_concatenate_filename_and_path( 'reference.dat', FILE, filepath) More... | |
logical function, public sll_m_io_utilities::sll_f_check_empty_file | ( | character(len=*), intent(in) | filename | ) |
Return True if file is empty, False otherwise.
Definition at line 103 of file sll_m_io_utilities.F90.
logical function, public sll_m_io_utilities::sll_f_check_equal_files | ( | character(len=*), intent(in) | filename1, |
character(len=*), intent(in) | filename2 | ||
) |
subroutine, public sll_m_io_utilities::sll_s_concatenate_filename_and_path | ( | character(len=*), intent(in) | filename, |
character(len=*), intent(in) | otherfile, | ||
character(len=*), intent(out) | filepath | ||
) |
Concatenate filename and path where path is extracted from another file name Example use: call sll_s_concatenate_filename_and_path( 'reference.dat', FILE, filepath)
[in] | filename | name of the file (without path) |
[in] | otherfile | file name with path of another file in same folder |
[out] | filepath | filename with path |
Definition at line 212 of file sll_m_io_utilities.F90.
subroutine, public sll_m_io_utilities::sll_s_ints_to_string | ( | integer(kind=i32), dimension(:), intent(in) | ints, |
character(len=:), intent(out), allocatable | str | ||
) |
Write an array of integers to a single string: . Numbers are separated by a blank space; . String is allocated here with minimum length.
Definition at line 118 of file sll_m_io_utilities.F90.
subroutine, public sll_m_io_utilities::sll_s_read_data_real_array | ( | character(len=*), intent(in) | filename, |
real(kind=f64), dimension(:), intent(out) | data | ||
) |
Read data from file to real array.
Definition at line 193 of file sll_m_io_utilities.F90.
subroutine, public sll_m_io_utilities::sll_s_read_file | ( | character(len=*), intent(in) | filename, |
character(len=:), intent(out), allocatable | str | ||
) |
Read whole file content into allocatable string.
Definition at line 50 of file sll_m_io_utilities.F90.
subroutine, public sll_m_io_utilities::sll_s_remove_file | ( | character(len=*), intent(in) | filename | ) |
Remove file (dangerous function!)
Definition at line 38 of file sll_m_io_utilities.F90.
subroutine, public sll_m_io_utilities::sll_s_split_path | ( | character(len=*), intent(in) | path, |
character(len=*), intent(out) | head, | ||
character(len=*), intent(out) | tail | ||
) |
Split path into head (directory) and tail (file)
Definition at line 159 of file sll_m_io_utilities.F90.