CAMP 1.0.0
Chemistry Across Multiple Phases
Data Types | Variables
camp_constants Module Reference

Physical constants. More...

Data Types

type  const_t
 Physical constants. More...
 

Variables

integer, parameter sp = kind(0.0)
 Kind of a single precision real number.
 
integer, parameter sc = sp
 Kind of a single precision complex number.
 
integer, parameter dp = kind(0.d0)
 Kind of a double precision real number.
 
integer, parameter dc = dp
 Kind of a double precision complex number.
 
integer, parameter i_kind = kind(1)
 Kind of an integer.
 
type(const_t), save const
 Fixed variable for accessing the constant's values.
 

Detailed Description

Physical constants.

Variable Documentation

◆ const

type(const_t), save camp_constants::const

Fixed variable for accessing the constant's values.

To access a constant in a subroutine you should use camp_constants and then the constant value is accessed with const%pi or similar. Note that the type is called const_t (with a trailing _t) but the single saved variable to access them is just called const.

Definition at line 77 of file constants.F90.

◆ dc

integer, parameter camp_constants::dc = dp

Kind of a double precision complex number.

Definition at line 18 of file constants.F90.

◆ dp

integer, parameter camp_constants::dp = kind(0.d0)

Kind of a double precision real number.

Definition at line 16 of file constants.F90.

◆ i_kind

integer, parameter camp_constants::i_kind = kind(1)

Kind of an integer.

Definition at line 21 of file constants.F90.

◆ sc

integer, parameter camp_constants::sc = sp

Kind of a single precision complex number.

Definition at line 14 of file constants.F90.

◆ sp

integer, parameter camp_constants::sp = kind(0.0)

Kind of a single precision real number.

Definition at line 12 of file constants.F90.