source: trunk/LMDZ.COMMON/bld.cfg @ 1243

Last change on this file since 1243 was 1107, checked in by emillour, 11 years ago

Common dynamics: Updates and modifications to enable running Mars physics with

LMDZ.COMMON dynamics:

  • For compilation: adapted makelmdz, create_make_gcm and makelmdz_fcm, bld.cfg to compile aeronomy routines in "aerono$physique" if it exists, and added "-P -traditional" preprocessing flags in "arch-linux-ifort*"
  • Added function "cbrt.F" (cubic root) in 'bibio'
  • Adapted the reading/writing of dynamics (re)start.nc files for Mars. The main issue is that different information (on time, reference and current) is stored and used differently, hence a few if (planet_type =="mars") here and there. Moreover in the martian case there is the possibility to store fields over multiple times. Some Mars-specific variables (ecritphy,ecritstart,timestart) added in control_mod.F and (hour_ini) in temps.h

EM

File size: 2.6 KB
Line 
1# ----------------------- FCM extract configuration file -----------------------
2cfg::type                           bld
3cfg::version                        1.0
4
5
6# ------------------------------------------------------------------------------
7# Build information
8# ------------------------------------------------------------------------------
9
10#Default value of FPP fortran preprocessor
11%FPP cpp
12# C preprocessor
13%CPP cpp
14
15inc arch.fcm
16inc config.fcm
17
18%CONFIG_NAME       %{ARCH}%SUFF_NAME
19%BASE_CONFIG_PATH  %LIBO/%CONFIG_NAME
20%CONFIG_PATH       %BASE_CONFIG_PATH/.config
21%SRC_PATH          %LIBF
22
23%FFLAGS            %BASE_FFLAGS %COMPIL_FFLAGS %PARA_FFLAGS
24%LD_FLAGS          %BASE_LD %PARA_LD
25
26src::dyn     %SRC_PATH/%DYN
27src::phys    %SRC_PATH/%PHYS
28src::grid    %SRC_PATH/grid
29src::filtrez %SRC_PATH/filtrez
30src::bibio   %SRC_PATH/bibio
31src::cosp    %COSP
32src::chem    %CHEM
33src::aerono  %AERONO
34
35bld::lib            lmdz
36
37
38bld::outfile_ext::exe    %SUFF_NAME.e
39bld::target              liblmdz.a
40bld::target              %EXEC%SUFF_NAME.e
41bld::exe_dep             
42
43
44dir::root            %CONFIG_PATH
45dir::lib             %BASE_CONFIG_PATH
46dir::bin             %ROOT_PATH/bin
47
48#search_src           1
49
50bld::tool::fpp       %FPP
51bld::tool::cpp       %CPP
52bld::tool::fc        %COMPILER
53bld::tool::cc        %C_COMPILER
54bld::tool::ld        %LINK
55bld::tool::ar        %AR
56bld::tool::make      %MAKE
57bld::tool::fflags    %FFLAGS %INCDIR
58bld::tool::cflags    %C_OPTIM %INCDIR
59bld::tool::ldflags   %LD_FLAGS %LIB 
60
61bld::tool::cppflags  %CPP_FLAGS %INCDIR
62bld::tool::fppflags  %FPP_FLAGS %INCDIR
63bld::tool::fppkeys   %CPP_KEY %FPP_DEF
64
65# Example of how to set specific compiling options for a specific file
66# -> this can be including in the arch.opt file
67#bld::tool::fflags::phys::readaerosol         %BASE_FFLAGS %PROD_FFLAGS  %INCDIR -C hopt -pi auto
68
69
70inc arch.opt
71
72# Pre-process code before analysing dependencies
73bld::pp              1
74
75# Ignore the following dependencies
76bld::excl_dep        inc::netcdf.inc
77bld::excl_dep        use::netcdf
78bld::excl_dep        use::typesizes
79bld::excl_dep        h::netcdf.inc
80bld::excl_dep        h::mpif.h
81bld::excl_dep        inc::mpif.h
82bld::excl_dep        use::ioipsl
83bld::excl_dep        use::intersurf
84bld::excl_dep        use::mod_prism_proto
85bld::excl_dep        use::mod_prism_def_partition_proto
86bld::excl_dep        use::mod_prism_get_proto
87bld::excl_dep        use::mod_prism_put_proto
88
89# Don't generate interface files
90bld::tool::geninterface none
91
92# Allow ".inc" as an extension for CPP include files
93bld::infile_ext::inc  CPP::INCLUDE
94
95# extension for module output
96bld::outfile_ext::mod .mod
97bld::tool::SHELL   /bin/bash
Note: See TracBrowser for help on using the repository browser.