setup_teardown.c File Reference

Documented read_input module. More...

#include "header.h"
#include "read_input.h"
Include dependency graph for setup_teardown.c:

Functions

void initialize (char *argv[], struct initialize_struct *init_struct)
 Initialize the path to the required directories,and the interpolator of the SFR(M,z) from tabulated data provided in gb.SFR_filename. More...
 
void cleanup (struct Cosmology *Cx)
 Free the memory allocated to cosmology structure and SFR interpolator. More...
 

Detailed Description

Documented read_input module.

Documented setup_teardown module, including the initialize and clean functions that are called first and last thing in limHaloPT package.

This module provides utilityy functions to read the .ini file

Alberto Vallinotto, April 4th 2022

Azadeh Moradinezhad Dizgah & Alberto Vallinotto, April 4th 2022

Function Documentation

◆ cleanup()

void cleanup ( struct Cosmology Cx)

Free the memory allocated to cosmology structure and SFR interpolator.

Returns
void
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize()

void initialize ( char *  argv[],
struct initialize_struct *  init_struct 
)

Initialize the path to the required directories,and the interpolator of the SFR(M,z) from tabulated data provided in gb.SFR_filename.


Read in the .ini file and set the values of parameters.

The global structure "gb" have several elements to hold the paths to project source directory, input, and output folders, and values of cosmological parmaeters.

Returns
void

Commment out to see the names, values and numerical values of the parameters read from .ini file.

Save the values of input parmaeters to global structure or init_struct. The latter is returned as the output of the initialize() function.

Cosmological parameters corresponding to initial conditions of HiddenValley (HV) simulations

3.0665

Here is the call graph for this function:
Here is the caller graph for this function: