Skip to content

Commit c0db3fe

Browse files
committed
Add required {}'s for multiline code-execution.
1 parent 9c26b9b commit c0db3fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mcstas-comps/samples/Single_crystal.comp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,16 +1180,17 @@ INITIALIZE
11801180
if (hkl_info.sigma_a<0) hkl_info.sigma_a=0;
11811181
if (hkl_info.sigma_i<0) hkl_info.sigma_i=0;
11821182

1183-
if (hkl_info.count)
1183+
if (hkl_info.count) {
11841184
MPI_MASTER(
11851185
printf("Single_crystal: %s: Read %d reflections from file '%s'\n",
11861186
NAME_CURRENT_COMP, hkl_info.count, reflections);
11871187
);
1188-
else
1188+
} else {
11891189
MPI_MASTER(
11901190
printf("Single_crystal: %s: Using incoherent elastic scattering only sigma=%g.\n",
11911191
NAME_CURRENT_COMP, hkl_info.sigma_i);
11921192
);
1193+
}
11931194
/*this should not be in hkl_info*/
11941195
hkl_info.shape=-1; /* -1:no shape, 0:cyl, 1:box, 2:sphere, 3:any-shape */
11951196
if (geometry && strlen(geometry) && strcmp(geometry, "NULL") && strcmp(geometry, "0")) {

0 commit comments

Comments
 (0)