Ignore:
Timestamp:
Oct 24, 2024, 4:25:39 PM (4 weeks ago)
Author:
abarral
Message:

Move dimensions.h into a module
Nb: doesn't compile yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/makelmdz_fcm

    r5259 r5271  
    569569
    570570cd $LIBFGCM/grid
    571 if [[ -f dimensions.h ]]
     571if [[ -f dimensions_mod.f90 ]]
    572572then
    573573    if [[ $force_compile == true ]]
    574574    then
    575         \rm -f $LIBFGCM/grid/dimensions.h
     575        \rm -f $LIBFGCM/grid/dimensions_mod.f90
    576576    else
    577577        echo "WARNING: you are probably already compiling the model somewhere else."
     
    579579        echo "If you are sure that you are not compiling elsewhere, "
    580580        echo "If you are sure that you are not compiling elsewhere, then"
    581         echo rm -f $LIBFGCM/grid/dimensions.h
     581        echo rm -f $LIBFGCM/grid/dimensions_mod.f90
    582582        echo "before reruning the compilation"
    583583        echo "or run makelmdz_fcm with option -force_compile"
     
    590590cd $LIBFGCM/grid/dimension
    591591./makdim $dim
    592 cat $LIBFGCM/grid/dimensions.h
     592cat $LIBFGCM/grid/dimensions_mod.f90
    593593cd $LMDGCM
    594594
     
    803803ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config/ppsrc tmp_src
    804804
    805 if [[ -r $LIBFGCM/grid/dimensions.h ]]
     805if [[ -r $LIBFGCM/grid/dimensions_mod.f90 ]]
    806806then
    807807  # Cleanup: remove dimension.h file
    808   \rm -f $LIBFGCM/grid/dimensions.h
     808  \rm -f $LIBFGCM/grid/dimensions_mod.f90
    809809fi
    810810
Note: See TracChangeset for help on using the changeset viewer.