1111
1212# Changes
1313#
14+ # bengsig 14-dec-2022 - --no-awr means even less, $mute:59 for xc
1415# bengsig 15-nov-2022 - rategradient, -i, -d options
1516# bengsig 1-nov-2022 - --no-awr option
1617# bengsig 25-oct-2022 - External control
@@ -181,9 +182,19 @@ trap "rm -f $prepfile" 0 int
181182komment=` echo $RWLOLTP_NAME $rwl_title $extrakomment | sed ' s/[\\"' " ']//g" `
182183
183184# prepare the run; this will also create the $resultsdir/$subdir/$runnumber/env file
184- rwloadsim -u -v -c $rampup -sss -P $prepfile -k $key -K " $komment " -q \
185- --fulltitle=" $komment " \
186- -i runperiod:=$runperiod -i proccount:=$procs prepare.rwl
185+ if test $xc_enabled = 1
186+ then
187+ rwloadsim -u -v -c 2 -sss -P $prepfile -k $key -K " $komment " -q \
188+ --fulltitle=" $komment " \
189+ -i runperiod:=$runperiod -i proccount:=$procs prepare.rwl
190+ mute59=' -x$mute:59'
191+ else
192+ rwloadsim -u -v -c $rampup -sss -P $prepfile -k $key -K " $komment " -q \
193+ --fulltitle=" $komment " \
194+ -i runperiod:=$runperiod -i proccount:=$procs prepare.rwl
195+ mute59=' '
196+ fi
197+
187198
188199# Get runnumber and variables from the env file
189200runnumber=` cut -f1 -d: $prepfile `
206217rwloadsim -q $extra_args -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod -i proccount:=$procs -i show_changed_values:=1 parameters.rwl > $resultsdir /$subdir /$runnumber /parmatstart.txt
207218
208219# Start ping gather and also ask for event notification
209- rwloadsim -u -E -q -R $prepfile -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod runping.rwl &
220+ rwloadsim $mute59 -u -E -q -R $prepfile -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod runping.rwl &
210221
211222if test x$killfile ! = x
212223then
216227quiet=' '
217228
218229# Start sys gather
219- rwloadsim -u -A 1 -r -q -i procnumber:=99999 -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod -i proccount:=$procs -R $prepfile -i doawr:=$doawr runsys.rwl $starttime &
230+ rwloadsim $mute59 -u -A 1 -r -q -i procnumber:=99999 -i simulatebatch:=$simulatebatch -i runperiod:=$runperiod -i proccount:=$procs -R $prepfile -i doawr:=$doawr runsys.rwl $starttime &
220231awrpid=$!
221232
222233if test x$killfile ! = x
@@ -237,7 +248,7 @@ while test $procnumber -le $procs
237248do
238249 sleep $script_ramp
239250 echo -n " " ` expr $procs - $procnumber `
240- rwloadsim -u -r -i simulatebatch:=$simulatebatch -i procnumber:=$procnumber \
251+ rwloadsim $mute59 -u -r -i simulatebatch:=$simulatebatch -i procnumber:=$procnumber \
241252 --flush-stop=$runperiod --flush-every=2 -v -i runperiod:=$runperiod \
242253 -W -i xc_run_dedicated:=$xc_run_dedicated $extra_args -i proccount:=$procs -R $prepfile $quiet $runfile &
243254 quiet=' -q' # only messages from first
352363 wait
353364 # and do the plot without showing stderr which is likely to
354365 # have lots of gnuplot errors due to missing data
355- oltpplot $runnumber 2> /dev/null
366+ test $doawr -ne 0 && oltpplot $runnumber 2> /dev/null
356367fi
357368
358369# mark run as complete
0 commit comments