git clone https://github.com/sgridsource/sgrid.gitCopy the file MyConfig into the newly created sgrid directory.
Type:
cd sgrid make git_clone
git clone https://github.com/wofti/Packages.git
Type:
cd Packages/dctemplates_extBlasLapack make
DFLAGS += -DUMFPACK SPECIALINCS += -I/usr/include/suitesparse SPECIALLIBS += -lumfpack -lamd -lblas
The DFLAGS line says that we want to use the UMFPACK library. The SPECIALLIBS lines after that simply describe what libraries we want to compile in for that. Of course this only works if they are actually installed. To install them either download and compile SuiteSparse (which among many other things contains UMFPACK and AMD), or follow Packages/forUMFPACK/Note.txt to compile only UMFPACK and AMD. If you are on Linux you can also just install the develepment version of SuiteSparse with your package manager, e.g. on Debian Linux just install the package libsuitesparse-dev.
There is also the section:
DFLAGS += -DTEMPLATES TEMPLATESDIR = /home/wolf/Packages/dctemplates_extBlasLapack SPECIALLIBS += -L$(TEMPLATESDIR) -literatortemplates SPECIALLIBS += -lblas -llapackThe DFLAGS line says that we want to use the TEMPLATES library. The lines after that describe where this library is, and what libraries we want to compile in. The TEMPLATES library needs to be first downloaded, and then compiled (see above).
Similary we need the GSL library:
DFLAGS += -DGSL SPECIALLIBS += -lgsl -lgslcblas
In order to make new initial data for binary neutron stars we need the GSL and both UMFPACK and TEMPLATES. In this case the lapack and blas libraries also need to be installed. An example MyConfig for this case is in sgrid/doc/MyConfig.example. Yet, if we just need to read in already created data, with e.g. the initial data reader in Athena++, BAM, Cactus or Nmesh, all the DFLAGS and SPECIALLIBS lines shown above can be commented out, because none of these libraries are needed. In this case one probaly wants to use the Sgrid library, which can be built using the simpilfied sgrid/doc/MyConfig.DNSlibsgrid.
See Compile Notes for more details about compiling and MyConfig variables such as SPECIALLIBS. Read the Library Notes to find out more about compiling on supercomputers such as FAU's Athene.