ascl_id
stringclasses
752 values
repo_url
stringclasses
737 values
file_path
stringlengths
4
194
content
large_stringlengths
1
1M
language
stringclasses
29 values
license_type
stringclasses
24 values
size
int64
1
1M
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/source/thermodynamics.c
/** @file thermodynamics.c Documented thermodynamics module * * Julien Lesgourgues, 6.09.2010 * * Deals with the thermodynamical evolution. * This module has two purposes: * * - at the beginning, to initialize the thermodynamics, i.e. to * integrate the thermodynamical equations, and store all * thermodyna...
C
null
152,292
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/source/primordial.c
/** @file primordial.c Documented primordial module. * * Julien Lesgourgues, 24.08.2010 * * This module computes the primordial spectra. It can be used in different modes: * simple parametric form, evolving inflaton perturbations, etc. So far only * the mode corresponding to a simple analytic form in terms of amp...
C
null
133,208
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/source/nonlinear.c
/** @file nonlinear.c Documented nonlinear module * * Julien Lesgourgues, 6.03.2014 * * New module replacing an older one present up to version 2.0 The new * module is located in a better place in the main, allowing it to * compute non-linear correction to \f$ C_l\f$'s and not just \f$ P(k)\f$. It will * also be...
C
null
25,716
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/source/output.c
/** @file output.c Documented output module * * Julien Lesgourgues, 26.08.2010 * * This module writes the output in files. * * The following functions can be called from other modules or from the main: * * -# output_init() (must be called after spectra_init()) * -# output_total_cl_at_l() (can be called even be...
C
null
59,242
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/source/lensing.c
/** @file lensing.c Documented lensing module * * Simon Prunet and Julien Lesgourgues, 6.12.2010 * * This module computes the lensed temperature and polarization * anisotropy power spectra \f$ C_l^{X}, P(k), ... \f$'s given the * unlensed temperature, polarization and lensing potential spectra. * * Follows Chal...
C
null
57,950
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/source/input.c
/** @file input.c Documented input module. * * Julien Lesgourgues, 27.08.2010 */ #include "input.h" /** * Use this routine to extract initial parameters from files 'xxx.ini' * and/or 'xxx.pre'. They can be the arguments of the main() routine. * * If class is embedded into another code, you will probably prefer...
C
null
145,771
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/source/perturbations.c
/** @file perturbations.c Documented perturbation module * * Julien Lesgourgues, 23.09.2010 * * Deals with the perturbation evolution. * This module has two purposes: * * - at the beginning; to initialize the perturbations, i.e. to * integrate the perturbation equations, and store temporarily the terms * contr...
C
null
318,466
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/source/background.c
/** @file background.c Documented background module * * * Julien Lesgourgues, 17.04.2011 * * routines related to ncdm written by T. Tram in 2011 * * Deals with the cosmological background evolution. * This module has two purposes: * * - at the beginning, to initialize the background, i.e. to integrate * the...
C
null
90,373
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/source/spectra.c
/** @file spectra.c Documented spectra module * * Julien Lesgourgues, 25.08.2010 * * This module computes the anisotropy and Fourier power spectra * \f$ C_l^{X}, P(k), ... \f$'s given the transfer and Bessel functions * (for anisotropy spectra), the source functions (for Fourier spectra) * and the primordial spe...
C
null
134,810
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/hyperspherical.c
/** @file hyperspherical.c Documented hyperspherical bessel function module. * * Thomas Tram, 11.01.2013 * * This module computes hyperspherical Bessel functions. */ #include "hyperspherical.h" int hyperspherical_HIS_create(int K, double beta, int nl, ...
C
null
61,092
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/quadrature.c
/******************************************/ /* Quadrature Sampling Strategy for CLASS */ /* 10/12 2010 */ /* Thomas Tram */ /******************************************/ #include "quadrature.h" int get_qsampling(double *x, double *w, int *N, int N_max,...
C
null
23,570
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/parser.c
#include "parser.h" int parser_read_file( char * filename, struct file_content * pfc, ErrorMsg errmsg ){ FILE * inputfile; char line[_LINE_LENGTH_MAX_]; int counter; int is_data; FileArg name; FileArg value; class_open(inputfile,filename,"r",errmsg); counter = 0; while (...
C
null
16,456
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/growTable.c
/*** * growTable provides automatically growing tables. */ #include "growTable.h" /*** * gt_init Initialize the growTable. * gt_init will initialize the growTable structure. It must be already allocated. * * Called by background_solve(). */ int gt_init( growTable* self /***< a pointer on an empty growTable *...
C
null
3,698
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/common.c
#include "common.h" void class_protect_sprintf(char* dest, char* tpl,...) { va_list args; va_start(args,tpl); vsnprintf(dest, 2048,tpl,args); va_end(args); } void class_protect_fprintf(FILE* stream, char* tpl,...) { va_list args; char dest[6000]; va_start(args,tpl); vsnprintf(dest, 2048,tpl,args); v...
C
null
678
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/evolver_rkck.c
#include "evolver_rkck.h" int evolver_rk(int (*derivs)(double x, double * y, double * dy, void * parameters_and_workspace, ErrorMsg error_message), double x_ini, double x_end, double * y, int * used_in_output, int y_size, void * parameters_and_workspace_for_d...
C
null
3,982
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/hermite4_interpolation_csource.h
/** Hermite interpolation of order 4 for Phi, dPhi, and d2Phi. When xinterp is sorted (increasing), computations can be reused. On the other hand, for a randomly called value, the routine is not much slower than a routine optimised for this case. The more sorted the vector, the faster the execution time...
C/C++ Header
null
4,899
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/evolver_ndf15.c
/****************************************/ /* Stiff ODE evolver for CLASS */ /* 19/11 2010 */ /* Thomas Tram */ /****************************************/ /* This is an variable order, adaptive stepsize ODE evolver for CLASS. It is based on the Numerical Differentiaion Formulas of order 1-...
C
null
49,263
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/arrays.c
/** * module with tools for manipulating arrays * Julien Lesgourgues, 18.04.2010 */ #include "arrays.h" /** * Called by thermodynamics_init(); perturb_sources(). */ int array_derive( double * array, int n_columns, int n_lines, int index_x, /** from 0 to (n_columns-1) */ int index_y, int index...
C
null
80,829
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/hermite6_interpolation_csource.h
/** Hermite interpolation of order 6 for Phi, dPhi, and d2Phi. When xinterp is sorted (increasing), computations can be reused. On the other hand, for a randomly called value, the routine is not much slower than a routine optimised for this case. The more sorted the vector, the faster the execution time...
C/C++ Header
null
5,749
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/hermite3_interpolation_csource.h
/** Hermite interpolation of order 3 for Phi, dPhi, and d2Phi. When xinterp is sorted (increasing), computations can be reused. On the other hand, for a randomly called value, the routine is not much slower than a routine optimised for this case. The more sorted the vector, the faster the execution time...
C/C++ Header
null
4,785
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/sparse.c
/****************************************/ /* Sparse Matrix algorithms for CLASS */ /* 15/11 2010 */ /* Thomas Tram */ /****************************************/ /* This module is used for solving sparse linear systems, arising when doing Newton iterations in evolve...
C
null
14,432
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/tools/dei_rkck.c
#include "dei_rkck.h" /** * Initialize the integrator * */ int initialize_generic_integrator( int n_dim, struct generic_integrator_workspace * pgi){ /** - Allocate workspace dynamically */ pgi->n = n_dim; class_alloc(pgi->yscal, sizeof(double)*n_dim, pgi->error_message); class_a...
C
null
6,387
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/notebooks/Thomas_PPF.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "%matplotlib inline\n", "import matplotlib\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "from classy import Class" ] }, { "ce...
Jupyter Notebook
null
224,714
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/notebooks/Growth_with_w.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "%matplotlib inline\n", "import matplotlib\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "from classy import Class\n", "from scipy i...
Jupyter Notebook
null
117,223
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/doc/input/chap3.md
CLASS overview (architecture, input/output, general principles) =============================================================== Author: Julien Lesgourgues # Overall architecture of `class` # ## Files and directories ## After downloading `CLASS`, one can see the following files in the root directory contains: - so...
Markdown
null
27,261
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/doc/input/make2.sh
#!/bin/bash cd ../manual/latex make make cp refman.pdf ../CLASS_MANUAL.pdf cd ../../input
Shell
null
94
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/doc/input/mod.md
Updating the manual =================== Author: D. C. Hooper (hooper@physik.rwth-aachen.de) This pdf manual and accompanying web version have been generated using the `doxygen` software (http://www.doxygen.org). This software directly reads the code and extracts the necessary comments to form the manual, meaning it is...
Markdown
null
3,023
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/doc/input/make1.sh
#!/bin/bash doxygen doxyconf cp doxygen.sty ../manual/latex/doxygen.sty
Shell
null
74
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/doc/input/chap2.md
Where to find information and documentation on CLASS? ====================================================== Author: Julien Lesgourgues * __For what the code can actually compute__: all possible input parameters, all coded cosmological models, all functionalities, all observables, etc.: read the file `explanatory.in...
Markdown
null
3,544
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/doc/input/intro.md
CLASS: Cosmic Linear Anisotropy Solving System ============================================== Author: Julien Lesgourgues _This manual is under construction; this is only a provisional version. The definitive version will be made available soon, as well as all the necessary documentation to generate new versions of ...
Markdown
null
7,394
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/doc/input/latex/class.tex
\documentclass{article} \newcommand\CLASS{{\tt CLASS}~} \newcommand\CAMB{{\tt CAMB}~} \begin{document} \title{The Cosmic Linear Anisotropy Solving System (CLASS)} \author{Julien Lesgourgues} %\email{Julien.Lesgourgues@cern.ch} \date{\today} %\affiliation{CERN} \maketitle Where to find information and document...
LaTeX
null
30,259
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/python/interface_generator.py
""" Automatically reads header files to generate an interface """ from __future__ import division, print_function import sys import logging try: from collections import OrderedDict as od except ImportError: try: from ordereddict import OrderedDict as od except ImportError: raise ImportError(...
Python
null
20,191
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/python/autosetup.py
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext import numpy as nm import os import subprocess as sbp import os.path as osp # Recover the gcc compiler GCCPATH_STRING = sbp.Popen( ['gcc', '-print-libgcc-file-name'], stdout=sbp.PIPE).communicate(...
Python
null
1,222
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/python/setup.py
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext import numpy as nm import os import subprocess as sbp import os.path as osp # Recover the gcc compiler GCCPATH_STRING = sbp.Popen( ['gcc', '-print-libgcc-file-name'], stdout=sbp.PIPE).communicate(...
Python
null
1,222
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/python/extract_errors.py
# From the dumped stdout and stderr of a nosetests test_class.py, extract all # the failed steps. # Usage: python extract_errors.py output from __future__ import print_function import sys import os def main(path): """ Create a shorter file containing only the errors from nosetests """ assert os.path....
Python
null
1,664
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/python/test_class.py
""" .. module:: test_class :synopsis: python script for testing CLASS using nose .. moduleauthor:: Benjamin Audren <benjamin.audren@gmail.com> .. credits:: Benjamin Audren, Thomas Tram .. version:: 1.0 This is a python script for testing CLASS and its wrapper Classy using nose. To run the test suite, type nosetest...
Python
null
21,431
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/spectra.h
/** @file spectra.h Documented includes for spectra module */ #ifndef __SPECTRA__ #define __SPECTRA__ #include "transfer.h" /** * Structure containing everything about anisotropy and Fourier power spectra that other modules need to know. * * Once initialized by spectra_init(), contains a table of all * \f$ C_l\f...
C/C++ Header
null
20,604
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/hermite4_interpolation_csource.h
/** Hermite interpolation of order 4 for Phi, dPhi, and d2Phi. When xinterp is sorted (increasing), computations can be reused. On the other hand, for a randomly called value, the routine is not much slower than a routine optimised for this case. The more sorted the vector, the faster the execution time...
C/C++ Header
null
4,899
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/perturbations.h
/** @file perturbations.h Documented includes for perturbation module */ #ifndef __PERTURBATIONS__ #define __PERTURBATIONS__ #include "thermodynamics.h" #include "evolver_ndf15.h" #include "evolver_rkck.h" #define _scalars_ ((ppt->has_scalars == _TRUE_) && (index_md == ppt->index_md_scalars)) #define _vectors_ ((ppt...
C/C++ Header
null
38,209
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/background.h
/** @file background.h Documented includes for background module */ #ifndef __BACKGROUND__ #define __BACKGROUND__ #include "common.h" #include "quadrature.h" #include "growTable.h" #include "arrays.h" #include "dei_rkck.h" #include "parser.h" enum spatial_curvature {flat,open,closed}; /** * All background paramete...
C/C++ Header
null
21,265
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/arrays.h
/** * definitions for module thermodynamics.c */ #ifndef __ARRAYS__ #define __ARRAYS__ #include "common.h" #define _SPLINE_NATURAL_ 0 /**< natural spline: ddy0=ddyn=0 */ #define _SPLINE_EST_DERIV_ 1 /**< spline with estimation of first derivative on both edges */ /** * Boilerplate for C++ */ #ifdef __cplusplus ...
C/C++ Header
null
11,998
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/class.h
#ifndef __CLASS__ #define __CLASS__ /* standard libraries */ #include "stdio.h" #include "stdlib.h" #include "math.h" #include "string.h" #include "float.h" #ifdef _OPENMP #include "omp.h" #endif /* tools for class */ #include "quadrature.h" #include "growTable.h" #include "arrays.h" #include "dei_rkck.h" #include "p...
C/C++ Header
null
607
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/lensing.h
/** @file lensing.h Documented includes for spectra module */ #ifndef __LENSING__ #define __LENSING__ #include "spectra.h" /** * Structure containing everything about lensed spectra that other modules need to know. * * Once initialized by lensing_init(), contains a table of all lensed * \f$ C_l\f$'s for the all ...
C/C++ Header
null
8,837
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/quadrature.h
#ifndef __QSS__ #define __QSS__ #define _MIN_NUMBER_OF_LAGUERRE_POINTS_ 5 /******************************************/ /* Quadrature Sampling Strategy for CLASS */ /* 10/12 2010 */ /* Thomas Tram */ /******************************************/ #include "common.h"...
C/C++ Header
null
3,137
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/transfer.h
/** @file transfer.h Documented includes for transfer module. */ #ifndef __TRANSFER__ #define __TRANSFER__ #include "nonlinear.h" #include "hyperspherical.h" #include <sys/shm.h> #include <sys/stat.h> #include "errno.h" /* macro: test if index_tt is in the range between index and index+num, while the flag is true */...
C/C++ Header
null
29,458
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/hermite3_interpolation_csource.h
/** Hermite interpolation of order 3 for Phi, dPhi, and d2Phi. When xinterp is sorted (increasing), computations can be reused. On the other hand, for a randomly called value, the routine is not much slower than a routine optimised for this case. The more sorted the vector, the faster the execution time...
C/C++ Header
null
4,785
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/evolver_rkck.h
#ifndef __EVO__ #define __EVO__ #include "dei_rkck.h" /**************************************************************/ /** * Boilerplate for C++ */ #ifdef __cplusplus extern "C" { #endif int evolver_rk(int (*derivs)(double x, double * y, double * dy, void * parameters_and_workspace, ...
C/C++ Header
null
1,272
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/parser.h
#ifndef __PARSER__ #define __PARSER__ #include "common.h" #define _LINE_LENGTH_MAX_ 1024 /**< size of the string read in each line of the file (extra characters not taken into account) */ #define _ARGUMENT_LENGTH_MAX_ 1024 /**< maximum size of each argument (name or value), including the final null character */ type...
C/C++ Header
null
2,810
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/evolver_ndf15.h
#ifndef __EVO__ #define __EVO__ #include "common.h" // #include "perturbations.h" #include "sparse.h" #define TINY 1e-50 /**************************************************************/ struct jacobian{ /*Stuff for normal method: */ double **dfdy; double *jacvec; /*Stores experience gained from subsequent calls */ ...
C/C++ Header
null
4,238
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/nonlinear.h
/** @file nonlinear.h Documented includes for trg module */ #include "primordial.h" #ifndef __NONLINEAR__ #define __NONLINEAR__ #define _M_EV_TOO_BIG_FOR_HALOFIT_ 10. /**< above which value of non-CDM mass (in eV) do we stop trusting halofit? */ enum non_linear_method {nl_none,nl_halofit}; /** * Structure contain...
C/C++ Header
null
3,660
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/svnversion.h
#define _SVN_VERSION_ "6142M"
C/C++ Header
null
30
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/thermodynamics.h
/** @file thermodynamics.h Documented includes for thermodynamics module */ #ifndef __THERMODYNAMICS__ #define __THERMODYNAMICS__ #include "background.h" //#include "arrays.h" //#include "helium.h" //#include "hydrogen.h" /** * List of possible recombination algorithms. */ enum recombination_algorithm { recfast...
C/C++ Header
null
23,647
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/sparse.h
#ifndef __SPA__ #define __SPA__ /****************************************/ /* Sparse Matrix algorithms for CLASS */ /* 15/11 2010 */ /* Thomas Tram */ /****************************************/ #include "common.h" /* Structures: */ typedef struct sparse_matrix{ /* ...
C/C++ Header
null
2,428
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/growTable.h
/*** * A table that grows automatically. */ #ifndef __GROWTABLE__ #define __GROWTABLE__ #include "common.h" #define _GT_INITSIZE_ 4096 /**< Init size of a growTable (in bytes)*/ #define _GT_FACTOR_ 2 /**< inflating factor when current max size is reached */ #define _GT_END_ -1 /**< flag meaning the en...
C/C++ Header
null
1,070
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/hyperspherical.h
/** * definitions for module hyperspherical.c */ #ifndef __HYPERSPHERICAL__ #define __HYPERSPHERICAL__ #include "common.h" #define _HYPER_OVERFLOW_ 1e200 #define _ONE_OVER_HYPER_OVERFLOW_ 1e-200 #define _HYPER_SAFETY_ 1e-5 #define _TRIG_PRECISSION_ 1e-7 #define _HYPER_BLOCK_ 8 #define _HYPER_CHUNK_ 16 #define _TWO_...
C/C++ Header
null
10,669
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/primordial.h
/** @file primordial.h Documented includes for primordial module. */ #ifndef __PRIMORDIAL__ #define __PRIMORDIAL__ #include "perturbations.h" /** enum defining how the primordial spectrum should be computed */ enum primordial_spectrum_type { analytic_Pk, two_scales, inflation_V, inflation_H, inflation_V_e...
C/C++ Header
null
21,309
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/dei_rkck.h
#ifndef __DEI__ #define __DEI__ #include "common.h" struct generic_integrator_workspace { int n; double * yscal; double * y; double * dydx; double * yerr; double * ytempo; double * ak2; double * ak3; double * ak4; double * ak5; double * ak6; double * ytemp; double stepmin; /** * ...
C/C++ Header
null
2,705
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/input.h
/** @file input.h Documented includes for input module */ #ifndef __INPUT__ #define __INPUT__ #include "common.h" #include "parser.h" #include "quadrature.h" #include "background.h" #include "thermodynamics.h" #include "perturbations.h" #include "transfer.h" #include "primordial.h" #include "spectra.h" #include "nonl...
C/C++ Header
null
8,879
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/hermite6_interpolation_csource.h
/** Hermite interpolation of order 6 for Phi, dPhi, and d2Phi. When xinterp is sorted (increasing), computations can be reused. On the other hand, for a randomly called value, the routine is not much slower than a routine optimised for this case. The more sorted the vector, the faster the execution time...
C/C++ Header
null
5,749
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/common.h
/** @file common.h Generic libraries, parameters and functions used in the whole code. */ #include "stdio.h" #include "stdlib.h" #include "math.h" #include "string.h" #include "float.h" #include "svnversion.h" #include <stdarg.h> #ifdef _OPENMP #include "omp.h" #endif #ifndef __COMMON__ #define __COMMON__ #define _...
C/C++ Header
null
44,225
[ascl:2307.003]
https://github.com/JulianBMunoz/RelicFast
CLASS_Current/include/output.h
/** @file output.h Documented includes for output module */ #ifndef __OUTPUT__ #define __OUTPUT__ #include "common.h" #include "lensing.h" /** * Maximum number of values of redshift at which the spectra will be * written in output files */ #define _Z_PK_NUM_MAX_ 200 /** * Structure containing various informati...
C/C++ Header
null
6,088
[ascl:2010.015]
https://github.com/thdauser/relxill
README.md
## relxill - Astrophysics local model for Relativistic Reflection Copyright 2022 Thomas Dauser, Remeis Observatory & ECAP ### 1. General The model description and download of released version can be found on the homepage at http://www.sternwarte.uni-erlangen.de/research/relxill/ -- In order to obtain a stable vers...
Markdown
Unknown
1,531
[ascl:2010.015]
https://github.com/thdauser/relxill
CONTRIBUTE.md
# Contributing to the RELXILL model Contributions to `relxill` are very welcome. Below are a few guidelines on how the setup works. General information on the model can be found at https://www.sternwarte.uni-erlangen.de/research/relxill/ If you are looking for a quick start guide, have a look at the README.md. ###...
Markdown
Unknown
5,505
[ascl:2010.015]
https://github.com/thdauser/relxill
.gitlab-ci.yml
# relxill CI jobs before_script: - source /data/software/profile.in - export RELXILL_TABLE_PATH="/userdata/data/dauser/relline_tables" stages: - build - test - deploy build: stage: build script: - make model-stable - make model artifacts: expire_in: 30 min paths: - "relxill_mode...
YAML
Unknown
569
[ascl:2010.015]
https://github.com/thdauser/relxill
CHANGELOG.txt
[2.5] Fixes a bug in the general relativistic weighting of the angle distribution in all relxill models. The details are described in Huang et al. (2025, arXiv:2506.00946). The main effect is for a flat emissivity and large inclination angles (70-80deg). Comparing v2.4 to v2.5 for NuSTAR data of EXO 1846–031 did not sh...
Text
Unknown
6,385
[ascl:2010.015]
https://github.com/thdauser/relxill
CMakeLists.txt
cmake_minimum_required(VERSION 3.15) project(relxill VERSION 2.6) set(PROJECT_ROOT_DIR "-DRELXILL_SOURCE_DIR='\"${CMAKE_SOURCE_DIR}\"'") set(CMAKE_C_STANDARD 11) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -ansi -std=c99 -Wall -Wstrict-prototypes -pedantic ${PROJECT_ROOT_DIR}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -ans...
Text
Unknown
843
[ascl:2010.015]
https://github.com/thdauser/relxill
README.txt
######################################### ##### README of the RELXILL model ##### ######################################### Please read the following instructions carefully in order to ensure a properly working version of the model. Note that this model is designed and tested to be used within the X-ray spectral fit...
Text
Unknown
1,973
[ascl:2010.015]
https://github.com/thdauser/relxill
test/CMakeLists.txt
add_subdirectory(unit) add_subdirectory(speed)
Text
Unknown
48
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/test-relxill.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
2,199
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/tests-extended-source.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
11,911
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/tests-returnrad.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
23,729
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/test-jedsad.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
3,701
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/tests-alpha-model.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
14,725
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/tests-caching.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
2,843
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/common-functions.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
4,267
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/test-stdfunctions.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
9,540
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/tests-execmodel.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
6,988
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/tests-iongrad.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
6,762
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/test-xilltab.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
9,102
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/CMakeLists.txt
## testing setup (find_package(Catch2 REQUIRED) needs catch2 to be installed in gitlab) set(CATCH2_FILES catch2/catch_amalgamated.cpp catch2/catch_amalgamated.cpp) set(UNIT_TEST_FILES_CPP test-cppspectrum.cpp tests-execmodel.cpp common-functions.cpp common-functions.h tests-returnrad.cpp test-s...
Text
Unknown
1,254
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/test-rellp.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
7,241
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/test-cppspectrum.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
2,140
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/tests-bbody-returnrad.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
14,858
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/tests.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
814
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/common-functions.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
1,620
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/tests-bbody-returnrad.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
912
[ascl:2010.015]
https://github.com/thdauser/relxill
test/unit/catch2/catch_amalgamated.cpp
// Copyright Catch2 Authors // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // https://www.boost.org/LICENSE_1_0.txt) // SPDX-License-Identifier: BSL-1.0 // Catch v3.0.0-preview.4 // Generated: 2022-01-03 23:14:23.198909 // --...
C++
Unknown
350,586
[ascl:2010.015]
https://github.com/thdauser/relxill
test/speed/speed_test_jedsad.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
1,544
[ascl:2010.015]
https://github.com/thdauser/relxill
test/speed/subs_speed_test.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
1,310
[ascl:2010.015]
https://github.com/thdauser/relxill
test/speed/CMakeLists.txt
set(EXEC_FILES speed_test speed_test_jedsad) foreach (execfile ${EXEC_FILES}) add_executable(${execfile} ${execfile}.cpp subs_speed_test.cpp subs_speed_test.h) target_link_libraries(${execfile} PUBLIC ${EXTRA_LIBS}) target_link_libraries(${execfile} PUBLIC m cfitsio fftw3) tar...
Text
Unknown
527
[ascl:2010.015]
https://github.com/thdauser/relxill
test/speed/subs_speed_test.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
2,143
[ascl:2010.015]
https://github.com/thdauser/relxill
test/speed/speed_test.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
2,363
[ascl:2010.015]
https://github.com/thdauser/relxill
.idea/modules.xml
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="ProjectModuleManager"> <modules> <module fileurl="file://$PROJECT_DIR$/.idea/relxill.iml" filepath="$PROJECT_DIR$/.idea/relxill.iml" /> <module fileurl="file://$PROJECT_DIR$/.idea/relxill2.iml" filepath="$PROJECT_DIR$/.idea/...
XML
Unknown
377
[ascl:2010.015]
https://github.com/thdauser/relxill
.idea/vcs.xml
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="VcsDirectoryMappings"> <mapping directory="$PROJECT_DIR$" vcs="Git" /> </component> </project>
XML
Unknown
180
[ascl:2010.015]
https://github.com/thdauser/relxill
.idea/editor.xml
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="BackendCodeEditorSettings"> <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CDeclarationWithImplicitIntType/@EntryIndexedValue" value="WARNING" type="string" /> <option name="/Default/CodeInspection/Highligh...
XML
Unknown
39,143
[ascl:2010.015]
https://github.com/thdauser/relxill
.idea/misc.xml
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="CMakePythonSetting"> <option name="pythonIntegrationState" value="YES" /> </component> <component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" /> <component name="JavaScriptSettings"> <option name="languageLevel" value="E...
XML
Unknown
352
[ascl:2010.015]
https://github.com/thdauser/relxill
.idea/dictionaries/thomas.xml
<component name="ProjectDictionaryState"> <dictionary name="thomas"> <words> <w>anynul</w> <w>cfitsio</w> <w>colnum</w> <w>emis</w> <w>extver</w> <w>gitignore</w> <w>nrad</w> <w>nspin</w> <w>nullval</w> <w>prec</w> <w>rebinned</w> <w>relline<...
XML
Unknown
507
[ascl:2010.015]
https://github.com/thdauser/relxill
.idea/codeStyles/codeStyleConfig.xml
<component name="ProjectCodeStyleConfiguration"> <state> <option name="USE_PER_PROJECT_SETTINGS" value="true" /> </state> </component>
XML
Unknown
142
[ascl:2010.015]
https://github.com/thdauser/relxill
.idea/codeStyles/Project.xml
<component name="ProjectCodeStyleConfiguration"> <code_scheme name="Project" version="173"> <Objective-C> <option name="INDENT_NAMESPACE_MEMBERS" value="0" /> <option name="INDENT_C_STRUCT_MEMBERS" value="2" /> <option name="INDENT_CLASS_MEMBERS" value="2" /> <option name="INDENT_VISIBILIT...
XML
Unknown
1,536
[ascl:2010.015]
https://github.com/thdauser/relxill
.idea/runConfigurations/test_relreturn.xml
<component name="ProjectRunConfigurationManager"> <configuration default="false" name="test_relreturn" type="CMakeRunConfiguration" factoryName="Application" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" WORKING_DIR="file://$PROJECT_DIR$/cmake-build-debug" PASS_PARENT_ENVS_2="true" PROJECT_NAME=...
XML
Unknown
787