Changeset 5741 for LMDZ6


Ignore:
Timestamp:
Jul 1, 2025, 2:16:38 PM (5 weeks ago)
Author:
lguez
Message:

Check that the configuration does not change

In a given configuration directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/compilation_2/makelmdz_fcm

    r5740 r5741  
    743743config_name=${config_name:-$arch$SUFF_NAME}
    744744
     745if [[ -f $LIBOGCM/$config_name/config_description.txt ]]
     746then
     747    read <$LIBOGCM/$config_name/config_description.txt
     748
     749    if [[ $REPLY != $SUFF_NAME ]]
     750    then
     751        echo "Configuration directory was created for other options"
     752        rm -f $LIBFGCM/grid/dimensions_mod.f90
     753        exit 1
     754    fi
     755fi
     756
    745757echo "%ARCH          $arch"          >> $config_fcm
    746758echo "%CONFIG_NAME   $config_name"   >> $config_fcm
     
    797809fi
    798810
     811if [[ ! -f $LIBOGCM/$config_name/config_description.txt ]]
     812then
     813    echo $SUFF_NAME >$LIBOGCM/$config_name/config_description.txt
     814fi
     815
    799816exit $build_status
Note: See TracChangeset for help on using the changeset viewer.