Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flex Extract
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Flexpart
Flex Extract
Commits
f2fdf455
Commit
f2fdf455
authored
6 years ago
by
pesei
Browse files
Options
Downloads
Patches
Plain Diff
fortran makefiles debug and fast, grib_api
parent
ee06999d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/fortran/makefile_debug
+62
-0
62 additions, 0 deletions
source/fortran/makefile_debug
source/fortran/makefile_fast
+62
-0
62 additions, 0 deletions
source/fortran/makefile_fast
with
124 additions
and
0 deletions
source/fortran/makefile_debug
0 → 100644
+
62
−
0
View file @
f2fdf455
###############################################################################
#
# Makefile for flex_extract, Fortran code to calculate etadot
#
# Copyright: Leopold Haimberger, Petra Seibert
# SPDX-License-Identifier: GPL-2.0
#
# Version for a machine with grib_api installed on standard paths
# full debugging
#
###############################################################################
GRIB_API_INCLUDE_DIR=/usr/include
GRIB_API_LIB= -Bstatic -lgrib_api_f77 -lgrib_api_f90 -lgrib_api -Bdynamic -lm -ljasper
EMOSLIB=-lemosR64
LIB = $(GRIB_API_LIB) $(EMOSLIB)
F90 = gfortran -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore -ffixed-line-length-132 -fopenmp -fconvert=big-endian
F90FLAGS = -I. -I$(GRIB_API_INCLUDE_DIR)
OPT = -g -fbacktrace -fbounds-check
BINDIR = .
EXE = calc_etadot_debug.out
.f.o:
$(F90) -c $(F90FLAGS) $(OPT) $*.f
.f90.o:
$(F90) -c $(F90FLAGS) $(OPT) $*.f90
all: ${EXE}
clean:
rm *.o *.mod #${EXE}
preconvert.o: preconvert.f90
$(F90) -c $(OPT) $(F90FLAGS) preconvert.f90
phgrreal.o: phgrreal.f
$(F90) -c $(OPT) phgrreal.f
rwGRIB2.o: rwGRIB2.f90
$(F90) -c $(OPT) $(F90FLAGS) rwGRIB2.f90
grphreal.o: grphreal.f
$(F90) -c $(OPT) grphreal.f
ftrafo.o: ftrafo.f
$(F90) -c $(OPT) ftrafo.f
$(BINDIR)/${EXE}: phgrreal.o grphreal.o ftrafo.o rwGRIB2.o posnam.o preconvert.o
$(F90) $(OPT) -o $(BINDIR)/${EXE} ftrafo.o phgrreal.o grphreal.o rwGRIB2.o posnam.o preconvert.o ${LIB}
###############################################################################
#
# End of the Makefile
#
###############################################################################
This diff is collapsed.
Click to expand it.
source/fortran/makefile_fast
0 → 100644
+
62
−
0
View file @
f2fdf455
###############################################################################
#
# Makefile for flex_extract, Fortran code to calculate etadot
#
# Copyright: Leopold Haimberger, Petra Seibert
# SPDX-License-Identifier: GPL-2.0
#
# Version for a machine with grib_api installed on standard paths
# compiled for fast runs
#
###############################################################################
GRIB_API_INCLUDE_DIR=/usr/include
GRIB_API_LIB= -Bstatic -lgrib_api_f77 -lgrib_api_f90 -lgrib_api -Bdynamic -lm -ljasper
EMOSLIB=-lemosR64
LIB = $(GRIB_API_LIB) $(EMOSLIB)
F90 = gfortran -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore -ffixed-line-length-132 -fopenmp -fconvert=big-endian
F90FLAGS = -I. -I$(GRIB_API_INCLUDE_DIR)
OPT = -O3
BINDIR = .
EXE = calc_etadot_fast.out
.f.o:
$(F90) -c $(F90FLAGS) $(OPT) $*.f
.f90.o:
$(F90) -c $(F90FLAGS) $(OPT) $*.f90
all: ${EXE}
clean:
rm *.o *.mod #${EXE}
preconvert.o: preconvert.f90
$(F90) -c $(OPT) $(F90FLAGS) preconvert.f90
phgrreal.o: phgrreal.f
$(F90) -c $(OPT) phgrreal.f
rwGRIB2.o: rwGRIB2.f90
$(F90) -c $(OPT) $(F90FLAGS) rwGRIB2.f90
grphreal.o: grphreal.f
$(F90) -c $(OPT) grphreal.f
ftrafo.o: ftrafo.f
$(F90) -c $(OPT) ftrafo.f
$(BINDIR)/${EXE}: phgrreal.o grphreal.o ftrafo.o rwGRIB2.o posnam.o preconvert.o
$(F90) $(OPT) -o $(BINDIR)/${EXE} ftrafo.o phgrreal.o grphreal.o rwGRIB2.o posnam.o preconvert.o ${LIB}
###############################################################################
#
# End of the Makefile
#
###############################################################################
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