Octopus
loct_oct_m Module Reference

System information (time, memory, sysname) More...

Detailed Description

System information (time, memory, sysname)

Data Types

interface  loct_break_c_string
 
interface  loct_clock
 
interface  loct_get_memory_usage
 
interface  loct_gettimeofday
 
interface  loct_nanosleep
 
interface  loct_number_of_lines
 File-handling. More...
 
interface  loct_wfs_list
 Varia. More...
 

Functions/Subroutines

subroutine, public loct_print_recipe (dir, filename)
 
character(kind=c_char, len=1) function, dimension(len_trim(f_string)+1), private string_f_to_c (f_string)
 convert a Fortran string to a C string More...
 
subroutine string_c_to_f (c_string, f_string)
 convert a C string to a Fortran string More...
 
subroutine, public loct_progress_bar (a, maxcount)
 A wrapper around the progress bar, such that it can be silenced without needing to dress the call with an if statement throughout the code. More...
 
logical function, public loct_isinstringlist (a, s)
 
subroutine, public loct_mkdir (name)
 
subroutine, public loct_rm (name)
 
subroutine, public loct_sysname (name)
 
logical function, public loct_dir_exists (dirname)
 
subroutine, public loct_getenv (var, val)
 
subroutine, public loct_strerror (errno, res)
 
subroutine, public loct_search_file_lr (freq, tag, ierr, dirname)
 
subroutine, public loct_executable_path (fpath)
 
subroutine, public loct_dirname (path, dir)
 

Variables

logical, public show_progress_bar = .true.
 Define which routines can be seen from the outside. More...
 

Function/Subroutine Documentation

◆ loct_print_recipe()

subroutine, public loct_oct_m::loct_print_recipe ( character(len=*), intent(in)  dir,
character(len=*), intent(inout)  filename 
)

Definition at line 215 of file loct.F90.

◆ string_f_to_c()

character(kind=c_char,len=1) function, dimension(len_trim(f_string) + 1), private loct_oct_m::string_f_to_c ( character(len=*), intent(in)  f_string)
private

convert a Fortran string to a C string

Note
Calling this function with 'trim(f_string)' as argument causes problems with ifort

Definition at line 239 of file loct.F90.

◆ string_c_to_f()

subroutine loct_oct_m::string_c_to_f ( character(kind=c_char,len=1), dimension(*), intent(in)  c_string,
character(len=*), intent(out)  f_string 
)
private

convert a C string to a Fortran string

Definition at line 257 of file loct.F90.

◆ loct_progress_bar()

subroutine, public loct_oct_m::loct_progress_bar ( integer, intent(in)  a,
integer, intent(in)  maxcount 
)

A wrapper around the progress bar, such that it can be silenced without needing to dress the call with an if statement throughout the code.

Parameters
[in]aIteration number, between 1 and maxcount
[in]maxcountMax number of iterations

Definition at line 275 of file loct.F90.

◆ loct_isinstringlist()

logical function, public loct_oct_m::loct_isinstringlist ( integer, intent(in)  a,
character(len=*), intent(in)  s 
)

Definition at line 287 of file loct.F90.

◆ loct_mkdir()

subroutine, public loct_oct_m::loct_mkdir ( character(len=*), intent(in)  name)

Definition at line 303 of file loct.F90.

◆ loct_rm()

subroutine, public loct_oct_m::loct_rm ( character(len=*), intent(in)  name)

Definition at line 317 of file loct.F90.

◆ loct_sysname()

subroutine, public loct_oct_m::loct_sysname ( character(len=*), intent(inout)  name)

Definition at line 331 of file loct.F90.

◆ loct_dir_exists()

logical function, public loct_oct_m::loct_dir_exists ( character(len=*), intent(in)  dirname)

Definition at line 348 of file loct.F90.

◆ loct_getenv()

subroutine, public loct_oct_m::loct_getenv ( character(len=*), intent(in)  var,
character(len=*), intent(inout)  val 
)

Definition at line 363 of file loct.F90.

◆ loct_strerror()

subroutine, public loct_oct_m::loct_strerror ( integer, intent(in)  errno,
character(len=*), intent(inout)  res 
)

Definition at line 383 of file loct.F90.

◆ loct_search_file_lr()

subroutine, public loct_oct_m::loct_search_file_lr ( real(real64), intent(inout)  freq,
integer, intent(in)  tag,
integer, intent(out)  ierr,
character(len=*), intent(in)  dirname 
)

Definition at line 403 of file loct.F90.

◆ loct_executable_path()

subroutine, public loct_oct_m::loct_executable_path ( character(len=*), intent(inout)  fpath)

Definition at line 424 of file loct.F90.

◆ loct_dirname()

subroutine, public loct_oct_m::loct_dirname ( character(len=*), intent(in)  path,
character(len=*), intent(inout)  dir 
)

Definition at line 441 of file loct.F90.

Variable Documentation

◆ show_progress_bar

logical, public loct_oct_m::show_progress_bar = .true.

Define which routines can be seen from the outside.

System information (time, memory, sysname)

Definition at line 149 of file loct.F90.