#

#.... first delete what we really won't need any more
/bin/rm -rv tmp* run.t* map* *SWARM-20*      

set RUN=`/bin/ls -1 in.* | head -1 | awk -F'.' '{print $NF;}'`
if ( "$RUN" == "" ) then
  set R=`pwd`; set RUN=`basename $R` 
  endif
  if ( "$RUN" == "" ) exit   #  we might do a rm star otherwise!
  set DA=`date "+%Y-%m-%dT%TZ"`
  echo $DA $RUN
  (cd ..;  tar cvfz saves/$RUN.$DA.tgz $RUN; /bin/ls -al saves)

  /bin/rm -v *${RUN}*
  /bin/rm -rvf a.out BASETIME DIPOLTIME *.ps minvar MONITOR openggcm.f PDATA postsc* script.runtimegraphics SWMONITOR target ctim.f

  /bin/ls -al 

