Choral
Data Types | Functions/Subroutines | Variables
basic_tools Module Reference

BASIC TOOLS More...

Data Types

interface  allocmem
 allocate memory for allocatable arrays More...
 
interface  freemem
 deallocate memory fo allocatable arrays More...
 

Functions/Subroutines

subroutine, public inttostring (str, ii)
 convert an integer to a string More...
 
double precision function, public clock ()
  Returns the internal clock time More...
 
subroutine, public quit (message)
 Stop program execution, display an error messahe. More...
 
subroutine, public warning (message, verb)
 Warning message. More...
 
subroutine alloc_ia1d (p, n)
 allocate a one-dimensional integer allocatable array More...
 
subroutine alloc_la1d (p, n)
 allocate a one-dimensional logical allocatable array More...
 
subroutine alloc_ia2d (p, n1, n2)
 allocate a 2-dimensional integer allocatable array More...
 
subroutine free_ia1d (p)
 de-allocate a one-dimensional integer allocatable array More...
 
subroutine free_ia2d (p)
 de-allocate a 2-dimensional integer allocatable array More...
 
subroutine free_la1d (p)
 de-allocate a one-dimensional logical allocatable array More...
 

Variables

external clockget
 

Detailed Description

BASIC TOOLS

Author
Charles Pierre

Function/Subroutine Documentation

◆ alloc_ia1d()

subroutine basic_tools::alloc_ia1d ( integer, dimension(:), allocatable  p,
integer, intent(in)  n 
)
private

allocate a one-dimensional integer allocatable array

Definition at line 145 of file basic_tools.F90.

Here is the call graph for this function:

◆ alloc_ia2d()

subroutine basic_tools::alloc_ia2d ( integer, dimension(:,:), allocatable  p,
integer, intent(in)  n1,
integer, intent(in)  n2 
)
private

allocate a 2-dimensional integer allocatable array

Definition at line 179 of file basic_tools.F90.

Here is the call graph for this function:

◆ alloc_la1d()

subroutine basic_tools::alloc_la1d ( logical, dimension(:), allocatable  p,
integer, intent(in)  n 
)
private

allocate a one-dimensional logical allocatable array

Definition at line 162 of file basic_tools.F90.

Here is the call graph for this function:

◆ clock()

double precision function, public basic_tools::clock ( )

Returns the internal clock time

  • Output:
    • time: double precision real

Definition at line 94 of file basic_tools.F90.

◆ free_ia1d()

subroutine basic_tools::free_ia1d ( integer, dimension(:), allocatable  p)
private

de-allocate a one-dimensional integer allocatable array

Definition at line 197 of file basic_tools.F90.

Here is the call graph for this function:

◆ free_ia2d()

subroutine basic_tools::free_ia2d ( integer, dimension(:,:), allocatable  p)
private

de-allocate a 2-dimensional integer allocatable array

Definition at line 211 of file basic_tools.F90.

Here is the call graph for this function:

◆ free_la1d()

subroutine basic_tools::free_la1d ( logical, dimension(:), allocatable  p)
private

de-allocate a one-dimensional logical allocatable array

Definition at line 227 of file basic_tools.F90.

Here is the call graph for this function:

◆ inttostring()

subroutine, public basic_tools::inttostring ( character(len=*), intent(out)  str,
integer, intent(in)  ii 
)

convert an integer to a string

Definition at line 42 of file basic_tools.F90.

Here is the call graph for this function:

◆ quit()

subroutine, public basic_tools::quit ( character(len=*), intent(in)  message)

Stop program execution, display an error messahe.

Parameters
[in]messageerror message

Definition at line 106 of file basic_tools.F90.

◆ warning()

subroutine, public basic_tools::warning ( character(len=*), intent(in)  message,
integer, intent(in)  verb 
)

Warning message.

  • display a warning message if verb>0
  • stop program execution if the variable NOWARN has been set to 1 in choral/CONFIG.in
Parameters
[in]messagewarning message
[in]verbverbosity

Definition at line 125 of file basic_tools.F90.

Variable Documentation

◆ clockget

double precision external basic_tools::clockget
private

Definition at line 17 of file basic_tools.F90.