Parent Directory | Revision Log
-- Minor modification of input/output: Created procedure "read_logic". Variables of module "logic" are read by "read_logic" instead of "conf_gcm". Variable "offline" of module "conf_gcm" is read from namelist instead of "*.def". Deleted arguments "dtime", "co2_ppm_etat0", "solaire_etat0", "tabcntr0" and local variables "radpas", "tab_cntrl" of "phyetat0". "phyetat0" does not read "controle" in "startphy.nc" any longer. "phyetat0" now reads global attribute "itau_phy" from "startphy.nc". "phyredem" does not create variable "controle" in "startphy.nc" any longer. "phyredem" now writes global attribute "itau_phy" of "startphy.nc". Deleted argument "tabcntr0" of "printflag". Removed diagnostic messages written by "printflag" for comparison of the variable "controle" of "startphy.nc" and the variables read from "*.def" or namelist input. -- Removing unwanted functionality: Removed variable "lunout" from module "iniprint", replaced everywhere by standard output. Removed case "ocean == 'couple'" in "clmain", "interfsurf_hq" and "physiq". Removed procedure "interfoce_cpl". -- Should not change anything at run time: Automated creation of graphs in documentation. More documentation on input files. Converted Fortran files to free format: "phyredem.f90", "printflag.f90". Split module "clesphy" into "clesphys" and "clesphys2". Removed variables "conser", "leapf", "forward", "apphys", "apdiss" and "statcl" from module "logic". Added arguments "conser" to "advect", "leapf" to "integrd". Added local variables "forward", "leapf", "apphys", "conser", "apdiss" in "leapfrog". Added intent attributes. Deleted arguments "dtime" of "phyredem", "pdtime" of "flxdtdq", "sh" of "phytrac", "dt" of "yamada". Deleted local variables "dtime", "co2_ppm_etat0", "solaire_etat0", "length", "tabcntr0" in "physiq". Replaced all references to "dtime" by references to "pdtphys".
1 | guez | 3 | # This is a script in Bash. |
2 | |||
3 | guez | 7 | # This script allows to build LMDZE into a directory other than |
4 | # "libf". Optionally, a compiler may be chosen on the command line. | ||
5 | guez | 3 | |
6 | guez | 7 | # -- 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 | guez | 11 | target=`basename $(readlink compiler.mk) .mk` |
43 | guez | 7 | fi |
44 | fi | ||
45 | |||
46 | guez | 3 | ##dest_dir=$workdir/LMDZE/Compil_prod |
47 | guez | 12 | dest_dir=/usr/local/guez/LMDZE_work/Compil_prod${target:+_$target} |
48 | guez | 7 | # (Do not just use the name of the compiler as a directory name, it |
49 | # confuses some compilers.) | ||
50 | guez | 3 | |
51 | set -xe | ||
52 | gmake -C $dest_dir -f $PWD/GNUmakefile -I$PWD $* libf_dir=$PWD |
Name | Value |
---|---|
svn:eol-style | native |
svn:executable |
ViewVC Help | |
Powered by ViewVC 1.1.21 |