[2fb99de] | 1 | ############################################################################### |
---|
| 2 | # |
---|
[7cd1586] | 3 | # Makefile for flex_extract, Fortran code to calculate etadot |
---|
| 4 | # Makefile created using by mkmf 19.3.0 |
---|
[2fb99de] | 5 | # |
---|
[7cd1586] | 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 |
---|
[1610f73] | 10 | # with optimisation |
---|
[2fb99de] | 11 | # |
---|
[3520ee6] | 12 | # 2022-07-21 Anne Tipka |
---|
| 13 | # Updated makefile to make use of the files for fft and get rid of emoslib |
---|
| 14 | # |
---|
[2fb99de] | 15 | ############################################################################### |
---|
| 16 | |
---|
| 17 | |
---|
[7cd1586] | 18 | EXE = calc_etadot_fast.out |
---|
[2fb99de] | 19 | |
---|
[4f24798] | 20 | LIB = $(ECCODES_LIB) |
---|
[7cd1586] | 21 | INC = -I. -I$(ECCODES_INCLUDE_DIR) |
---|
| 22 | |
---|
| 23 | FC=gfortran |
---|
| 24 | |
---|
| 25 | OPT = -O3 -march=native |
---|
| 26 | FFLAGS = $(OPT) $(LIB) $(INC) -fdefault-real-8 -fopenmp -fconvert=big-endian |
---|
| 27 | LDFLAGS = $(OPT) $(LIB) -fopenmp |
---|
[3520ee6] | 28 | SRC = ./rwgrib2.f90 ./calc_etadot.f90 ./ftrafo.f90 ./grphreal.f90 ./posnam.f90 ./phgrreal.f90 ./set99.f90 ./fft99.f90 ./qpassm.f90 ./rpassm.f90 ./jsppole.f90 |
---|
| 29 | OBJ = rwgrib2.o calc_etadot.o ftrafo.o grphreal.o posnam.o phgrreal.o set99.o fft99.o qpassm.o rpassm.o jsppole.o |
---|
[7cd1586] | 30 | MOD = ftrafo.mod grtoph.mod phtogr.mod rwgrib2.mod |
---|
| 31 | |
---|
| 32 | all: ${EXE} |
---|
[3520ee6] | 33 | jsppole.o: ./jsppole.f90 |
---|
| 34 | $(FC) $(FFLAGS) -c ./jsppole.f90 |
---|
| 35 | qpassm.o: ./qpassm.f90 |
---|
| 36 | $(FC) $(FFLAGS) -c ./qpassm.f90 |
---|
| 37 | rpassm.o: ./rpassm.f90 |
---|
| 38 | $(FC) $(FFLAGS) -c ./rpassm.f90 |
---|
| 39 | set99.o: ./set99.f90 |
---|
| 40 | $(FC) $(FFLAGS) -c ./set99.f90 |
---|
| 41 | fft99.o: ./fft99.f90 |
---|
| 42 | $(FC) $(FFLAGS) -c ./fft99.f90 |
---|
[7cd1586] | 43 | ftrafo.o: ./ftrafo.f90 phgrreal.o |
---|
| 44 | $(FC) $(FFLAGS) -c ./ftrafo.f90 |
---|
[3520ee6] | 45 | grphreal.o: ./grphreal.f90 phgrreal.o fft99.o |
---|
[7cd1586] | 46 | $(FC) $(FFLAGS) -c ./grphreal.f90 |
---|
[3520ee6] | 47 | phgrreal.o: ./phgrreal.f90 fft99.o |
---|
[7cd1586] | 48 | $(FC) $(FFLAGS) -c ./phgrreal.f90 |
---|
| 49 | posnam.o: ./posnam.f90 |
---|
| 50 | $(FC) $(FFLAGS) -c ./posnam.f90 |
---|
[3520ee6] | 51 | calc_etadot.o: ./calc_etadot.f90 phgrreal.o grphreal.o ftrafo.o rwgrib2.o jsppole.o set99.o |
---|
[7cd1586] | 52 | $(FC) $(FFLAGS) -c ./calc_etadot.f90 |
---|
| 53 | rwgrib2.o: ./rwgrib2.f90 |
---|
| 54 | $(FC) $(FFLAGS) -c ./rwgrib2.f90 |
---|
| 55 | |
---|
| 56 | clean: |
---|
| 57 | -rm -f $(OBJ) ${EXE} $(MOD) calc_etadot |
---|
| 58 | |
---|
| 59 | ${EXE}: $(OBJ) |
---|
| 60 | $(FC) $(OBJ) -o ${EXE} $(LDFLAGS) |
---|
| 61 | ln -sf ${EXE} calc_etadot |
---|