Skip to content

Commit

Permalink
Mask this transformation check in case of MULTICORE
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Nov 14, 2024
1 parent 1d8fabc commit 8454cb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mcstas/src/cogen.c.in
Original file line number Diff line number Diff line change
Expand Up @@ -2197,11 +2197,13 @@ int cogen_rt_funnel(struct instr_def *instr)

// coordinate transformations (wrt to PREVIOUS)
if (comp->skip_transform == 0) {
coutf("#ifndef MULTICORE");
coutf(" if (_%s_var._rotation_is_identity)", comp->name);
coutf(" coords_get("
"coords_add(coords_set(x,y,z), _%s_var._position_relative),"
"&x, &y, &z);", comp->name);
cout( " else");
coutf("#endif");
coutf(" mccoordschange(_%s_var._position_relative, _%s_var._rotation_relative, _particle);", comp->name, comp->name);
cout( " _particle_save = *_particle;");
}
Expand Down

0 comments on commit 8454cb1

Please sign in to comment.