Commit 6b036103 authored by Carsten Lemmen's avatar Carsten Lemmen
Browse files

fix: use MOSSCO without fabm if not libmossco_fabm exists

parent d01be12f
......@@ -44,17 +44,6 @@ endif
LIBS+= -L$(SCHISM_BUILD_DIR)/lib -lhydro -lcore
LIBS+= -lparmetis -lmetis
ifneq ($(wildcard $(SCHISM_BUILD_DIR)/lib/libfabm.a),)
LIBS+= -lfabm_schism -lfabm
F90FLAGS+= "-DUSE_FABM -fallow-argument-mismatch"
$(info Using SCHISM compiled with FABM library)
endif
# Build library dependencies for core SCHISM, then metis and optionally fabm,
# then add MOSSCO libs depending on installation directory
LIBS+= -L$(SCHISM_BUILD_DIR)/lib -lhydro -lcore
LIBS+= -lparmetis -lmetis
ifneq ($(wildcard $(SCHISM_BUILD_DIR)/lib/libfabm.a),)
LIBS+= -lfabm_schism -lfabm
$(info Using SCHISM compiled with FABM library)
......@@ -62,9 +51,17 @@ F90FLAGS+= -DUSE_FABM
endif
ifneq ($(wildcard $(MOSSCO_INSTALL_PREFIX)/lib/libmossco.a),)
LIBS+= -L$(MOSSCO_INSTALL_PREFIX)/lib -lmossco -lmossco_fabm
LIBS+= -L$(MOSSCO_INSTALL_PREFIX)/lib -lmossco
else
LIBS+= -L$(MOSSCO_DIR)/lib -lmossco -lmossco_fabm
LIBS+= -L$(MOSSCO_DIR)/lib -lmossco
endif
ifneq ($(wildcard $(MOSSCO_INSTALL_PREFIX)/lib/libmossco_fabm.a),)
LIBS+= -lmossco_fabm
else
ifneq ($(wildcard $(MOSSCO_DIR)/lib/libmossco_fabm.a),)
LIBS+= -lmossco_fabm
endif
endif
F90FLAGS+= -I$(SCHISM_BUILD_DIR)/include
......
toplevel_component.schism--grid.F90
\ No newline at end of file
toplevel_component.schism--aggregation.F90
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment