PartMC  2.6.1
Data Types | Variables
pmc_constants Module Reference

Physical constants. More...

Data Types

type  const_t
 Physical constants. More...
 

Variables

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

Detailed Description

Physical constants.

Variable Documentation

◆ const

type(const_t), save pmc_constants::const

Fixed variable for accessing the constant's values.

To access a constant in a subroutine you should use pmc_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 73 of file constants.F90.

◆ dc

integer, parameter pmc_constants::dc = dp

Kind of a double precision complex number.

Definition at line 14 of file constants.F90.

◆ dp

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

Kind of a double precision real number.

Definition at line 12 of file constants.F90.

◆ i_kind

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

Kind of an integer.

Definition at line 17 of file constants.F90.