Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.122 1998/02/06 15:02:26 peterg +## New default sspar -- sets all states to zero. +## ## Revision 1.121 1998/02/06 14:36:51 peterg ## Report on copying back from MTT_work ## ## Revision 1.120 1998/02/05 16:06:53 peterg ## Removed debugging lines. @@ -758,14 +761,21 @@ # Tidy mode - operate in the directory MTT-work if [ "$tidy" = "tidy" ]; then mkdir -p MTT_work cp -u *_*.* MTT_work 2>/dev/null cd MTT_work - Directory=$directory/MTT_work - mtt -u -q $mtt_switches -S $Directory $1 $2 $3 $4 + + if [ -z "$directory" ]; then + Directory='' + else + Directory=$directory/MTT_work + fi + + mtt -u -q $mtt_switches -S "$Directory" $1 $2 $3 $4 + if [ "$3" != "view" ]; then - echo Copying " " $1_$2.$3 + echo Copying " " $1_$2.$3 cp -f $1_$2.$3 .. fi # Remove the MTT_work directory if very tidy if [ "$verytidy" = "verytidy" ]; then @@ -1080,11 +1090,11 @@ echo 'END;'; \ )> $1_params.r #SUMMARY sspar steady-state definition (r) -$1_sspar.r: +$1_sspar.r: $1_def.m makesspar $1 #SUMMARY rep report (txt) #SUMMARY rep report (tex) #SUMMARY rep report (view)