source: LMDZ6/branches/LMDZ_ECRad/bld.cfg @ 4252

Last change on this file since 4252 was 4179, checked in by lguez, 2 years ago

Use an external updated NetCDF95 library

Remove NetCDF95 from source files. We want to use an up-to-date
NetCDF95 library to read a NetCDF file containing groups, for aerosol
optical properties. It seems complicated to keep the NetCDF95 library
inside LMDZ because:

  • NetCDF95 now also needs a C compiler. I do not know how to make this work with FCM.


  • NetCDF95 cannot be compiled with the -r8 option: some specific procedures in a generic interface become identical.


  • Secondarily, we would have to change the names of files to adhere to the LMDZ standard. We are not glad to do that every time we update.


For now, we can compile using the options -include and -link of
makelmdz_fcm.

As we use an updated NetCDF95 library, we have to update some of the
calls in LMDZ. Those are the calls to nf95_inquire_variable and
nf95_gw_var which used to take a pointer argument and now take an
allocatable argument.

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 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
13inc arch.fcm
14inc config.fcm
15
16%CONFIG_NAME       %{ARCH}%SUFF_NAME
17%BASE_CONFIG_PATH  %LIBO/%CONFIG_NAME
18%CONFIG_PATH       %BASE_CONFIG_PATH/.config
19%SRC_PATH          %LIBF
20
21%FFLAGS            %BASE_FFLAGS %COMPIL_FFLAGS %PARA_FFLAGS
22%LD_FLAGS          %BASE_LD %PARA_LD
23
24src::dyn     %SRC_PATH/%DYN
25src::phys    %SRC_PATH/%PHYS
26src::dyn_phys %DYN_PHYS
27src::dyn_phys_sub %DYN_PHYS_SUB
28src::inlandsis  %INLANDSIS
29src::rad    %RAD
30src::dust    %DUST
31src::strataer %STRATAER
32src::grid    %SRC_PATH/grid
33src::filtrez %FILTRE
34src::misc    %SRC_PATH/misc
35src::dyn3d_common   %DYN_COMMON
36src::phy_common %PHY_COMMON
37src::cosp    %COSP
38src::ext_src %EXT_SRC
39src::Ocean_skin %SRC_PATH/%PHYS/Ocean_skin
40
41bld::lib            lmdz
42
43bld::outfile_ext::exe    %SUFF_NAME
44bld::target              liblmdz.a %EXEC%SUFF_NAME
45bld::exe_dep             
46
47
48dir::root            %CONFIG_PATH
49#dir::lib             %BASE_CONFIG_PATH
50dir::bin             %ROOT_PATH/bin
51
52#search_src           1
53
54bld::tool::fpp       %FPP
55bld::tool::fc        %COMPILER
56bld::tool::ld        %LINK
57bld::tool::ar        %AR
58bld::tool::arflags   %ARFLAGS
59bld::tool::make      %MAKE
60bld::tool::fflags    %FFLAGS %INCDIR
61bld::tool::ldflags   %LD_FLAGS %LIB 
62
63bld::tool::cppflags  %FPP_FLAGS %INCDIR
64bld::tool::fppflags  %FPP_FLAGS %INCDIR
65bld::tool::fppkeys   %CPP_KEY %FPP_DEF
66
67
68# Example of how to set specific compiling options for a specific file
69# -> this can be including in the arch.opt file
70#bld::tool::fflags::phys::readaerosol         %BASE_FFLAGS %PROD_FFLAGS  %INCDIR -C hopt -pi auto
71
72
73inc arch.opt
74
75# Pre-process code before analysing dependencies
76bld::pp              1
77
78
79# Ignore the following dependencies
80bld::excl_dep        inc::netcdf.inc
81bld::excl_dep        use::netcdf
82bld::excl_dep        use::typesizes
83bld::excl_dep        h::netcdf.inc
84bld::excl_dep        h::mpif.h
85bld::excl_dep        inc::mpif.h
86bld::excl_dep        use::ioipsl
87bld::excl_dep        use::intersurf
88bld::excl_dep        use::mod_prism_proto
89bld::excl_dep        use::mod_prism_def_partition_proto
90bld::excl_dep        use::mod_prism_get_proto
91bld::excl_dep        use::mod_prism_put_proto
92bld::excl_dep        use::mod_prism
93bld::excl_dep        use::xios
94bld::excl_dep        use::iaxis
95bld::excl_dep        use::iaxis_attr
96bld::excl_dep        use::icontext_attr
97bld::excl_dep        use::idate
98bld::excl_dep        use::idomain_attr
99bld::excl_dep        use::ifield_attr
100bld::excl_dep        use::ifile_attr
101bld::excl_dep        use::ixml_tree
102bld::excl_dep        use::netcdf95
103
104# Don't generate interface files
105bld::tool::geninterface none
106
107# Allow ".inc" as an extension for CPP include files
108bld::infile_ext::inc  CPP::INCLUDE
109
110# extension for module output
111bld::outfile_ext::mod .mod
112bld::tool::SHELL   /bin/bash
Note: See TracBrowser for help on using the repository browser.