|
|
The KKRSusc program is interfaced with an older version of KKRImp. In the code package, the source code for that version of KKRImp is included along with the separate susceptibility solver. Both the solver and the impurity code have to be compiled for KKRSusc to work.
|
|
|
# Prepare for running the KKRsusc program
|
|
|
|
|
|
## Source code for KKRsusc program
|
|
|
|
|
|
### Common code version
|
|
|
|
|
|
* [Download recent code package](kkrsusc/download)
|
|
|
|
|
|
### Compile solver
|
|
|
|
|
|
First unzip the tar-file. Inside the resulting folder, you will find the solver_module_v2 and SOURCE directories. The solver has to be compiled first. Enter the solver directory and create a directory /obj
|
|
|
$ mkdir obj
|
|
|
|
|
|
Then compile the code with:
|
|
|
...
|
|
|
$make
|
|
|
...
|
|
|
This will prepare the solver files to be interfaced with KKRImp.
|
|
|
|
|
|
### Compile KKRIMP
|
|
|
|
|
|
For KKRSusc, two different versions of the code are needed, one compiled in parallel and one in serial. For that reason create two folders by coping /SOURCE to /SOURCE_MPI and /SOURCE_SERIAL (the names do not matter).
|
|
|
Enter SOURCE_MPI and link /obj from the solver directory to mod_obj using:
|
|
|
...
|
|
|
$ ln -s ../solver_module_v2/obj mod_obj
|
|
|
...
|
|
|
Then compile the code with:
|
|
|
...
|
|
|
$make mpi
|
|
|
...
|
|
|
Do the same for SOURCE_SERIAL but use :
|
|
|
|
|
|
...
|
|
|
[USER@SOMEWHERE/SOURCE_SERIAL]`$ make`
|
|
|
...
|
|
|
|
|
|
for the compilation. Done!
|
|
|
|
|
|
```
|
|
|
[USER@SOMEWHERE SUSC_CODE_DIRECTORY]$ make
|
|
|
```
|
|
|
at your terminal.
|
|
|
|
|
|
Type *make debug* to create a (slower) version that does additional
|
|
|
checks (e.g. to trace back bugs etc.).
|
|
|
|
|
|
Type *make clean* to delete all object and module files.
|
|
|
|
|
|
Type *make cleanx* to delete all object and module files as well as all executables (\*.x).
|
|
|
|
|
|
## Main files
|
|
|
|
|
|
* [inpsusc.dat](kkrsusc/inpsusc)
|
|
|
* [outsusc.dat](kkrsusc/outsusc)
|
|
|
* [input.selfe](kkrsusc/input_selfe)
|
|
|
|
|
|
## Special files
|
|
|
|
|
|
* [excorr.krnl](kkrsusc/excorr_krnl) (contains the [exchange and correlation Kernel](exchange_and_correlation_Kernel))
|
|
|
* [gridpoints_dsusc.dat](kkrsusc/gridpoints_dsusc) (contains the grid points for the susceptibility fit)
|
|
|
* [run.iff402](kkrsusc/run.iff402) (script for the cluster iff402 that performs the monkey work for you) |