Skip to content

Compute_g1

Dominique Delande edited this page Sep 16, 2022 · 7 revisions

The example is in the directory test/g1 with the parameter file params_g1_2d.dat.

The script prop/compute_prop.py can be used to propagate in time an initial state and can compute the g1 function.

I strongly recommend to use it from a directory which is not the one of the and-python repository (e.g. obtained using git).

Suppose you have created your local git repository by cloning the main one:

git clone git@github-and-python:delande/and-python.git

or created a local copy by any method you like, in the directory ~/git/and-python. Then, you copy the parameter file in a local directory:

cd your_local_directory

cp ~/git/and-python/prop/params_g1_2d.dat .

Then, the script can be simply ran using the command:

python ~/git/and-python/prop/compute_prop.py params_g1_2d.dat

or, if you want to use MPI:

mpiexec -n NN python ~/git/and-python/prop/compute_prop.py params_g1_2d.dat

where NN is the number of cores for the parallel computation.

If you have the message:

Warning, no chebyshev C library found, this uses the slow Python version!

this means that you do not use the fast C versions for some computations. This will of course slow down the calculation. If you are on a LKB machine, you should probably try to load the intel module using:

module load intel

and rerun the script.

Clone this wiki locally