Skip to content

Commit 4df27fd

Browse files
committed
Further cogen fixes (and var name change due to clash with p define)
1 parent b10f172 commit 4df27fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mccode/src/cogen.c.in

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ void def_trace_section(struct instr_def *instr)
16311631
cout("#define t_offset _particle->t_offset");
16321632
cout("#define p_trains _particle->p_trains");
16331633
cout("#define alive_trains _particle->alive_trains");
1634-
cout("#define p_last_time_manipulation _particle->p_last_time_manipulation;");
1634+
cout("#define P_last_time_manipulation _particle->P_last_time_manipulation;");
16351635
cout("#endif /* OPENACC */");
16361636
cout("#endif /* TOF_TRAIN */");
16371637

@@ -1694,6 +1694,7 @@ void undef_trace_section(struct instr_def *instr)
16941694
cout("#undef t_offset");
16951695
cout("#undef p_trains");
16961696
cout("#undef alive_trains");
1697+
cout("#undef P_last_time_manipulation");
16971698
cout("#endif /* TOF_TRAIN */");
16981699
cout("#endif /* OPENACC */");
16991700

@@ -2444,7 +2445,7 @@ cogen_header(struct instr_def *instr, char *output_name)
24442445
cout("double *t_offset;");
24452446
cout("double *p_trains;");
24462447
cout("int *alive_trains;");
2447-
cout("double p_last_time_manipulation;");
2448+
cout("double P_last_time_manipulation;");
24482449
cout("#endif /* TOF_TRAIN */");
24492450
cout("#endif /* NOT OPENACC */");
24502451
cout("");
@@ -2508,7 +2509,7 @@ cogen_header(struct instr_def *instr, char *output_name)
25082509
cout(" double *t_offset;");
25092510
cout(" double *p_trains;");
25102511
cout(" int *alive_trains;");
2511-
cout(" double p_last_time_manipulation;");
2512+
cout(" double P_last_time_manipulation;");
25122513
cout(" #pragma acc shape(t_offset[0:N_trains]) init_needed(N_trains)");
25132514
cout(" #pragma acc shape(p_trains[0:N_trains]) init_needed(N_trains)");
25142515
cout(" #pragma acc shape(alive_trains[0:N_trains]) init_needed(N_trains)");

0 commit comments

Comments
 (0)