Compilation

Because Fortran language is used, one has to compile the source code into an executable before any calculation can be started. This is accomplished with make utility. Moreover, if you got a fresh copy of the package, you will probable need to adjust architecture file, i.e. do installation. Assuming, the installation is done, the compilation can be started in the terminal

[build] make

Here it is assumed that current directory is build/, where the Makefiles were generated and arch.inc file is put.

If one knows which executable must be compiled (for instance tddft), then this can be specified as argument in the make command.
In this case, only tddft will be compiled.

[build] make tddft

If one owns a multi-core machine, then compilation can be accelerated, compiling independent modules in parallel. The option -j causes parallel compilation

[trunk>] make tddft_iter -j

If one stands outside trunk/, one still can start compilation of the programs. The option -C causes a change of current directory before compilation. The path to directory trunk/ must be specified after -C option

[>] make -C ../../../trunk/ tddft_iter -j

FAQ

Q: During compilation I got error Fatal Error: Can't open module file 'm_
A: The problem is most likely in the dependencies.inc The file contains description of module dependencies and probable got to be corrected (or updated?) The solution would be to regenerate the Makefiles by a provided script. Let's assume you are in a directory trunk which has a sub directory build

cd build
python ../detect_deps.py -C ..
make
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License