source: CONFIG/UNIFORM/v7/IPSLCM7/compile_ipslcm7.sh @ 6441

Last change on this file since 6441 was 6421, checked in by aclsce, 15 months ago

Use of modification in ORCHIDEE simple routing (waiting for commit in ORCHIDEE reference version)

  • Property svn:executable set to *
File size: 19.5 KB
Line 
1#!/bin/bash
2# Default options
3#
4#
5#
6date
7#### 1  Set up the compiling options
8#### Define some directories
9submitdir=$( pwd )
10modipsl=$submitdir/../..
11arch_path=$submitdir/ARCH
12mysrc_path=$submitdir/SOURCES
13export ROOT=$modipsl/modeles/DYNAMICO
14#### Set default options
15# Resolution if compiling LMDZ in regular mode without DYNAMICO
16# Use for example following "./compile_icolmdzor.sh -regular_latlon 144x142x79"
17regular_latlon=no
18# Atmospheric resolution, for LMDZ/ORCHIDEE in regular mode
19resol_atm=144x142x79
20# Coupled with ocean biogeochemistry (y/n)
21nemotop=y
22# Optimization mode
23# optmode=prod/dev/debug
24optmode=prod
25# Resolution if compiling LMDZ in regular mode without DYNAMICO
26# Use for example following "./compile_icolmdzor.sh -regular_latlon 144x142x79"
27regular_latlon=no
28# fcm_arch
29fcm_arch=default
30# Default values to be overritten
31parallel=mpi_omp
32export fcm_arch parallel xios
33full_flag=""
34full_nemo=n
35full_inca=""
36full_xios=""
37full_lmdz=""
38full_orch=""
39full_dyna=""
40# choose radiative code compilation option
41rad=rrtm
42opt_rad=""
43# Default netcdf_lib is used for XIOS but can be change by argument
44netcdf_lib=""
45
46# Output text file for compilation of each component
47datestr=`LC_ALL=C date +"%Y%m%dT%H%M"`
48outfile=$submitdir/out_compile_ipslcm7.$datestr
49echo > $outfile
50echo; echo "Text output from compilation will be stored in file out_compile_ipslcm7.$datestr"; echo 
51
52#### Read arguments
53# Loop over all arguments to modify default set up
54while (($# > 0)) ; do
55    case $1 in
56        "-h") cat <<end_help
57########################################################################
58# Usage of the script compile_ipslcm7.sh
59#
60########################################################################
61
62./compile_ipslcm7.sh [Options]
63
64
65Options: [-full] Full recompilation of all components. This option can be added to all other options.
66         [-cleannemo] Full recompilation of NEMO component only.
67         [-regular_latlon]
68         [-debug / -dev / -prod] Level of optimization. One of these can be added to all other compile options. Default: -prod.
69
70
71Example 1: Default compilation of IPSLCM7 for resolution LR
72          (Resolution atmos: nbp40 )
73./compile_ipslcm7.sh
74
75Example 2: Default resolution (LR) compiled in debug mode
76./compile_ipslcm7.sh -debug
77
78Example 3: Default compilation with full recompilation of all components. No clean is needed.
79./compile_ipslcm7.sh -full
80
81Example 4: Compilation of LMDZ in regular lat-lon for dimension 144x142x79.
82The dimension can be changed to any other 3d dimension. DYNAMICO is also compiled as default.
83./compile_ipslcm7.sh -regular_latlon 144x142x79
84
85end_help
86            exit;;
87
88        "-parallel")   parallel=$2 ; shift ; shift ;;
89        "-arch")       fcm_arch="$2" ; shift ; shift ;;
90        "-debug")      optmode=debug ; shift ;;
91        "-dev")        optmode=dev ; shift ;;
92        "-prod")       optmode=prod ; shift ;;
93        "-regular_latlon")  regular_latlon=yes ; resol_atm=$2 ; shift ; shift ;;
94        "-full")       full_flag="-full"; full_nemo=y ; full_xios="--full" ; full_lmdz="-full" ; full_orch="-full" ; shift ;;
95        "-full_xios")  full_xios="--full" ; shift ;;  # Note only full_xios is using double dash: --full
96        "-full_lmdz")  full_lmdz="-full"  ; shift ;;
97        "-full_orch")  full_orch="-full"  ; shift ;;
98        "-full_nemo")  full_nemo=y ; shift ;;
99        "-full_inca")  full_inca="-clean"; shift ;;
100        "-cleannemo")  full_nemo=y ; shift ;;
101        "-rad")        rad=$2; shift ; shift ;;
102        *)             echo "unknown option "$1" , exiting..." ; exit
103    esac
104done
105
106echo "Following options are set in current compiling:" >> $outfile
107echo "   regular_latlon=$regular_latlon (if yes, then resol_atm=${resol_atm})" >> $outfile 
108echo "   resol_atm=${resol_atm}, resol_oce=${resol_oce}, icemodel=${icemodel}, nemotop=${nemotop}" >> $outfile 
109echo "   optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch " >> $outfile 
110echo "   full_flag=$full_flag, full_xios=$full_xios, full_lmdz=$full_lmdz, full_orch=$full_orch, full_nemo=$full_nemo, full_dyna=$full_dyna" >> $outfile 
111echo >> $outfile
112
113### Read host dependent default values
114### These variables will not be changed if they were set as argument
115###./host.sh $host
116# Later : Following lines should be set in host.sh file
117# begin host.sh
118if [ $fcm_arch == default ] ; then
119    # Find out current host and source specific paths and commands for the host
120    case $( hostname -s ) in
121        jean-zay*)
122            fcm_arch=X64_JEANZAY;;
123        irene170|irene171|irene190|irene191|irene192|irene193)
124            fcm_arch=X64_IRENE;;
125        irene172|irene173|irene194|irene195)
126            fcm_arch=X64_IRENE-AMD;;
127        asterix*|obelix*)
128            fcm_arch=ifort_LSCE
129            if [ "${parallel}" == "mpi_omp" ] ; then
130                echo "Warning!! Currently at Obelix hybrid mode is not possible."
131                echo "          Option -parallel mpi_omp is now changed to -parallel mpi"
132                echo ""
133                parallel=mpi
134            else
135                echo "You used -parallel" $parallel
136            fi ;;
137        spirit*)
138            fcm_arch=ifort_MESOIPSL;;
139        ciclad*|climserv*|loholt*|camelot*)
140            fcm_arch=ifort_CICLAD;;
141        *)
142            echo Current host is not known. You must use option -arch to specify which architecuture files to use.
143            echo Exit now.
144            exit
145    esac
146fi
147
148# Set a link to arch.env if arch-${fcm_arch}.env file exist for current fcm_arch.
149# The link arch.env is also set in config.card and will be used by libIGCM to ensure the same running environnement.
150if [ -f ARCH/arch-${fcm_arch}.env ] ; then
151    echo >> $outfile
152    echo "The file ARCH/arch-${fcm_arch}.env will now be sourced with modules needed for compilation for all components."
153    echo "Note that this new environement might be kept after compilation."
154    echo "If this is the case, source again your personal environment after compilation."
155    echo " Personal module list before sourcing of ARCH/arch.env file:"    >> $outfile 
156    module list   >> $outfile 2>&1
157    svn_version=$(module list -t | grep subversion)
158       
159    # Make a link to this file, to be used also in config.card
160    rm -f ARCH/arch.env
161    ln -s arch-${fcm_arch}.env ARCH/arch.env
162
163    # Source the file
164    source ARCH/arch.env   >> $outfile 2>&1
165    if [ X$svn_version != X ] ; then
166        module load ${svn_version}
167    fi
168    echo >> $outfile
169    echo " New module list after sourcing of ARCH/arch.env file:"    >> $outfile 
170    module list   >> $outfile 2>&1
171fi
172
173#### 2 Do the compilation
174## 2.1 Compile ioipsl
175cd $modipsl/modeles/IOIPSL
176echo; echo "NOW COMPILE IOIPSL"
177echo >> $outfile ; echo " NOW COMPILE IOIPSL"   >> $outfile 
178
179echo ./makeioipsl_fcm -$optmode -parallel -arch ${fcm_arch} -arch_path $arch_path -j 8 $full_flag   >> $outfile 
180     ./makeioipsl_fcm -$optmode -parallel -arch ${fcm_arch} -arch_path $arch_path -j 8 $full_flag   >> $outfile 2>&1
181# Test if compiling succeded
182if [[ $? != 0 ]] ; then
183    echo "THERE IS A PROBLEM IN IOIPSL COMPILATION - STOP"
184    exit
185fi
186
187## 2.2 Compile oasis3-mct
188cd $modipsl/oasis3-mct/util/make_dir
189echo; echo "NOW COMPILE OASIS3-MCT"
190echo >> $outfile ; echo " NOW COMPILE OASIS3-MCT"   >> $outfile
191cp $mysrc_path/OASIS3-MCT/make_${fcm_arch} make.inc
192
193echo make -f TopMakefileOasis3 >> $outfile
194     make -f TopMakefileOasis3 >> $outfile 2>&1
195
196
197## 2.3 Compile xios
198cd $modipsl/modeles/XIOS
199echo; echo "NOW COMPILE XIOS"
200echo >> $outfile ; echo " NOW COMPILE XIOS"   >> $outfile 
201echo ./make_xios --use_oasis oasis3_mct --$optmode --arch $fcm_arch --arch_path $arch_path ${netcdf_lib} --job 4 $full_xios   >> $outfile 
202     ./make_xios --use_oasis oasis3_mct --$optmode --arch $fcm_arch --arch_path $arch_path ${netcdf_lib} --job 4 $full_xios   >> $outfile 2>&1
203# Test if compiling succeded
204if [[ $? != 0 ]] ; then
205    echo "THERE IS A PROBLEM IN XIOS COMPILATION - STOP"
206    exit
207fi
208# Move executables to modipsl/bin
209if [ -f $modipsl/modeles/XIOS/bin/xios_server.exe ] ; then
210    mv $modipsl/modeles/XIOS/bin/xios_server.exe $modipsl/bin/xios_server_${optmode}.exe
211else
212    echo "THERE IS A PROBLEM IN XIOS COMPILATION EXECUTABLE MISSING - STOP"
213    exit
214fi
215
216
217## 2.4 Compile orchidee
218cd $modipsl/modeles/ORCHIDEE
219echo; echo "NOW COMPILE ORCHIDEE"
220echo >> $outfile ; echo " NOW COMPILE ORCHIDEE"   >> $outfile 
221if [ -d $modipsl/config/IPSLCM7/SOURCES/ORCHIDEE ] ; then
222    cd $modipsl/config/IPSLCM7/SOURCES/ORCHIDEE
223    for dir in $( find . -mindepth 1 -maxdepth 1 -type d ); do
224        for file in $( find $dir -type f ! -path '*.svn*' ); do
225            echo cp $file $modipsl/modeles/ORCHIDEE/$file >> $outfile
226            cp $file $modipsl/modeles/ORCHIDEE/$file  >> $outfile 2>&1
227        done
228    done
229    cd $modipsl/modeles/ORCHIDEE
230fi
231
232# Check if the compilation of ORCHIDEE was previsouly interupted prematured.
233# In that case, the files fcm.bld.lock exist. If the file exist, it is here removed to avoid makeorchidee_fcm
234# to ask question and wait for interactivly answer from the user.
235if [ -f build/fcm.bld.lock ] ; then
236    echo >> $outfile
237    echo " WARNING!! The file ORCHIDEE/build/fcm.bld.lock exist. "   >> $outfile
238    echo "           This means that the compilation is either currently on going in another terminal was previous interupted before the end."   >> $outfile
239    echo "           The file will now be removed. "   >> $outfile
240    echo >> $outfile
241    rm -f build/fcm.bld.lock
242fi
243
244echo    ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} -arch_path $arch_path $full_orch   >> $outfile 
245        ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} -arch_path $arch_path $full_orch   >> $outfile 2>&1
246# Test if compiling finished
247if [[ $? != 0 ]] ; then
248    echo "THERE IS A PROBLEM IN ORCHIDEE COMPILATION - STOP"
249    exit
250fi
251
252
253## 2.5 Compile NEMO
254nemo_root=$modipsl/modeles/NEMO
255cfg_ref=ORCA2_ICE_PISCES
256cfg_wrk=ORCA_ICE_TRC
257addkeys="key_oasis3 key_top key_si3 key_isf"
258delkeys=""
259
260if [ ${nemotop} == n ] ; then
261   cfg_wrk=ORCA_ICE
262   delkeys="key_top"
263fi
264
265if [ ${nemotop} == n ] ; then
266   echo; echo "NOW COMPILE NEMO with ice model SI3 without passive tracer model TOP"
267   echo >> $outfile ; echo " NOW COMPILE NEMO with ice model SI3 without passive tracer model TOP"   >> $outfile
268else
269   echo; echo "NOW COMPILE NEMO with ice model SI3 and passive tracer model TOP"
270   echo >> $outfile ; echo " NOW COMPILE NEMO with ice model SI3 and passive tracer model TOP"   >> $outfile
271fi
272
273echo >> $outfile ; echo cd $nemo_root  >> $outfile
274echo >> $outfile ; echo cp $mysrc_path/NEMO/arch-${fcm_arch}.fcm arch/CNRS/.   >> $outfile
275echo >> $outfile
276
277cd $nemo_root ; cp $mysrc_path/NEMO/arch-${fcm_arch}.fcm arch/CNRS/.
278
279# creation of config
280echo >> $outfile ; echo cd $nemo_root  >> $outfile
281echo ./makenemo -m ${fcm_arch} -n $cfg_wrk -r $cfg_ref -j0 add_key "$addkeys"  del_key "$delkeys"   >> $outfile
282echo >> $outfile
283cd $nemo_root
284./makenemo -m ${fcm_arch} -n $cfg_wrk -r $cfg_ref -j0  add_key "$addkeys"  del_key "$delkeys"  >> $outfile 2>&1
285
286
287# Copy of specfic source files
288echo >> $outfile ; echo cp $mysrc_path/NEMO/*.*90  $nemo_root/cfgs/$cfg_wrk/MY_SRC/.   >> $outfile
289echo >> $outfile
290cp $mysrc_path/NEMO/*.*90  $nemo_root/cfgs/$cfg_wrk/MY_SRC/.
291
292
293if [ $full_nemo == y ] ; then
294   # To make a full compilation, first make a clean to remove all files produced during previous compilation
295   echo ./makenemo -m ${fcm_arch} -n $cfg_wrk -r $cfg_ref clean   >> $outfile
296   echo >> $outfile
297   ./makenemo -m ${fcm_arch} -n $cfg_wrk -r $cfg_ref clean  >> $outfile 2>&1
298fi
299echo ./makenemo -m ${fcm_arch} -n $cfg_wrk -r $cfg_ref -j8  >> $outfile
300echo >> $outfile
301./makenemo -m ${fcm_arch} -n $cfg_wrk -r $cfg_ref -j8  >> $outfile 2>&1
302
303echo >> $outfile
304echo "Move nemo executable to modipsl/bin" >> $outfile
305echo ls -lrt $nemo_root/cfgs/$cfg_wrk/BLD/bin   >> $outfile
306ls -lrt $nemo_root/cfgs/$cfg_wrk/BLD/bin  >> $outfile
307echo >> $outfile
308
309if [ -f $nemo_root/cfgs/$cfg_wrk/BLD/bin/nemo.exe ] ; then
310   mv $nemo_root/cfgs/$cfg_wrk/BLD/bin/nemo.exe $modipsl/bin/opa_${optmode}.exe
311else
312    echo "ERROR nemo.exe executable does not exist."
313    echo "THERE IS A PROBLEM IN NEMO COMPILATION - STOP"
314    exit
315fi
316
317# Compile LMDZ
318cd $modipsl/modeles/LMDZ
319# Compile LMDZ as library to couple to DYNAMICO
320echo; echo "NOW COMPILE LMDZ FOR COUPLING TO DYNAMICO"
321echo >> $outfile ; echo " NOW COMPILE LMDZ FOR COUPLING TO DYNAMICO"   >> $outfile 
322# Retrieve the final svn release number, needed for radiative code suffix of executable
323lmdzsvn=`svnversion . | egrep -o "[0-9]+"  | awk 'NR==1'`
324# Temporary use of SOURCES/LMDZ to handle modifications needed by IPSLCM7
325cp $mysrc_path/LMDZ/*.*90  libf/phylmd/.
326
327# Check if the compilation of LMDZ was previsouly interupted prematured.
328# In that case, the files dimension.h and .lock exist. If the files exist, they are here removed to avoid makelmdz_fcm
329# to ask question and wait for interactivly answer from the user.
330if [ -f libf/grid/dimensions.h ] || [ -f .lock ] ; then
331  echo >> $outfile
332  echo " WARNING!! The file LMDZ/libf/grid/dimension.h and/or the LMDZ/.lock exist. "   >> $outfile
333  echo "           This means that the compilation is either currently on going in another terminal was previous interupted before the end."   >> $outfile
334  echo "           The files dimension.h and .lock will now be removed. "   >> $outfile
335  echo >> $outfile
336  rm -f libf/grid/dimensions.h
337  rm -f .lock
338fi
339
340# Need to define the proper option for radiative code compilation. By default, we use rrtm
341case $rad in
342    oldrad) opt_rad="" ;;
343    rrtm)   if [ $lmdzsvn -le 4185 ] ; then opt_rad="-rrtm true" ; else opt_rad="-rad rrtm" ; fi ;;
344    ecrad)  opt_rad="-rad ecrad" ;;
345    *) echo Only oldrad rrtm ecrad for rad option ; exit
346esac
347
348if [ $lmdzsvn -le 4185 -a $rad = "ecrad" ] ; then echo "ecrad only available for LMDZ rev starting with 4186 " ; exit ; fi
349
350echo ./makelmdz_fcm -p lmd -c OMCT $opt_rad -$optmode -mem -parallel $parallel -libphy -v orchidee2.1 -io xios -arch $fcm_arch -j 8 $full_lmdz    >> $outfile 
351     ./makelmdz_fcm -p lmd -c OMCT $opt_rad -$optmode -mem -parallel $parallel -libphy -v orchidee2.1 -io xios -arch $fcm_arch -j 8 $full_lmdz    >> $outfile 2>&1
352# Test if compiling finished
353if [[ $? != 0 ]] ; then
354    echo "THERE IS A PROBLEM IN LMDZ PHYSICS COMPILATION - STOP"
355    exit
356fi
357
358
359## 2.5 Compile DYNAMICO
360cd $modipsl/modeles/DYNAMICO
361echo; echo "NOW COMPILE DYNAMICO "
362echo >> $outfile ; echo " NOW COMPILE DYNAMICO"   >> $outfile 
363
364        if [ -d $modipsl/config/IPSLCM7/SOURCES/DYNAMICO ] ; then
365         cd $modipsl/config/IPSLCM7/SOURCES/DYNAMICO
366         for dir in $( find . -mindepth 1 -maxdepth 1 -type d ); do
367             for file in $( find $dir -type f ! -path '*.svn*' ); do
368                 echo cp $file $modipsl/modeles/DYNAMICO/$file >> $outfile
369                 cp $file $modipsl/modeles/DYNAMICO/$file  >> $outfile 2>&1
370             done
371         done
372         cd $modipsl/modeles/DYNAMICO
373        fi
374
375
376echo ./make_icosa -$optmode -with_fcm1 -parallel $parallel -external_ioipsl -with_oasis -with_xios -arch $fcm_arch -arch_path $arch_path -job 8 $full_dyna    >> $outfile 
377     ./make_icosa -$optmode -with_fcm1 -parallel $parallel -external_ioipsl -with_oasis -with_xios -arch $fcm_arch -arch_path $arch_path -job 8 $full_dyna    >> $outfile 2>&1
378# Test if compiling finished
379if [[ $? != 0 ]] ; then
380    echo "THERE IS A PROBLEM IN DYNAMICO COMPILATION - STOP"
381    exit
382fi
383
384## 2.6 Compile interface ICOSA_LMDZ
385cd $modipsl/modeles/ICOSA_LMDZ
386echo; echo "NOW COMPILE ICOSA_LMDZ "
387echo >> $outfile ; echo " NOW COMPILE ICOSA_LMDZ"   >> $outfile 
388
389echo ./make_icosa_lmdz -nodeps -p lmd -$optmode -parallel $parallel -with_oasis -with_orchidee -arch ${fcm_arch} -arch_path ${arch_path} -job 8 $full_dyna    >> $outfile 
390     ./make_icosa_lmdz -nodeps -p lmd -$optmode -parallel $parallel -with_oasis -with_orchidee -arch ${fcm_arch} -arch_path ${arch_path} -job 8 $full_dyna    >> $outfile 2>&1
391# Test if compiling finished
392if [[ $? != 0 ]] ; then
393    echo "THERE IS A PROBLEM IN ICOSA_LMDZ COMPILATION - STOP"
394    exit
395fi
396# Move executables to modipsl/bin
397if [ -f $modipsl/modeles/ICOSA_LMDZ/bin/icosa_lmdz.exe ] ; then
398    mv $modipsl/modeles/ICOSA_LMDZ/bin/icosa_lmdz.exe $modipsl/bin/icosa_lmdz_${optmode}.exe
399else
400    echo "THERE IS A PROBLEM IN ICOSA_LMDZ COMPILATION EXECUTABLE MISSING - STOP"
401    exit
402fi
403
404
405
406## 2.7 Compile LMDZ for regular latlon configuration
407if [ $regular_latlon = yes ] ; then
408
409    cd $modipsl/modeles/LMDZ
410    # Compile LMDZ regular lat-lon exectuable
411    echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}"
412    echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}"   >> $outfile 
413    # Check if the compilation of LMDZ was previsouly interupted prematured.
414    # In that case, the files dimension.h and .lock exist. If the files exist, they are here removed to avoid makelmdz_fcm
415    # to ask question and wait for interactivly answer from the user.
416    if [ -f libf/grid/dimensions.h ] || [ -f .lock ] ; then
417        echo >> $outfile
418        echo " WARNING!! The file LMDZ/libf/grid/dimension.h and/or the LMDZ/.lock exist. "   >> $outfile
419        echo "           This means that the compilation is either currently on going in another terminal was previous interupted before the end."   >> $outfile
420        echo "           The files dimension.h and .lock will now be removed. "   >> $outfile
421        echo >> $outfile
422        rm -f libf/grid/dimensions.h
423        rm -f .lock
424    fi
425    echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -p lmd $opt_rad -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz gcm    >> $outfile 
426         ./makelmdz_fcm -d ${resol_atm} -c OMCT -p lmd $opt_rad -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz gcm    >> $outfile 2>&1
427    # Test if compiling finished
428    if [[ $? != 0 ]] ; then
429        echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP"
430        exit
431    fi
432
433    # Compile ce0l initialization program for LMDZ regular lat-lon exectuable
434    echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"
435    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile 
436
437    echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile 
438         ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile 2>&1
439    # Test if compiling finished
440    if [[ $? != 0 ]] ; then
441        echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP"
442        exit
443    fi
444
445# Find executable suffix
446suffix=_${resol_atm}_phylmd
447if [ $lmdzsvn -ge 4186 ] ; then suffix=${suffix}_${rad} ; fi
448if [ $parallel == seq ] || [ $parallel == none ] ; then
449    suffix=${suffix}_seq_orch.e
450else
451    suffix=${suffix}_para_mem_orch.e
452fi
453echo gcm suffix = $suffix
454
455   
456    # Move executables to modipsl/bin folder
457    echo "Move gcm.e and ce0l executable to modipsl/bin"
458    if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix} ] ;  then
459        mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}.e
460    else
461        echo "ERROR gcm${suffix} executable does not exist." 
462        echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP"
463        exit
464    fi
465
466    if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix} ] ;  then
467        mv $modipsl/modeles/LMDZ/bin/ce0l${suffix} $modipsl/bin/ce0l_${resol_atm}_${optmode}.e
468    else
469        echo "ERROR ce0l${suffix} executable does not exist." 
470        echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP"
471        exit
472    fi
473fi
474
475echo >>$outfile ; echo "ALL COMPILING FINISHED" >> $outfile
476echo ls -lrt modipsl/bin >> $outfile
477ls -lrt $modipsl/bin >> $outfile
478
479echo; echo "ALL COMPILING FINISHED" ; echo
480echo "Executables are found in modipsl/bin"
481echo "Check that executable names correspond with the name set in config.card before launching the job"
482echo ls -lrt modipsl/bin
483ls -lrt $modipsl/bin
484
485date
486
487exit
488
489
Note: See TracBrowser for help on using the repository browser.