source: palm/trunk/UTIL/inifor/Makefile @ 3182

Last change on this file since 3182 was 3182, checked in by suehring, 6 years ago

New Inifor features: grid stretching, improved command-interface, support start dates in different formats in both YYYYMMDD and YYYYMMDDHH, Ability to manually control input file prefixes (--radiation-prefix, --soil-preifx, --flow-prefix, --soilmoisture-prefix) for compatiblity with DWD forcast naming scheme; GNU-style short and long option; Prepared output of large-scale forcing profiles (no computation yet); Added preprocessor flag netcdf4 to switch output format between netCDF 3 and 4; Updated netCDF variable names and attributes to comply with PIDS v1.9; Inifor bugfixes: Improved compatibility with older Intel Intel compilers by avoiding implicit array allocation; Added origin_lon/_lat values and correct reference time in dynamic driver global attributes; corresponding PALM changes: adjustments to revised Inifor; variables names in dynamic driver adjusted; enable geostrophic forcing also in offline nested mode; variable names in LES-LES and COSMO offline nesting changed; lateral boundary flags for nesting, in- and outflow conditions renamed

  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1#------------------------------------------------------------------------------#
2# This file is part of the PALM model system.
3#
4# PALM is free software: you can redistribute it and/or modify it under the
5# terms of the GNU General Public License as published by the Free Software
6# Foundation, either version 3 of the License, or (at your option) any later
7# version.
8#
9# PALM is distributed in the hope that it will be useful, but WITHOUT ANY
10# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License along with
14# PALM. If not, see <http://www.gnu.org/licenses/>.
15#
16# Copyright 2017-2018 Leibniz Universitaet Hannover
17# Copyright 2017-2018 Deutscher Wetterdienst Offenbach
18#------------------------------------------------------------------------------#
19#
20# Current revisions:
21# -----------------
22# Added __netcdf4 preprocessor flag
23#
24#
25# Former revisions:
26# -----------------
27# $Id: Makefile 3182 2018-07-27 13:36:03Z suehring $
28# Initial revision
29#
30#
31#
32# Authors:
33# --------
34# @author Eckhard Kadasch
35#
36# Description:
37# ------------
38# This makefile may be used to exclusively compile INIFOR.
39#------------------------------------------------------------------------------#
40PROJECT = inifor
41PROJECT_PATH = .
42BIN_PATH  = $(PROJECT_PATH)/../../SCRIPTS
43SRC_PATH  = $(PROJECT_PATH)/src
44TEST_PATH = $(PROJECT_PATH)/tests
45
46MODULES = $(SRC_PATH)/defs.mod $(SRC_PATH)/util.mod $(SRC_PATH)/control.mod $(SRC_PATH)/types.mod $(SRC_PATH)/transform.mod $(SRC_PATH)/io.mod $(SRC_PATH)/grid.mod
47SOURCES = $(MODULES:%.mod=%.f90) $(SRC_PATH)/$(PROJECT).f90
48OBJECTS = $(SOURCES:%.f90=%.o)
49
50FC      = gfortran
51WRNGS   = -Wall -Wextra -Wsurprising -Waliasing -Wcharacter-truncation \
52                  -Wline-truncation -fbacktrace -fcheck=all -pedantic \
53                  -ffpe-trap=invalid,zero,underflow,overflow
54FFLAGS  = -fdefault-real-8 -Og -g $(WRNGS) -cpp -D__netcdf4
55INCLUDE = -I/home/ekadasch/local/include
56LIBRARY = -L/home/ekadasch/local/lib64 -lnetcdff
57
58.PHONY: all clean doc run tags test test-verbose $(PROJECT)
59
60$(PROJECT): $(OBJECTS) $(MODULES) tags
61        @echo ""
62        mkdir -p $(BIN_PATH)
63        $(FC) $(FFLAGS) $(OBJECTS) -o $(BIN_PATH)/$(PROJECT) -I$(SRC_PATH) $(LIBRARY)
64
65$(SRC_PATH)/%.o: $(SRC_PATH)/%.f90
66        @echo ""
67        $(FC) $(FFLAGS) -c $< -o $@ -J$(SRC_PATH) $(INCLUDE)
68
69$(SRC_PATH)/%.mod: $(SRC_PATH)/%.f90
70        @echo ""
71        $(FC) $(FFLAGS) -c $< -o $(@:%.mod=%.o) -J$(SRC_PATH) $(INCLUDE)
72
73all: clean $(PROJECT) test doc
74
75clean:
76        @echo ""
77        rm -rf $(OBJECTS) $(MODULES) $(BIN_PATH)/$(PROJECT)
78        rm -rf *.mod *.o
79        rm -rf ./doc/latex ./doc/html
80        rm -f $(SRC_PATH)/tags
81        rm -f *.files
82        rm -f palm-hsurf.nc
83        $(MAKE) -C $(TEST_PATH) clean
84        $(MAKE) -C $(SRC_PATH) clean
85
86doc:
87        @echo ""
88        doxygen ./doc/doxygen.config
89
90run: $(PROJECT)
91        @echo ""
92        $(BIN_PATH)/$(PROJECT)
93
94tags:
95        @echo ""
96        $(MAKE) -C $(SRC_PATH) tags
97
98test:
99        @echo "Running tests"
100        $(MAKE) -C $(TEST_PATH) test | grep Test
101        @echo "...done testing"
102
103test-verbose:
104        @echo "Running tests"
105        $(MAKE) -C $(TEST_PATH) test
106        @echo "...done testing"
Note: See TracBrowser for help on using the repository browser.