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
# Prepare for running the KKRsusc program
## Source code for KKRsusc program
## Source code for KKRsusc program
...
@@ -6,10 +7,29 @@
...
@@ -6,10 +7,29 @@
*[Download recent code package](kkrsusc/download)
*[Download recent code package](kkrsusc/download)
### Compile
### 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 :
$ make
for the compilation. Done!
After you unzipped the tar-file to a folder SUSC_CODE_DIRECTORY, you
are able to generate a standard executable (kkrselfe.x) by typing: