Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mossco
mossco-code
Commits
6b036103
Commit
6b036103
authored
Mar 11, 2022
by
Carsten Lemmen
Browse files
fix: use MOSSCO without fabm if not libmossco_fabm exists
parent
d01be12f
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/esmf/schism/Makefile
View file @
6b036103
...
...
@@ -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
...
...
examples/esmf/schism/toplevel_component.F90
View file @
6b036103
toplevel_component
.
schism
--
grid
.
F90
\ No newline at end of file
toplevel_component
.
schism
--
aggregation
.
F90
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment