/[lmdze]/trunk/GNUmakefile
ViewVC logotype

Contents of /trunk/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 78 - (show annotations)
Wed Feb 5 17:51:07 2014 UTC (10 years, 3 months ago) by guez
File size: 1831 byte(s)
Moved procedure inigeom into module comgeom.

In disvert, renamed s_sampling to vert_sampling, following
LMDZ. Removed choice strato1. In case read, read ap and bp instead of
s (following LMDZ).

Added argument phis to start_init_orog and start_init_dyn, and removed
variable phis of module start_init_orog_m. In etat0 and
start_init_orog, renamed relief to zmea_2d. In start_init_dyn, renamed
psol to ps.

In start_init_orog, renamed relief_hi to relief. No need to set
phis(iim + 1, :) = phis(1, :), already done in grid_noro.

Documentation for massbar out of SVN, in massbar.txt. Documentation
was duplicated in massdair, but not relevant in massdair.

In conflx, no need to initialize pen_[ud] and pde_[ud]. In flxasc,
used intermediary variable fact (following LMDZ).

In grid_noro, added local variable zmea0 for zmea not smoothed and
computed zphi from zmea instead of zmea0 (following LMDZ). This
changes the results of ce0l.

Removed arguments pen_u and pde_d of phytrac and nflxtr, which were
not used.

1 # This is a makefile for GNU make.
2
3 # This makefile builds LMDZE.
4
5 # Suffixes are:
6 # "f90" for free format, no preprocessing
7 # "f" for fixed format, no preprocessing
8
9 # 1. Source files
10
11 src_root = .
12
13 VPATH := ${src_root} $(addprefix ${src_root}/, $(shell cat ${src_root}/directories))
14
15 common_sources := $(shell cat ${src_root}/common_sources)
16 src_no_main_ce0l_only := $(shell cat ${src_root}/src_no_main_ce0l_only)
17 src_no_main_gcm_only := $(shell cat ${src_root}/src_no_main_gcm_only)
18 src_no_main = ${src_no_main_ce0l_only} ${src_no_main_gcm_only} ${common_sources}
19
20 # 2. Objects
21
22 obj_ce0l := $(addsuffix .o, $(sort $(basename ${common_sources} ${src_no_main_ce0l_only})))
23
24 obj_gcm := $(addsuffix .o, $(sort $(basename ${common_sources} ${src_no_main_gcm_only})))
25
26 objects := $(addsuffix .o, $(basename ${src_no_main}))
27
28 # 3. Compiler-dependent part
29
30 mode = debug
31 include Compilers/${FC}_${mode}.mk
32
33 # 4. Rules
34
35 SHELL = bash
36 COMPILE.f90 = $(FC) $(F90FLAGS) $(TARGET_ARCH) -c
37
38 %.o: %.f90
39 $(COMPILE.f90) $(OUTPUT_OPTION) $<
40
41 %: %.f90
42 $(LINK.f) $^ $(LOADLIBES) $(LDLIBS) -o $@
43
44 .DELETE_ON_ERROR:
45 .PHONY: all clean clobber depend
46 all: ce0l gcm trace
47 ce0l: ${obj_ce0l}
48 gcm: ${obj_gcm}
49
50 depend ${src_root}/depend.mk:
51 makedepf90 -Wmissing -Wconfused $(addprefix -I, ${VPATH}) -nosrc $(addprefix -u , netcdf numer_rec_95 netcdf95 nr_util jumble) ${src_no_main} >${src_root}/depend.mk
52
53 ${src_root}/TAGS: ${src_no_main} ce0l.f90 gcm.f90
54 ctags -e --language-force=fortran -f $@ $^
55
56 clean:
57 rm -f ce0l gcm ${objects} trace
58
59 clobber: clean
60 rm -f *.mod ${src_root}/depend.mk ${src_root}/TAGS
61
62 trace:
63 ${FC} ${version_flag} >$@ 2>&1
64 echo -e "\nFC = ${FC}\n\nFFLAGS = ${FFLAGS}\n\nLDLIBS = ${LDLIBS}\n\nLDFLAGS = ${LDFLAGS}" >>$@
65
66 ifneq ($(MAKECMDGOALS), clobber)
67 include ${src_root}/depend.mk
68 endif
69
70 -include grep.mk
71 -include nag_rules.mk

  ViewVC Help
Powered by ViewVC 1.1.21