Changeset 646 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
May 3, 2012, 8:59:10 AM (13 years ago)
Author:
emillour
Message:

All GCMs: Minor improvement of the makegcm script.
Force outputs of the 'find' command to be
sorted (otherwise a same 'find' can sometimes yield results in a different
order, which in the present case triggers the rebuilding of the makefile
although it is not necessary).
EM

Location:
trunk/LMDZ.GENERIC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/makegcm_g95

    r373 r646  
    599599
    600600cd $model
    601 find libf -name '*.[Fh]' -print >! tmp77
     601find libf -name '*.[Fh]' -print | sort >! tmp77
    602602#find libf -name '*.[Fh]' -exec egrep -i " *use *ioipsl" {} \; -print >! tmp90
    603 find libf -name '*.[Fh]90' -print >> tmp90
     603find libf -name '*.[Fh]90' -print | sort >> tmp90
    604604
    605605if (    `diff tmp77 liste_des_sources_f77 | wc -w` \
  • trunk/LMDZ.GENERIC/makegcm_gfortran

    r373 r646  
    630630
    631631cd $model
    632 find libf -name '*.[Fh]' -print >! tmp77
     632find libf -name '*.[Fh]' -print | sort >! tmp77
    633633#find libf -name '*.[Fh]' -exec egrep -i " *use *ioipsl" {} \; -print >! tmp90
    634 find libf -name '*.[Fh]90' -print >> tmp90
     634find libf -name '*.[Fh]90' -print | sort >> tmp90
    635635
    636636if (    `diff tmp77 liste_des_sources_f77 | wc -w` \
  • trunk/LMDZ.GENERIC/makegcm_ifort

    r373 r646  
    625625
    626626cd $model
    627 find libf -name '*.[Fh]' -print >! tmp77
     627find libf -name '*.[Fh]' -print | sort >! tmp77
    628628#find libf -name '*.[Fh]' -exec egrep -i " *use *ioipsl" {} \; -print >! tmp90
    629 find libf -name '*.[Fh]90' -print >> tmp90
     629find libf -name '*.[Fh]90' -print | sort >> tmp90
    630630
    631631if (    `diff tmp77 liste_des_sources_f77 | wc -w` \
  • trunk/LMDZ.GENERIC/makegcm_pgf90

    r373 r646  
    632632
    633633cd $model
    634 find libf -name '*.[Fh]' -print >! tmp77
     634find libf -name '*.[Fh]' -print | sort >! tmp77
    635635#find libf -name '*.[Fh]' -exec egrep -i " *use *ioipsl" {} \; -print >! tmp90
    636 find libf -name '*.[Fh]90' -print >> tmp90
     636find libf -name '*.[Fh]90' -print | sort >> tmp90
    637637
    638638if (    `diff tmp77 liste_des_sources_f77 | wc -w` \
Note: See TracChangeset for help on using the changeset viewer.