- if p2 in put:
- replace['operation2'] = 'MPI_Put(&winbuf[20], N, MPI_INT, target, 0, N, type, win);'
- if p2 in get:
- replace['operation2'] = 'MPI_Get(&winbuf[20], N, MPI_INT, target, 0, N, type, win);'
-
- make_file(template, f'GlobalConcurrency_rl_{e}_{p1}_{p2}_nok.c', replace)
-
-
-for e in epoch:
- for p1 in put:
- for p2 in rstore + rload + put:
+ if p2 in gen.put:
+ replace['operation2'] = 'MPI_Put(&winbuf[5], N, MPI_INT, target, 0, N, type, win);'
+ replace['outcome'] = 'OK'
+ replace['errormsg'] = 'OK'
+ elif p2 in gen.get:
+ replace['operation2'] = 'MPI_Get(&winbuf[5], N, MPI_INT, target, 0, N, type, win);'
+ elif p2 in gen.rload:
+ replace['outcome'] = 'OK'
+ replace['errormsg'] = 'OK'
+
+ ok = 'ok' if replace['outcome'] == 'OK' else 'nok'
+ gen.make_file(template, f'GlobalConcurrency_rl_{e}_{p1}_{p2}_{ok}.c', replace)
+
+
+for e in gen.epoch:
+ for p1 in gen.put:
+ for p2 in gen.rstore + gen.rload + gen.put + gen.get: