- Timestamp:
- Mar 6, 2020, 2:42:24 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- b0ecdb2
- Parents:
- 0a1d827 (diff), 5868d74 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- Source/Fortran
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Fortran/makefile_cray
rdfa7dbd r4d68c4a 1 1 ############################################################################### 2 2 # 3 # Top level Makefile for ECMWFDATA7.0 software 3 # Makefile for flex_extract, Fortran code to calculate etadot 4 # Makefile created using by mkmf 19.3.0 4 5 # 5 # Last modified: December 1, 2015 6 # Copyright: Leopold Haimberger, Petra Seibert 7 # SPDX-License-Identifier: GPL-2.0 8 # 9 # Version for a machine with eccodes and emoslib installed on standard paths 10 # with optimisation 6 11 # 7 12 ############################################################################### 8 13 9 14 10 .SUFFIXES: .o .c .c~ .f .f~ .F90 .f90 .f90~ .f95 .f95~ .F .F~ .y .y~ .l .l~ \ 11 .s .s~ .sh .sh~ .h .h~ .C .C~ .a 15 EXE = calc_etadot 12 16 13 OPT = 14 DEBUG = -g 15 LIB = $(GRIB_API_LIBS) $(EMOSLIB) 17 LIB = $(ECCODES_LIB) $(EMOSLIB) 18 INC = -I. -I$(ECCODES_INCLUDE_DIR) 16 19 17 FC=ftn $(F90FLAGS) 18 F90C=ftn $(F90FLAGS) 20 FC = ftn 19 21 20 FFLAGS = $(OPT) -I. -r8 -I$(GRIB_API_INCLUDE_DIR) 21 F90FLAGS = $(OPT) -I. -r8 -I$(GRIB_API_INCLUDE_DIR) 22 23 LDFLAGS = $(OPT) 24 25 BINDIR = . 26 22 OPT = -O3 23 FFLAGS = -s real64 $(OPT) $(LIB) $(INC) 24 LDFLAGS = $(OPT) -fopenmp 27 25 EXE = calc_etadot 28 26 29 30 27 .f.o: 31 $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f 32 .f90.o: 33 $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f90 28 SRC = ./rwgrib2.f90 ./calc_etadot.f90 ./ftrafo.f90 ./grphreal.f90 ./posnam.f90 ./phgrreal.f90 29 OBJ = rwgrib2.o calc_etadot.o ftrafo.o grphreal.o posnam.o phgrreal.o 30 MOD = ftrafo.mod grtoph.mod phtogr.mod rwgrib2.mod 34 31 35 32 all: ${EXE} 36 33 37 clean: 38 rm *.o *.mod ${EXE} 34 ftrafo.o: ./ftrafo.f90 phgrreal.o 35 $(FC) $(FFLAGS) -c ./ftrafo.f90 36 grphreal.o: ./grphreal.f90 phgrreal.o 37 $(FC) $(FFLAGS) -c ./grphreal.f90 38 phgrreal.o: ./phgrreal.f90 39 $(FC) $(FFLAGS) -c ./phgrreal.f90 40 posnam.o: ./posnam.f90 41 $(FC) $(FFLAGS) -c ./posnam.f90 42 calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o 43 $(FC) $(FFLAGS) -c ./calc_etadot.f90 44 rwgrib2.o: ./rwgrib2.f90 45 $(FC) $(FFLAGS) -c ./rwgrib2.f90 39 46 40 phgrreal.o: phgrreal.f 41 $(F90C) -c -g -O3 phgrreal.f47 clean: 48 -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot 42 49 43 grphreal.o: grphreal.f 44 $(F90C) -c -g -O3 grphreal.f 45 46 ftrafo.o: ftrafo.f 47 $(F90C) -c -g -O3 ftrafo.f 48 49 $(BINDIR)/${EXE}: phgrreal.o grphreal.o ftrafo.o rwgrib2.o posnam.o calc_etadot.o 50 $(F90C) $(DEBUG) $(OPT) -o $(BINDIR)/${EXE} ftrafo.o phgrreal.o grphreal.o rwgrib2.o posnam.o calc_etadot.o ${LIB} 51 52 53 ############################################################################### 54 # 55 # End of the Makefile 56 # 57 ############################################################################### 50 ${EXE}: $(OBJ) 51 $(FC) $(OBJ) -o ${EXE} $(LDFLAGS) -
Source/Fortran/makefile_debug
rdfa7dbd r5868d74 7 7 # SPDX-License-Identifier: GPL-2.0 8 8 # 9 # Version for a machine with grib_apiand emoslib installed on standard paths9 # Version for a machine with eccodes and emoslib installed on standard paths 10 10 # full debugging 11 11 # … … 15 15 EXE = calc_etadot_debug.out 16 16 17 GRIB_API_LIB= -Bstatic -lgrib_api_f90 -lgrib_api-Bdynamic -lm -ljasper17 ECCODES_LIB= -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm -ljasper 18 18 EMOSLIB=-lemosR64 19 LIB = $( GRIB_API_LIB) $(EMOSLIB)19 LIB = $(ECCODES_LIB) $(EMOSLIB) 20 20 21 GRIB_API_INCLUDE_DIR=/usr/include 22 INC = -I. -I$( GRIB_API_INCLUDE_DIR)21 ECCODES_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15 22 INC = -I. -I$(ECCODES_INCLUDE_DIR) 23 23 24 24 FC = gfortran … … 47 47 $(FC) $(FFLAGS) -c ./rwgrib2.f90 48 48 49 clean: -rm -f $(OBJ) ${EXE} $(MOD) 49 clean: 50 -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot 50 51 51 52 ${EXE}: $(OBJ) 52 53 $(FC) $(OBJ) -o ${EXE} $(LDFLAGS) 54 ln -sf ${EXE} calc_etadot -
Source/Fortran/makefile_ecgate
rdfa7dbd r1610f73 1 1 ############################################################################### 2 2 # 3 # Top level Makefile for ECMWFDATA7.0 software 3 # Makefile for flex_extract, Fortran code to calculate etadot 4 # Makefile created using by mkmf 19.3.0 4 5 # 5 # Last modified: December 1, 2015 6 # Copyright: Leopold Haimberger, Petra Seibert 7 # SPDX-License-Identifier: GPL-2.0 8 # 9 # Version for a machine with eccodes and emoslib installed on standard paths 10 # with optimisation 6 11 # 7 12 ############################################################################### 8 13 9 14 10 .SUFFIXES: .o .c .c~ .f .f~ .F90 .f90 .f90~ .f95 .f95~ .F .F~ .y .y~ .l .l~ \ 11 .s .s~ .sh .sh~ .h .h~ .C .C~ .a 15 EXE = calc_etadot_fast.out 12 16 13 OPT = -O314 DEBUG = -g15 17 LIB = $(ECCODES_LIB) $(EMOSLIB) 18 INC = -I. -I$(ECCODES_INCLUDE_DIR) 16 19 17 FC=gfortran -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore -ffixed-line-length-132 -fopenmp -fconvert=big-endian 18 F90C=gfortran -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore -ffixed-line-length-132 -fopenmp -fconvert=big-endian 20 FC=gfortran 19 21 20 FFLAGS = $(OPT) -I. -I$(ECCODES_INCLUDE_DIR) 22 OPT = -O3 -march=native 23 FFLAGS = $(OPT) $(LIB) $(INC) -fdefault-real-8 -fopenmp -fconvert=big-endian 24 LDFLAGS = $(OPT) $(LIB) -fopenmp 25 SRC = ./rwgrib2.f90 ./calc_etadot.f90 ./ftrafo.f90 ./grphreal.f90 ./posnam.f90 ./phgrreal.f90 26 OBJ = rwgrib2.o calc_etadot.o ftrafo.o grphreal.o posnam.o phgrreal.o 27 MOD = ftrafo.mod grtoph.mod phtogr.mod rwgrib2.mod 21 28 22 F90FLAGS = $(OPT) -I. -I$(ECCODES_INCLUDE_DIR) 29 all: ${EXE} 30 ftrafo.o: ./ftrafo.f90 phgrreal.o 31 $(FC) $(FFLAGS) -c ./ftrafo.f90 32 grphreal.o: ./grphreal.f90 phgrreal.o 33 $(FC) $(FFLAGS) -c ./grphreal.f90 34 phgrreal.o: ./phgrreal.f90 35 $(FC) $(FFLAGS) -c ./phgrreal.f90 36 posnam.o: ./posnam.f90 37 $(FC) $(FFLAGS) -c ./posnam.f90 38 calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o 39 $(FC) $(FFLAGS) -c ./calc_etadot.f90 40 rwgrib2.o: ./rwgrib2.f90 41 $(FC) $(FFLAGS) -c ./rwgrib2.f90 23 42 24 LDFLAGS = $(OPT) 43 clean: 44 -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot 25 45 26 BINDIR = . 27 28 EXE = calc_etadot 29 30 31 .f.o: 32 $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f 33 .f90.o: 34 $(F90C) -c $(F90FLAGS) $(DEBUG) $*.f90 35 36 all: ${EXE} 37 38 clean: 39 rm *.o *.mod ${EXE} 40 41 phgrreal.o: phgrreal.f 42 $(F90C) -c -g -O3 -fopenmp phgrreal.f 43 44 grphreal.o: grphreal.f 45 $(F90C) -c -g -O3 -fopenmp grphreal.f 46 47 ftrafo.o: ftrafo.f 48 $(F90C) -c -g -O3 -fopenmp ftrafo.f 49 50 $(BINDIR)/${EXE}: phgrreal.o grphreal.o ftrafo.o rwgrib2.o posnam.o calc_etadot.o 51 $(F90C) $(DEBUG) $(OPT) -o $(BINDIR)/${EXE} ftrafo.o phgrreal.o grphreal.o rwgrib2.o posnam.o calc_etadot.o ${LIB} 52 53 54 ############################################################################### 55 # 56 # End of the Makefile 57 # 58 ############################################################################### 46 ${EXE}: $(OBJ) 47 $(FC) $(OBJ) -o ${EXE} $(LDFLAGS) 48 ln -sf ${EXE} calc_etadot -
Source/Fortran/makefile_fast
rdeb7d17 rda1b788 7 7 # SPDX-License-Identifier: GPL-2.0 8 8 # 9 # Version for a machine with grib_apiand emoslib installed on standard paths10 # full debugging9 # Version for a machine with eccodes and emoslib installed on standard paths 10 # with optimisation 11 11 # 12 12 ############################################################################### 13 13 14 14 15 EXE = calc_etadot 15 EXE = calc_etadot_fast.out 16 16 17 #GRIB_API_LIB= -Bstatic -lgrib_api_f90 -lgrib_api -Bdynamic -lm -ljasper 18 ECCODES_LIB= -L/usr/local/lib -leccodes_f90 -leccodes -lm 17 ECCODES_LIB = -Bstatic -leccodes_f90 -leccodes -Bdynamic -lm -ljasper 19 18 EMOSLIB=-lemosR64 20 19 LIB = $(ECCODES_LIB) $(EMOSLIB) 21 20 22 ECCODES_INCLUDE_DIR=/usr/l ocal/include21 ECCODES_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15 23 22 INC = -I. -I$(ECCODES_INCLUDE_DIR) 24 23 … … 49 48 50 49 clean: 51 -rm -f $(OBJ) ${EXE} $(MOD) 50 -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot 52 51 53 52 ${EXE}: $(OBJ) 54 53 $(FC) $(OBJ) -o ${EXE} $(LDFLAGS) 54 ln -sf ${EXE} calc_etadot
Note: See TracChangeset
for help on using the changeset viewer.