-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update NetCDF comp/link #336
Changes from all commits
e3d24a5
4cf48e7
17e3295
868ca8c
bfc1f03
3e4f764
8b1d62e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,7 @@ | |
case $WWATCH3_NETCDF in | ||
NC3) libs="$libs -L$NETCDF_LIBDIR -lnetcdf" ;; | ||
NC4) if [ "$mpi_mod" = 'no' ]; then comp="`$NETCDF_CONFIG --fc`"; fi | ||
libs="$libs `$NETCDF_CONFIG --flibs`" ;; | ||
libs="$libs `$NETCDF_CONFIG --flibs` `$NETCDF_CONFIG --libs`" ;; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the netcdf-fortran library is correctly compiled, all the needed dependencies are defined in --flibs. |
||
esac | ||
fi | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,8 @@ COUPLE = $(WWATCH3_DIR)/../regtests/ww3_tp2.14/input/oasis3-mct | |
ARCHDIR = $(WWATCH3_DIR)/../regtests/ww3_tp2.14/work_oasis3-mct | ||
# | ||
# NetCDF library | ||
NETCDF_INCLUDE = $(shell $(NETCDF_CONFIG) --includedir) | ||
NETCDF_LIBRARY = $(shell $(NETCDF_CONFIG) --flibs) | ||
NETCDF_INCLUDE = $(shell $(NETCDF_CONFIG) --cflags) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. --cflags is for c-compiler |
||
NETCDF_LIBRARY = $(shell $(NETCDF_CONFIG) --flibs) $(shell $(NETCDF_CONFIG) --libs) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the netcdf-fortran library is correctly compiled, all the needed dependencies are defined in --flibs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mickaelaccensi we have an issue now to make the manual specifically say nc-config consistently: #392 and any other checks to make sure things are working for everyone are welcome. Sorry this got pushed through while you were out and is now causing issues. |
||
# | ||
# Compilers and options | ||
MAKE = gmake | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--cflags is for c-compiler
for fortran-compiler, it must be --fflags to be used