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 SuiteSparse yourself, or if you are 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. But if we just need to read in already created data with e.g. the data reader in BAM, Cactus or Nmesh all these lines can be commented out, because none of these libraries are needed.
There are now 2 versions of neutron star initial data in Sgrid. The old private one is called BNSdata and the new public one DNSdata. The new DNSdata can create higher mass and spin configurations, and may also run faster. So it should be preferred. Note that DNSdata also requires the project EoS_T0.