Skip to content

Commit

Permalink
Update PSD_monitor_psf.comp
Browse files Browse the repository at this point in the history
This for-loop structure init is no longer needed as create_darr*() return calloc'ed arrays.
  • Loading branch information
willend authored Dec 7, 2023
1 parent 2a83351 commit dfa10b8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mcstas-comps/monitors/PSD_monitor_psf.comp
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,6 @@ INITIALIZE
PSD_p = create_darr2d(nx, ny);
PSD_p2 = create_darr2d(nx, ny);

for (i=0; i<nx; i++){
for (j=0; j<ny; j++){
PSD_N[i][j] = 0;
PSD_p[i][j] = 0;
PSD_p2[i][j] = 0;
}
}

// Use instance name for monitor output if no input was given
if (!strcmp(filename,"\0")) sprintf(filename,"%s",NAME_CURRENT_COMP);
%}
Expand Down

0 comments on commit dfa10b8

Please sign in to comment.