- Timestamp:
- May 27, 2023, 12:02:36 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install_lmdz.sh
r4542 r4546 242 242 "-debug") optim=-debug ; shift ;; 243 243 "-name") MODEL=$2 ; shift ; shift ;; 244 "-netcdf") case $2 in 245 0|1) netcdf=$2 ;; 246 *) netcdf=`ls -d $2` ; if [ $? != 0 ] ; then echo No directory $2 ; exit 1 ; fi 247 esac 248 shift ; shift ;; 244 "-netcdf") netcdf=$2 ; shift ; shift ;; 249 245 "-physiq") physiq=$2 ; shift ; shift ;; 250 246 "-xios") with_xios="y" ; shift ;; 251 247 "-env_file") env_file=$2 ; shift ; shift ;; 252 248 "-veget") veget=$2 ; shift ; shift ;; 253 *) ./install_lmdz.sh -h ; exit249 *) bash install_lmdz.sh -h ; exit 254 250 esac 255 251 done … … 604 600 605 601 ########################################################################### 606 if [ $netcdf = 1 ] ; then 602 echo Installing Netcdf 607 603 ########################################################################### 604 605 if [ $netcdf = 0 ] ; then 606 ncdfdir=/usr 607 608 else 608 609 cd $MODEL 609 netcdflog=`pwd`/netcdf.log610 echo '----------------------------------------------------------'611 echo Compiling the Netcdf library612 echo '----------------------------------------------------------'613 echo log file : $netcdflog614 610 615 611 case $compiler in … … 622 618 case $with_xios in 623 619 n) script_install_netcdf=install_netcdf4_hdf5_seq.bash 624 ncdfdir= $MODEL/netcdf4_hdf5_seq620 ncdfdir=netcdf4_hdf5_seq 625 621 opt_=$opt1 ;; 626 622 y) script_install_netcdf=install_netcdf4_hdf5.bash 627 ncdfdir= $MODEL/netcdf4_hdf5623 ncdfdir=netcdf4_hdf5 628 624 opt_="$opt2 -MPI $root_mpi" ;; 629 625 *) echo with_xios=$with_xios, should be n or y ; exit 1 630 626 esac 627 if [ $netcdf = 1 ] ; then 628 ncdfdir=$MODEL/$ncdfdir 629 else 630 mkdir -p $netcdf ; ncdfdir=$netcdf/$ncdfdir 631 fi 631 632 632 if [[ ! -d $ncdfdir ]] ; then 633 echo Repertoire netcdf $ncdfdir 634 if [ ! -d $ncdfdir ] ; then 635 netcdflog=`pwd`/netcdf.log 636 echo '----------------------------------------------------------' 637 echo Compiling the Netcdf library 638 echo '----------------------------------------------------------' 639 echo log file : $netcdflog 633 640 myget script_install/$script_install_netcdf >> $netcdflog 2>&1 634 641 chmod u=rwx $script_install_netcdf … … 645 652 echo install_lmdz.sh netcdf_OK `date` 646 653 647 elif [ $netcdf = 0 ] ; then648 ncdfdir=/usr649 else650 ncdfdir=$netcdf651 654 fi 652 655
Note: See TracChangeset
for help on using the changeset viewer.