Changeset 1613 for palm/trunk/LIB


Ignore:
Timestamp:
Jul 8, 2015 2:53:29 PM (9 years ago)
Author:
maronga
Message:

bugfix in install_rrtmg, removed nc2vdf from mbuild, improved palm_wd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/LIB/rrtmg/install_rrtmg

    r1586 r1613  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# Bugfix: compilation of shared library fails due to misplaced rm command
    2525#
    2626# Former revisions:
     
    4646# compiler_name="ftn"
    4747# fopts="-em -s real64 -O3 -hnoomp -hfp3 -hdynamic"
     48# fopts_trace="-eD -em -g -R b -K trap=fp -O0 -hnoomp"
    4849#
    4950#
    5051
    51  compiler_name="mpif90"
    52  fopts="-fltconsistency -O3 -cpp -r8 -nbs -convert little_endian -I /muksoft/packages/netcdf/4_intel/include"
    53  fopts_trace="-fpe0 -C -check nooutput_conversion -debug -traceback -g -w -xT -O0 -ftz -fno-alias -no-prec-div -no-prec-sqrt -ip -nbs -convert little_endian -diag-disable 8290,8291 -I /muksoft/packages/netcdf/4_intel/include"
    54  install_path="$HOME/palm/rrtmg"
    55  compile_static=true
     52 compiler_name="ftn"
     53 fopts="-em -s real64 -O3 -hnoomp -hfp3 -hdynamic"
     54 fopts_trace="-eD -em -g -R b -K trap=fp -O0 -hnoomp -fpic"
     55 install_path="$HOME/rrtmg"
     56 compile_static=false
    5657 compile_shared=true
    5758 compile_static_debug=false
    58  compile_shared_debug=false
     59 compile_shared_debug=true
    5960
    6061 while  getopts  p: option
     
    144145    mkdir -p $install_path/shared/lib
    145146    mkdir -p $install_path/shared/include
    146     cp shared/lib/$prog.so.$version $install_path/shared/lib
     147    cp shared/lib/$prog.so.$version $install_path/shared/lib/
    147148    cp shared/include/*.mod $install_path/shared/include/
    148     rm $install_path/shared/lib/$prog.so.$version $install_path/shared/lib/$prog.so.1
     149    if [ -f $install_path/shared/lib/$prog.so.1 ]
     150    then
     151       rm $install_path/shared/lib/$prog.so.1
     152    fi
    149153    ln -s $install_path/shared/lib/$prog.so.$version $install_path/shared/lib/$prog.so.1
     154    if [ -f $install_path/shared/lib/$prog.so ]
     155    then
     156       rm $install_path/shared/lib/$prog.so
     157    fi
    150158    ln -s $install_path/shared/lib/$prog.so.1 $install_path/shared/lib/$prog.so
    151159    rm -rf shared
     
    167175    cp shared_trace/lib/$prog.so.$version $install_path/shared_trace/lib
    168176    cp shared_trace/include/*.mod $install_path/shared_trace/include/
    169     rm $install_path/shared_trace/lib/$prog.so.$version $install_path/shared_trace/lib/$prog.so.1
     177    if [ -f $install_path/shared_trace/lib/$prog.so.1 ]
     178    then
     179       rm $install_path/shared_trace/lib/$prog.so.1
     180    fi
    170181    ln -s $install_path/shared_trace/lib/$prog.so.$version $install_path/shared_trace/lib/$prog.so.1
     182    if [ -f $install_path/shared_trace/lib/$prog.so ]
     183    then
     184       rm $install_path/shared_trace/lib/$prog.so
     185    fi
    171186    ln -s $install_path/shared_trace/lib/$prog.so.1 $install_path/shared_trace/lib/$prog.so
    172187    rm -rf shared_trace
Note: See TracChangeset for help on using the changeset viewer.