Report Typos and Errors    
Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
Functions/Subroutines
sll_m_io_utilities Module Reference

Description

Collection of functions/subroutines operating on files and strings.

Authors
Yaman Güçlü - yaman.nosp@m..guc.nosp@m.lu@gm.nosp@m.ail..nosp@m.com
Todo:
Add detailed description

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...
 

Function/Subroutine Documentation

◆ sll_f_check_empty_file()

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.

◆ sll_f_check_equal_files()

logical function, public sll_m_io_utilities::sll_f_check_equal_files ( character(len=*), intent(in)  filename1,
character(len=*), intent(in)  filename2 
)

Definition at line 86 of file sll_m_io_utilities.F90.

Here is the call graph for this function:

◆ sll_s_concatenate_filename_and_path()

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)

Parameters
[in]filenamename of the file (without path)
[in]otherfilefile name with path of another file in same folder
[out]filepathfilename with path

Definition at line 212 of file sll_m_io_utilities.F90.

◆ sll_s_ints_to_string()

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.

Here is the caller graph for this function:

◆ sll_s_read_data_real_array()

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.

◆ sll_s_read_file()

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.

Here is the caller graph for this function:

◆ sll_s_remove_file()

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.

◆ sll_s_split_path()

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.

    Report Typos and Errors