From b3bf076c1d3c043601d6325df8396c45721b7e7e Mon Sep 17 00:00:00 2001 From: csendlinger Date: Wed, 24 Jul 2024 10:23:14 +0200 Subject: [PATCH] added to README, updated example config.mk --- README | 6 ++++++ config/config.mk | 15 ++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README b/README index 930e352..d0f6781 100755 --- a/README +++ b/README @@ -19,6 +19,12 @@ in the current working directory. If any library is not available in the system wide include or library path you might have to edit the settings in config/config.mk. +If either HDF5, Jansson or Blitz++ are not available via packages the config/config.mk file includes the option for those libraries to be built on their own during the "make" call. +Therfor the corresponding variable in the config.mk file (i.e. MAKE_BLITZ) has to be set to true. +In that case the include and library paths have to be set correspondingly. +As an example the variables for the blitz++ library are set as if it was compiled via the makefile. +After the missing libraries are compiled the MAKE_* variable can be set to false again. + START OF A SIMULATION: The simulation needs a JSON file that describes the physical and numerical diff --git a/config/config.mk b/config/config.mk index e94f49d..78c615b 100755 --- a/config/config.mk +++ b/config/config.mk @@ -9,6 +9,7 @@ USE_TIMER = false CATCH_DIR = $(HOMEBASE)/external/catch CATCH_INCLUDES = -I$(CATCH_DIR) + # Blitz MAKE_BLITZ = false @@ -29,14 +30,10 @@ HDF5P_LIB_DIR = /usr/lib/x86_64-linux-gnu/hdf5/openmpi/ HDF5P_INCLUDES = -I$(HDF5P_INC_DIR) HDF5P_LIBRARIES = -L$(HDF5P_LIB_DIR) -lz -lhdf5_hl -lhdf5 -# Janson +# Jansson MAKE_JANSSON = false - -JANSON_DIR = $(HOMEBASE)/external/jansson -JANSON_INC_DIR = $(JANSON_DIR) -JANSSON_LIBRARIES = -ljansson + +JANSON_INC_DIR = /usr/include/ +JANSON_LIB_DIR = /usr/lib/x86_64-linux-gnu +JANSSON_LIBRARIES = -L$(JANSON_LIB_DIR) -ljansson JANSSON_INCLUDES = -I$(JANSON_INC_DIR) - - - -