Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinfan1996 committed Dec 22, 2023
1 parent d337e85 commit 5e5886c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions include/ccl_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,46 +23,57 @@ typedef struct ccl_physical_constants {
* Lightspeed / H0 in units of Mpc/h (from CODATA 2014)
*/
double CLIGHT_HMPC;

/**
* Newton's gravitational constant in units of m^3/Kg/s^2
*/
double GNEWT;

/**
* Solar mass in units of kg (from GSL)
*/
double SOLAR_MASS;

/**
* Mpc to meters (from PDG 2013)
*/
double MPC_TO_METER;

/**
* pc to meters (from PDG 2013)
*/
double PC_TO_METER;

/**
* Rho critical in units of M_sun/h / (Mpc/h)^3
*/
double RHO_CRITICAL;

/**
* Boltzmann constant in units of J/K
*/
double KBOLTZ;

/**
* Stefan-Boltzmann constant in units of kg/s^3 / K^4
*/
double STBOLTZ;

/**
* Planck's constant in units kg m^2 / s
*/
double HPLANCK;

/**
* The speed of light in m/s
*/
double CLIGHT;

/**
* Electron volt to Joules convestion
*/
double EV_IN_J;

/**
* neutrino mass splitting differences
* See Lesgourgues and Pastor, 2012 for these values.
Expand Down
3 changes: 1 addition & 2 deletions pyccl/_core/parameters/parameters_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class PhysicalConstants(CCLParameters, instance=lib.cvar.constants,
freeze=True):
"""Instances of this class hold the physical constants."""
PI = 3.14_15_92_65_35_89_79_32

# ~~ ASTRONOMICAL CONSTANTS ~~ #
# Astronomical Unit, unit conversion (m/au). [exact]
AU = 149_597_870_800
Expand Down Expand Up @@ -184,7 +184,6 @@ class PhysicalConstants(CCLParameters, instance=lib.cvar.constants,
DELTAM13_sq_neg = -2.43e-3



spline_params = SplineParams()
gsl_params = GSLParams()
physical_constants = PhysicalConstants()

0 comments on commit 5e5886c

Please sign in to comment.