@@ -174,7 +174,7 @@ public void checkEnablingParallelism() {
174
174
175
175
// Get the MPI data component and the respective values
176
176
form = (JobLauncherForm ) jobLauncher .getForm ();
177
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
177
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
178
178
entry = dataC .retrieveAllEntries ().get (1 );
179
179
180
180
// Check values
@@ -187,7 +187,7 @@ public void checkEnablingParallelism() {
187
187
188
188
// Get the MPI data component and the respective values
189
189
form = (JobLauncherForm ) jobLauncher .getForm ();
190
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
190
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
191
191
entry = dataC .retrieveAllEntries ().get (1 );
192
192
193
193
// Check values
@@ -200,7 +200,7 @@ public void checkEnablingParallelism() {
200
200
201
201
// Get the MPI data component and the respective values
202
202
form = (JobLauncherForm ) jobLauncher .getForm ();
203
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
203
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
204
204
entry = dataC .retrieveAllEntries ().get (1 );
205
205
206
206
// Check values - nothing changed
@@ -213,7 +213,7 @@ public void checkEnablingParallelism() {
213
213
214
214
// Get the MPI data component and the respective values
215
215
form = (JobLauncherForm ) jobLauncher .getForm ();
216
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
216
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
217
217
entry = dataC .retrieveAllEntries ().get (1 );
218
218
219
219
// Check values - nothing changed
@@ -227,15 +227,15 @@ public void checkEnablingParallelism() {
227
227
form = (JobLauncherForm ) jobLauncher .getForm ();
228
228
229
229
// Should not have MPI - total number of components should be 3
230
- assertEquals (form .getComponents ().size (), 3 );
230
+ assertEquals (form .getComponents ().size (), 4 );
231
231
232
232
// disable again, see if it breaks
233
233
jobLauncher .disableMPI ();
234
234
// Get the MPI data component and the respective values
235
235
form = (JobLauncherForm ) jobLauncher .getForm ();
236
236
237
237
// Should not have MPI - total number of components should be 3
238
- assertEquals (form .getComponents ().size (), 3 );
238
+ assertEquals (form .getComponents ().size (), 4 );
239
239
240
240
// check OpenMP
241
241
// Just see if it crashes or not
@@ -244,7 +244,7 @@ public void checkEnablingParallelism() {
244
244
245
245
// Get the OpenMP data component and the respective values
246
246
form = (JobLauncherForm ) jobLauncher .getForm ();
247
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
247
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
248
248
entry = dataC .retrieveAllEntries ().get (1 );
249
249
250
250
// Check values
@@ -257,7 +257,7 @@ public void checkEnablingParallelism() {
257
257
258
258
// Get the OpenMP data component and the respective values
259
259
form = (JobLauncherForm ) jobLauncher .getForm ();
260
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
260
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
261
261
entry = dataC .retrieveAllEntries ().get (1 );
262
262
263
263
// Check values - nothing changed
@@ -270,7 +270,7 @@ public void checkEnablingParallelism() {
270
270
271
271
// Get the OpenMP data component and the respective values
272
272
form = (JobLauncherForm ) jobLauncher .getForm ();
273
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
273
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
274
274
entry = dataC .retrieveAllEntries ().get (1 );
275
275
276
276
// Check values - nothing changed
@@ -283,7 +283,7 @@ public void checkEnablingParallelism() {
283
283
284
284
// Get the OpenMP data component and the respective values
285
285
form = (JobLauncherForm ) jobLauncher .getForm ();
286
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
286
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
287
287
entry = dataC .retrieveAllEntries ().get (1 );
288
288
289
289
// Check values - nothing changed
@@ -299,15 +299,15 @@ public void checkEnablingParallelism() {
299
299
300
300
entry = dataC .retrieveAllEntries ().get (0 );
301
301
// Should not have MPI - total number of components should be 3
302
- assertEquals (form .getComponents ().size (), 3 );
302
+ assertEquals (form .getComponents ().size (), 4 );
303
303
304
304
// disable again, see if it breaks
305
305
jobLauncher .disableOpenMP ();
306
306
// Get the OpenMP data component and the respective values
307
307
form = (JobLauncherForm ) jobLauncher .getForm ();
308
308
309
309
// Should not have MPI - total number of components should be 3
310
- assertEquals (form .getComponents ().size (), 3 );
310
+ assertEquals (form .getComponents ().size (), 4 );
311
311
312
312
jobLauncher = new TestJobLauncher (null );
313
313
jobLauncher .setupForm ();
@@ -319,7 +319,7 @@ public void checkEnablingParallelism() {
319
319
// Check the dataComponent, see if they are both there
320
320
// Get the OpenMP data component and the respective values
321
321
form = (JobLauncherForm ) jobLauncher .getForm ();
322
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
322
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
323
323
entry = dataC .retrieveAllEntries ().get (1 );
324
324
assertNotNull (entry );
325
325
@@ -330,7 +330,7 @@ public void checkEnablingParallelism() {
330
330
331
331
// Get the MPI data component and the respective values
332
332
form = (JobLauncherForm ) jobLauncher .getForm ();
333
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
333
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
334
334
entry = dataC .retrieveAllEntries ().get (1 );
335
335
336
336
// Check values - nothing changed
@@ -349,14 +349,14 @@ public void checkEnablingParallelism() {
349
349
form = (JobLauncherForm ) jobLauncher .getForm ();
350
350
351
351
// Should not have MPI - total number of components should be 3
352
- assertEquals (form .getComponents ().size (), 3 );
352
+ assertEquals (form .getComponents ().size (), 4 );
353
353
354
354
// Tests for TBB
355
355
jobLauncher .enableTBB (1 , 5 , 3 );
356
356
357
357
// Get the data component and the respective values
358
358
form = (JobLauncherForm ) jobLauncher .getForm ();
359
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
359
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
360
360
entry = dataC .retrieveAllEntries ().get (1 );
361
361
362
362
// Check values
@@ -371,7 +371,7 @@ public void checkEnablingParallelism() {
371
371
372
372
// Get the data component and the respective values
373
373
form = (JobLauncherForm ) jobLauncher .getForm ();
374
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
374
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
375
375
entry = dataC .retrieveEntry ("Number of TBB Threads" );
376
376
377
377
// Check values - TBB
@@ -396,7 +396,7 @@ public void checkEnablingParallelism() {
396
396
397
397
// Get the data component and the respective values
398
398
form = (JobLauncherForm ) jobLauncher .getForm ();
399
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
399
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
400
400
entry = dataC .retrieveEntry ("Number of TBB Threads" );
401
401
402
402
// Check values - TBB
@@ -418,7 +418,7 @@ public void checkEnablingParallelism() {
418
418
jobLauncher .enableTBB (20 , 10 , 5 );
419
419
// Get the data component and the respective values
420
420
form = (JobLauncherForm ) jobLauncher .getForm ();
421
- dataC = (DataComponent ) form .getComponents (). get ( 3 );
421
+ dataC = (DataComponent ) form .getComponent ( JobLauncherForm . parallelId );
422
422
entry = dataC .retrieveEntry ("Number of TBB Threads" );
423
423
424
424
// Check values - TBB
0 commit comments