Skip to content

Commit 014ccf2

Browse files
committed
Fix printf statement trying to print %
1 parent 32ce7ad commit 014ccf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcstas-comps/union/Union_master.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ TRACE
14451445
printf("name of material: %s \n",Volumes[current_volume]->name);
14461446
printf("length to boundery = %f\n",length_to_boundary);
14471447
printf("absorption cross section = %f\n",Volumes[current_volume]->p_physics->my_a);
1448-
printf("chance to get through this length of absorber: %f \%\n", 100*exp(-Volumes[current_volume]->p_physics->my_a*length_to_boundary));
1448+
printf("chance to get through this length of absorber: %f %%\n", 100*exp(-Volumes[current_volume]->p_physics->my_a*length_to_boundary));
14491449
#endif
14501450
}
14511451
} else {

0 commit comments

Comments
 (0)