Choral
Data Types | Modules | Functions/Subroutines | Variables
real_type.F90 File Reference

Go to the source code of this file.

Data Types

interface  real_type::r_1d
 R_1D: this type will allow to define arrays of 1D real arrays. More...
 
interface  real_type::r_2d
 R_2D: this type will allow to define arrays of 2D real arrays. More...
 
interface  real_type::clear
 destructor More...
 
interface  real_type::r_1d
 R_1D: this type will allow to define arrays of 1D real arrays. More...
 
interface  real_type::r_2d
 R_2D: this type will allow to define arrays of 2D real arrays. More...
 
interface  real_type::print
 short description for real arrays More...
 
interface  real_type::equal
 Test real equality. More...
 
interface  real_type::re
 conversion integers or rational to real More...
 
interface  real_type::allocmem
 allocate memory for real(RP) arrays More...
 
interface  real_type::freemem
 deallocate memory for real(RP) arrays More...
 

Modules

module  real_type
  REAL NUMBERS PRECISION IN CHORAL: selects simple/double/quad
 

Functions/Subroutines

subroutine real_type::r_1d_clear (r)
 Destructor. More...
 
subroutine real_type::r_2d_clear (r)
 Destructor. More...
 
type(r_1d) function real_type::r_1d_create (n)
 constructor More...
 
type(r_2d) function real_type::r_2d_create (n1, n2)
 constructor More...
 
subroutine real_type::r2d_print (x)
 print short informations More...
 
subroutine real_type::alloc_ra1d (p, n)
 allocate a one-dimensional real allocatable array More...
 
subroutine real_type::alloc_ra2d (p, n1, n2)
 allocate a two-dimensional real allocatable array More...
 
subroutine real_type::alloc_ra3d (p, n1, n2, n3)
 allocate a 3-dimensional real allocatable array More...
 
subroutine real_type::free_ra1d (p)
 de-allocate a one-dimensional real allocatable array More...
 
subroutine real_type::free_ra2d (p)
 de-allocate a 2-dimensional real allocatable array More...
 
subroutine real_type::free_ra3d (p)
 de-allocate a 3-dimensional real allocatable array More...
 
logical function real_type::real_equal (u, v)
  Check real equality More...
 
real(rp) function real_type::rf (n, d)
 Conversion of rational fraction n/d –> real(RP) More...
 
real(rp) function real_type::ri (n)
 Conversion integer –> real(RP) More...
 

Variables

integer, parameter, public real_type::sp = selected_real_kind(6, 37)
 simple precision for real numbers More...
 
integer, parameter, public real_type::dp = selected_real_kind(12)
 double precision for real numbers More...
 
integer, parameter real_type::tp = selected_real_kind(17)
 triple precision for real numbers More...
 
integer, parameter real_type::qp = selected_real_kind(32)
 quadruple precision for real numbers More...
 
integer, parameter, public real_type::rp = DP
 real(kind=RP) = real precision in the code REAL_TOL = epsilon to test real equality More...
 
real(rp), parameter, public real_type::real_tol = 1E-14_RP
 
real(rp), parameter, public real_type::pi =3.1415926535897932384626433832795028_RP
 REAL CONSTANT Pi. More...