
sources/:
---------
- contains everything needed to install all relevant libraries for Gadget4
- simply choose the installation path (DESTINATION), set here to ./build/, and
- type ./install-all.sh

-> that process might take a few hours: best to run overnight!

build/:
-------
- all libraries are installed into the same place for simplicity


INSTALLATION GUIDE:
===================
external libraries:
-------------------
The standard procedure would be to install each of the 4 libraries individually and by hand, but as this really is an annoying process I myself generated a shell script 'install-all.sh' that takes care of the whole thing (they also need to be installed in a proper order and not randomly). That master shell script itself calls the 'sub-scripts' install-LIBRARY.sh. To properly use 'install-all.sh' you need to open the file with a text editor (I always use vi). But the only thing you need to change is the shell variable with the name DESTINATION: there you need to provide the absolute path where to install all libraries. In my case it is 

/Users/aknebe/Office/Source/Simulation/gadget/Gadget4/libraries/build/

That means inside of this 'build/' directory all relevant files from the libraries will be placed. I designed it that way so that it is easy to remove all of this at once: if you delete 'build/' all will be gone without any trace :-) This type of installation does therefore not interfere with any system-wide installation. But the whole installation might take several hours!


Gadget4:
--------
Once you have the libraries installed, the next step is to compile Gadget4 in 'gadget4/'. But that requires to tell the compiler where to find these newly installed libraries. On top of that, you also need to specify that you want to use the newly installed mpicc compiler for the actual compilation. That is accomplished by editing 

gadget4/buildsystem/Makefile.comp.gcc
gadget4/buildsystem/Makefile.gen.libs

From looking at these files it should be clear how to set things properly...

But one more thing: during the compilation Python is used, too! Therefore you need to set in the master makefile

gadget4/Makefile

the variable PYTHON correctly.


