/[lmdze]/trunk/libf/make.sh
ViewVC logotype

Contents of /trunk/libf/make.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (show annotations)
Mon Mar 31 12:24:17 2008 UTC (16 years, 1 month ago) by guez
File MIME type: application/x-sh
File size: 1783 byte(s)
This revision is not in working order. Pending some moving of files.

Important changes. In the program "etat0_lim": ozone coefficients from
Mobidic are regridded in time instead of pressure ; consequences in
"etat0". In the program "gcm", ozone coefficients from Mobidic are
read once per day only for the current day and regridded in pressure ;
consequences in "o3_chem_m", "regr_pr_coefoz", "phytrac" and
"regr_pr_comb_coefoz_m".

NetCDF95 is a library and does not export NetCDF.

New variables "nag_gl_options", "nag_fcalls_options" and
"nag_cross_options" in "nag_tools.mk".

"check_coefoz.jnl" rewritten entirely for new version of
"coefoz_LMDZ.nc".

Target "obj_etat0_lim" moved from "GNUmakefile" to "nag_rules.mk".

Added some "intent" attributes in "calfis", "clmain", "clqh",
"cltrac", "cltracrn", "cvltr", "ini_undefSTD", "moy_undefSTD",
"nflxtr", "phystokenc", "phytrac", "readsulfate", "readsulfate_preind"
and "undefSTD".

In "dynetat0", "dynredem0" and "gcm", "phis" has rank 2 instead of
1. "phis" has assumed shape in "dynredem0".

Added module containing "dynredem0". Changed some calls with NetCDF
Fortran 77 interface to calls with NetCDF95 interface.

Replaced calls to "ssum" by calls to "sum" in "inigeom".

In "make.sh", new option "-c" to change compiler.

In "aaam_bud", argument "rjour" deleted.

In "physiq": renamed some variables; deleted variable "xjour".

In "phytrac": renamed some variables; new argument "lmt_pas".

1 # This is a script in Bash.
2
3 # This script allows to build LMDZE into a directory other than
4 # "libf". Optionally, a compiler may be chosen on the command line.
5
6 # -- If a compiler is chosen on the command line then the script links
7 # a compiler file to the directory "libf" and builds LMDZE into a
8 # directory associated to the chosen compiler.
9
10 # -- If the compiler is not chosen on the command line and a compiler
11 # file already exists in "libf" then the script builds LMDZE with that
12 # compiler into the directory associated to it.
13
14 # -- If the compiler is not chosen on the command line and there is no
15 # compiler file in "libf" then the script builds LMDZE with the
16 # default compiler macros of make into a default directory. The
17 # default directory is defined in the script.
18
19 # If you just want to build into "libf" with the current compiler
20 # file, you can invoke "make" directly.
21
22 # Usage:
23
24 # make.sh [-c <<<compiler>>>] [options and arguments for make]
25
26 # The file "<<<compiler>>>.mk" should exist in "../Compilers" and the
27 # directory "<<<compiler>>>" shoud exist in "$dest_dir".
28
29 # Note that "-c" was chosen because it is not an option of "make".
30
31 getopts :c: name
32 if ((($? == 0)) && [[ $name = c ]])
33 then
34 echo "Linking \"$OPTARG.mk\"..."
35 ln -sf ../Compilers/$OPTARG.mk compiler.mk
36 target=$OPTARG
37 shift $((OPTIND - 1))
38 else
39 # Find the current compiler, if any:
40 if [[ -L compiler.mk ]]
41 then
42 target=`basename $(ls -l compiler.mk |cut -d " " -f 11) .mk`
43 fi
44 fi
45
46 ##dest_dir=$workdir/LMDZE/Compil_prod
47 dest_dir=/home/guez/In_transit/LMDZE_work/Compil_prod${target:+_$target}
48 # (Do not just use the name of the compiler as a directory name, it
49 # confuses some compilers.)
50
51 set -xe
52 gmake -C $dest_dir -f $PWD/GNUmakefile -I$PWD $* libf_dir=$PWD

Properties

Name Value
svn:eol-style native
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.21