From 08c78224d702905578616ab8684a3a39048cd6ec Mon Sep 17 00:00:00 2001 From: James Noss Date: Fri, 5 Oct 2018 09:40:41 -0400 Subject: [PATCH] Remove unnecessary crit-sec in WFC3 CTE Resolves #362 This critical section isn't actually needed since the array access isn't thread overlapping. If it were, the entire core parallel CTE computation above would not be possible as it too would need to be within in a crit-sec. Signed-off-by: James Noss --- pkg/wfc3/calwf3/wf3cte/wf3cte.c | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/wfc3/calwf3/wf3cte/wf3cte.c b/pkg/wfc3/calwf3/wf3cte/wf3cte.c index 83cf2edfb..c73d768bb 100644 --- a/pkg/wfc3/calwf3/wf3cte/wf3cte.c +++ b/pkg/wfc3/calwf3/wf3cte/wf3cte.c @@ -1356,7 +1356,6 @@ int inverse_cte_blur(SingleGroup *rsz, SingleGroup *rsc, SingleGroup *fff, CTEPa } while (REDO); /*replacing goto 9999*/ } /*totflux > 1, catch for subarrays*/ -#pragma omp critical (cte) for (j=0; j< RAZ_ROWS; j++){ if (Pix(rz.dq.data,i,j)){ Pix(rc.sci.data,i,j)= pix_modl[j];