Changeset 5048 for LMDZ6/trunk/makelmdz


Ignore:
Timestamp:
Jul 12, 2024, 4:19:11 PM (5 months ago)
Author:
fhourdin
Message:

Comportemnt de makelmdz* quand on compile deja

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/makelmdz

    r4567 r5048  
    3232cosp2=false
    3333cospv2=false
     34force_compile=false
     35
    3436
    3537full=""
     
    141143[-ext_src path]            : path to an additional set of routines to compile with the model
    142144[-arch_path path]          : path to architecture files (default: $arch_default_path)
     145[-force_compile]           : recompile although there seems to be an on-going compilation
    143146 -arch nom_arch            : target architecture
    144147 exec                      : executable to build
     
    232235      "-arch_path")
    233236          arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;;
     237
     238      "-force_compile")
     239          force_compile=true ; shift ;;
    234240
    235241      *)
     
    585591if [[ -f dimensions.h ]]
    586592then
    587   echo 'ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs'
    588   echo "Attendez que la premiere compilation soit terminee pour relancer la suivante."
    589   echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs,"
    590   echo  vous pouvez continuer en repondant oui.
    591   echo "Voulez-vous vraiment continuer?"
    592   echo ""
    593   echo "WARNING: you are probably already compiling the model somewhere else."
    594   echo "Wait until the first compilation is finished before launching this one."
    595   echo "If you are sure that you are not compiling elsewhere, just answer "
    596   echo "yes (or 'oui') to the question below to proceed."
    597   echo "Do you wish to continue?"
    598   read reponse
    599   if [[ $reponse == "oui" || $reponse == "yes" ]]
    600   then
    601     \rm -f $LIBFGCM/grid/dimensions.h
    602   else
    603     exit
    604   fi
    605 fi
     593    if [[ $force_compile == true ]]
     594    then
     595        \rm -f $LIBFGCM/grid/dimensions.h
     596    else
     597        echo "WARNING: you are probably already compiling the model somewhere else."
     598        echo "Wait until the first compilation is finished before launching this one."
     599        echo "If you are sure that you are not compiling elsewhere, "
     600        echo "If you are sure that you are not compiling elsewhere, then"
     601        echo rm -f $LIBFGCM/grid/dimensions.h
     602        echo "before reruning the compilation"
     603        echo "or run makelmdz with option -force_compile"
     604        exit 1
     605    fi
     606fi
     607
    606608
    607609cd $LIBFGCM/grid/dimension
    608610./makdim $dim
    609 if (($? != 0))
    610 then
    611     exit 1
    612 fi
    613 
    614611cat $LIBFGCM/grid/dimensions.h
    615612cd $LMDGCM
Note: See TracChangeset for help on using the changeset viewer.