CLASS MANUAL
common.h File Reference
#include "stdio.h"
#include "stdlib.h"
#include "math.h"
#include "string.h"
#include "float.h"
#include "svnversion.h"
#include <stdarg.h>
#include "precisions.h"
+ Include dependency graph for common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  precision
 

Enumerations

enum  evolver_type
 
enum  pk_def { delta_m_squared , delta_tot_squared , delta_bc_squared , delta_tot_from_poisson_squared }
 
enum  file_format
 

Detailed Description

Generic libraries, parameters and functions used in the whole code.


Data Structure Documentation

◆ precision

struct precision

All precision parameters.

Includes integrations steps, flags telling how the computation is to be performed, etc.

Data Fields
double smallest_allowed_variation

machine-dependent, assigned automatically by the code

ErrorMsg error_message

zone for writing error messages

Enumeration Type Documentation

◆ evolver_type

parameters related to the precision of the code and to the method of calculation list of evolver types for integrating perturbations over time

◆ pk_def

enum pk_def

List of ways in which matter power spectrum P(k) can be defined. The standard definition is the first one (delta_m_squared) but alternative definitions can be useful in some projects.

Enumerator
delta_m_squared 

normal definition (delta_m includes all non-relativistic species at late times)

delta_tot_squared 

delta_tot includes all species contributions to (delta rho), and only non-relativistic contributions to rho

delta_bc_squared 

delta_bc includes contribution of baryons and cdm only to (delta rho) and to rho

delta_tot_from_poisson_squared 

use delta_tot inferred from gravitational potential through Poisson equation

◆ file_format

Different ways to present output files