The code computes the polarization degree of radiation from a plane-parallel slab in the diffusion approximation for a pure scattering atmosphere.
You may use either numerical solution of the coupled system of radiative transfer
equations as defined in Pomraning (1973) or Monte Carlo method.
The code computes the spectropolarimetric properties of radiation undergoing electron scattering in a plane-parallel slab.
One may use either a numerical solution of the coupled system of radiative transfer equations, as defined in Pomraning (1973), or a Monte Carlo method. The latter approach is better suited for computations at high electron temperatures, for which the Klein–Nishina cross-section provides more accurate results.
The following third-party libraries are required for compilation
@@ -10,10 +11,12 @@ The following third-party libraries are required for compilation
2) CFITIO library
3) MPI library
As these packages may be installed in non-default folders, it is necessary to define some environment variables. These variables tell the compiler and linker where to find the library files and their headers needed to build the code.
Library headers are files ending in .h that contain definitions needed to use the library in the code.
As these packages may be installed in non-default folders, it is necessary
to define some enviroment variables pointing to library headers and shared object.
These enviroment variables, read by the Makefile at compilation step, are:
Shared objects (.so) or static libraries (.a) are files containing the compiled library code used by the program at runtime (shared) or at compile-time (static).
These environment variables are read by the Makefile at the compilation step. The required variables are:
LIB_CFITSIO
HEADERS_CFITSIO
@@ -24,7 +27,19 @@ HEADERS_GSL
LIB_MPI
HEADERS_MPI
Each of them must point to the associated library and to the folder with header files, respectively.
While you can set these variables in each terminal session, it is recommended to define them once and for all in your shell initialization files:
For Bash: add the export commands to your ~/.bashrc or ~/.profile
For C shell (csh/tcsh): add the setenv commands to your ~/.cshrc or ~/.tcshrc
This way, the variables are automatically set every time you open a new terminal, and you won’t need to define them manually each time.