Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
marinerhemant committed Feb 7, 2025
1 parent 0be7e3e commit 1316006
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FF_HEDM/src/findSingleSolutionPF.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,17 +345,21 @@ main(int argc, char *argv[])
allSpotIDsT[nAllSpots+j].ringNr = (int)AllSpots[10*(IDArrThis[j]-1)+5];
allSpotIDsT[nAllSpots+j].grainNr = i;
allSpotIDsT[nAllSpots+j].spotNr = j;
int count=0;
for (k=0;k<nAllSpots+j;k++){
if (allSpotIDsT[k].ringNr == allSpotIDsT[nAllSpots+j].ringNr){
if (fabs(allSpotIDsT[nAllSpots+j].omega - allSpotIDsT[k].omega) < tolOme){
if (fabs(allSpotIDsT[nAllSpots+j].eta - allSpotIDsT[k].eta) < tolEta){
IsNotUniqueSpot[k] = true;
IsNotUniqueSpot[nAllSpots+j] = true;
count++;
}
}
}
}
printf("%d ",count);
}
printf("\n");
free(IDArrThis);
nAllSpots+=nSpots;
}
Expand Down

0 comments on commit 1316006

Please sign in to comment.