Skip to content

Commit

Permalink
Merge pull request #497 from cpinte/master
Browse files Browse the repository at this point in the history
(mcfost) Fixing Makefile
  • Loading branch information
danieljprice committed Feb 6, 2024
2 parents 91a2fef + fdd5317 commit 3b7e53f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ ifeq ($(MCFOST), yes)
else
#--otherwise assume the source code is lying around somewhere
MCFOST_LIBS = $(MCFOST_INSTALL)/lib/$(FC)
HDF5_DIR = $(MCFOST_LIBS)
MCFOST_INCLUDE = $(MCFOST_INSTALL)/include
ifeq ("X$(MCFOST_LIB)","X")
MCFOST_LIB = $(MCFOST_DIR)/src
Expand All @@ -148,7 +149,6 @@ ifeq ($(MCFOST), yes)
LDFLAGS+= -I$(MCFOST_INCLUDE) -I$(MCFOST_INCLUDE)/voro++ -I$(MCFOST_INCLUDE)/hdf5 -I$(MCFOST_INCLUDE)/$(FC) \
-L$(MCFOST_LIB) -lmcfost -L$(MCFOST_LIBS) $(LIBCXX) -lcfitsio -lvoro++ -lsprng \
-L$(HDF5_DIR) -lhdf5_fortran -lhdf5 -lz #$(LXGBOOST)
#-L$(HDF5_DIR)/lib/Intel -lhdf5_fortran
endif

include Makefile_systems
Expand Down Expand Up @@ -491,7 +491,7 @@ ifdef METRIC
else
SRCMETRIC= metric_minkowski.f90
endif
SRCGR=inverse4x4.f90 einsteintk_utils.f90 $(SRCMETRIC) metric_tools.f90 utils_gr.f90 interpolate3D.f90 tmunu2grid.f90
SRCGR=inverse4x4.f90 einsteintk_utils.f90 $(SRCMETRIC) metric_tools.f90 utils_gr.f90 interpolate3D.f90 tmunu2grid.f90
#
# chemistry and cooling
#
Expand Down Expand Up @@ -998,7 +998,7 @@ phantom2mcfost: checkmcfost
ANALYSISBIN=$@ ANALYSISONLY=yes LDFLAGS="-L$(MCFOST_DIR)/src -lmcfost $(LIBCXX)"

analysis_mcfost.o: analysis_mcfost.f90
$(FC) -c $(FFLAGS) -I$(MCFOST_INCLUDE) $< -o $@
$(FC) -c $(FFLAGS) -I$(MCFOST_INCLUDE) -I$(MCFOST_DIR)/src $< -o $@

analysis_mcfost.o: checkmcfost

Expand Down

0 comments on commit 3b7e53f

Please sign in to comment.