Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flexpart
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin Püschel
Flexpart
Commits
94106e26
Commit
94106e26
authored
7 years ago
by
Gerald Klinkl
Browse files
Options
Downloads
Patches
Plain Diff
Update Makefile to work with environment modules
parent
efd26ca6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
flexpart_code/grib2nc4/Makefile
+11
-23
11 additions, 23 deletions
flexpart_code/grib2nc4/Makefile
with
11 additions
and
23 deletions
flexpart_code/grib2nc4/Makefile
+
11
−
23
View file @
94106e26
FC
=
gfortran
FC
=
gfortran
# Location of FLEXPART source directory
# Location of FLEXPART source directory
FLEXPART_SRC
=
..
FLEXPART_SRC
=
..
GRIBAPI
=
/opt/grib-api
HDF5
=
/opt/hdf5-1.8.16
NETCDFF
=
/opt/netcdf-fortran-4.4.3
NETCDF
=
/opt/netcdf-c-4.4.0
#GRIBAPI = /usr/local/grib-api
#HDF5 = /usr/local/hdf5-1.8.16
#NETCDFF = /usr/local/netcdf-fortran-4.4.3
#NETCDF = /usr/local/netcdf-c-4.4.0
BINARY
=
grib2nc4
BINARY
=
grib2nc4
CMP_BINARY
=
nc4cmp
CMP_BINARY
=
nc4cmp
OBJS
=
processmetfields.o verttransform_grib2nc4_ecmwf.o verttransform_grib2nc4_gfs.o
OBJS
=
processmetfields.o verttransform_grib2nc4_ecmwf.o verttransform_grib2nc4_gfs.o
FPMODOBJS
=
par_mod.o com_mod.o class_vtable_mod.o cmapf_mod.o conv_mod.o
FPMODOBJS
_
=
par_mod.o com_mod.o class_vtable_mod.o cmapf_mod.o conv_mod.o
FLXPRTOBJS
=
detectformat.o grib2check.o shift_field_0.o gridcheck.o
\
FLXPRTOBJS
_
=
detectformat.o grib2check.o shift_field_0.o gridcheck.o
\
readwind.o readwind_nests.o calcpar.o calcpar_nests.o
\
readwind.o readwind_nests.o calcpar.o calcpar_nests.o
\
shift_field.o pbl_profile.o scalev.o obukhov.o
\
shift_field.o pbl_profile.o scalev.o obukhov.o
\
richardson.o ew.o getvdep.o calcpv.o obukhov_gfs.o
\
richardson.o ew.o getvdep.o calcpv.o obukhov_gfs.o
\
...
@@ -31,20 +19,20 @@ FLXPRTOBJS = detectformat.o grib2check.o shift_field_0.o gridcheck.o \
...
@@ -31,20 +19,20 @@ FLXPRTOBJS = detectformat.o grib2check.o shift_field_0.o gridcheck.o \
calcpar_gfs.o verttransform_gfs.o gridcheck_gfs.o
calcpar_gfs.o verttransform_gfs.o gridcheck_gfs.o
VPATH
=
${
FLEXPART_SRC
}
# VPATH = ${FLEXPART_SRC}
FFLAGS
=
-mcmodel
=
medium
FPMODOBJS
=
$(
FPMODOBJS_:%
=
$(
FLEXPART_SRC
)
/%
)
FLXPRTOBJS
=
$(
FLXPRTOBJS_:%
=
$(
FLEXPART_SRC
)
/%
)
INCLUDES_NETCDF
=
-I
${
NETCDFF
}
/include
INCPATH
=
-I
$(
PREFIX
)
/include
INCLUDES
=
-I
${
GRIBAPI
}
/include
${
INCLUDES_NETCDF
}
-I
${
FLEXPART_SRC
}
LIBPATH
=
-L
$(
PREFIX
)
/lib
FFLAGS
=
-O2
-mcmodel
=
medium
$(
INCPATH
)
-I
$(
FLEXPART_SRC
)
### NetCDF link flags - use the first one for dynamic libs, the second
### NetCDF link flags - use the first one for dynamic libs, the second
### one for static libs
### one for static libs
LDFLAGS_NETCDF
=
-L
${
NETCDFF
}
/lib
-lnetcdff
-L
${
NETCDF
}
/lib
-lnetcdf
###
LDFLAGS_NETCDF = -L${NETCDFF}/lib -lnetcdff -L${NETCDF}/lib -lnetcdf
#LDFLAGS_NETCDF=-static -L${NETCDFF}/lib -lnetcdff -L${NETCDF}/lib -lnetcdf -lnetcdf -L${HDF5}/lib -lhdf5_fortran -lhdf5_hl -lhdf5hl_fortran -lhdf5 -ldl -lz
#LDFLAGS_NETCDF=-static -L${NETCDFF}/lib -lnetcdff -L${NETCDF}/lib -lnetcdf -lnetcdf -L${HDF5}/lib -lhdf5_fortran -lhdf5_hl -lhdf5hl_fortran -lhdf5 -ldl -lz
### LDFLAGS = -L${GRIBAPI}/lib -lgrib_api_f90 -lgrib_api ${LDFLAGS_NETCDF} -ljasper -L${FLEXPART_SRC}
LDFLAGS
=
$(
FFLAGS
)
$(
LIBPATH
)
$(
LIBPATH1
)
-lgrib_api_f90
-lgrib_api
-ljasper
-lnetcdff
-lnetcdf
-lnetcdf
-lhdf5_hl
-lhdf5
-ldl
-lm
-lcurl
LDFLAGS
=
-L
${
GRIBAPI
}
/lib
-lgrib_api_f90
-lgrib_api
${
LDFLAGS_NETCDF
}
-ljasper
-L
${
FLEXPART_SRC
}
#------------ Creating the binary ------------------
#------------ Creating the binary ------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment