Changeset 5247


Ignore:
Timestamp:
Oct 21, 2024, 4:26:07 PM (4 weeks ago)
Author:
Laurent Fairhead
Message:

We need different arch files for DYNAMICO as fcm2 does not recognize the shell command that is in the arch files
Also LD_LIBRARY_PATH is not always set and script crashes because of the set -u line if you try using a variable that is not set
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install_amaury/install_lmdz.sh

    r5245 r5247  
    731731      cd ../DYNAMICO
    732732      cd arch
    733       wget http://lmdz.lmd.jussieu.fr/pub/src_archives/misc/arch/DYNAMICO/arch-local-gfortran-parallel.env
    734       wget http://lmdz.lmd.jussieu.fr/pub/src_archives/misc/arch/DYNAMICO/arch-local-gfortran-parallel.fcm
    735       wget http://lmdz.lmd.jussieu.fr/pub/src_archives/misc/arch/DYNAMICO/arch-local-gfortran-parallel.path
     733      wget http://lmdz.lmd.jussieu.fr/pub/src_archives/misc/arch/DYNAMICO/arch-$arch.env
     734      wget http://lmdz.lmd.jussieu.fr/pub/src_archives/misc/arch/DYNAMICO/arch-$arch.fcm
     735      wget http://lmdz.lmd.jussieu.fr/pub/src_archives/misc/arch/DYNAMICO/arch-$arch.path
    736736      cd ..
    737737
     
    757757      echo "# Running environment for icosa_lmdz" > icosalmdz.env
    758758      echo "# "                                   >> icosalmdz.env
    759       echo "export LD_LIBRARY_PATH=$ncdfdir/lib:$LD_LIBRARY_PATH" >> icosalmdz.env
     759      if [[ -v LD_LIBRARY_PATH ]]; then 
     760        echo "export LD_LIBRARY_PATH=$ncdfdir/lib:$LD_LIBRARY_PATH" >> icosalmdz.env
     761      else
     762        echo "export LD_LIBRARY_PATH=$ncdfdir/lib" >> icosalmdz.env
     763      fi
    760764    fi
    761765}
Note: See TracChangeset for help on using the changeset viewer.