PartMC 2.1.4
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.
integer, parameter dc = dp
 Kind of a double precision complex number.
type(const_t), save const
 Fixed variable for accessing the constant's values.

Detailed Description

Physical constants.


Variable Documentation

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 68 of file constants.F90.

integer,parameter pmc_constants::dc = dp

Kind of a double precision complex number.

Definition at line 14 of file constants.F90.

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

Kind of a double precision real number.

Definition at line 12 of file constants.F90.