Initial commit
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
float** BENCH = sin->BENCH.getEntryValue(0);
|
||||
int bots_arg_size = sin->bots_arg_size.getValue();
|
||||
int kk = sin->kk.getValue();
|
||||
int tmax = sin->tmax.getValue();
|
||||
int t = sin->tindex.getValue();
|
||||
int itercount = bots_arg_size - (kk+1);
|
||||
int iterslice = itercount / (tmax+1);
|
||||
int start = kk+1 + iterslice*t;
|
||||
int stop = kk+1 + iterslice*(t+1);
|
||||
if (t == tmax-1 && stop != bots_arg_size) {
|
||||
stop = bots_arg_size;
|
||||
}
|
||||
for (int ii=start; ii<stop; ii++) {
|
||||
if (BENCH[ii*bots_arg_size+kk] != NULL) {
|
||||
bdiv (BENCH[kk*bots_arg_size+kk], BENCH[ii*bots_arg_size+kk]);
|
||||
}
|
||||
}
|
||||
sout->BENCHout.setValue(BENCH);
|
||||
Reference in New Issue
Block a user