Skip to content

Commit

Permalink
fix issue #96
Browse files Browse the repository at this point in the history
  • Loading branch information
adokter committed Nov 8, 2019
1 parent 9de9a68 commit 83106a8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/libvol2bird.c
Original file line number Diff line number Diff line change
Expand Up @@ -3972,8 +3972,8 @@ void vol2birdCalcProfiles(vol2bird_t* alldata) {

free((void*) yObs);
free((void*) yFitted);
free((void*) yNyquist);
free((void*) yDealias);
free((void*) yNyquist);
free((void*) yDealias);
free((void*) pointsSelection);
free((void*) includedIndex);

Expand All @@ -3994,10 +3994,6 @@ void vol2birdCalcProfiles(vol2bird_t* alldata) {
if (alldata->misc.scatterersAreNotBirds[iLayer] == TRUE){
alldata->profiles.profile[iLayer*alldata->profiles.nColsProfile + 12] = 0.0;
}
// set bird density values to zero if hasGap:
if (hasGap && birdDensity>0){
alldata->profiles.profile[iLayer*alldata->profiles.nColsProfile + 12] = 0.0;
}
}

} // endfor (iLayer = 0; iLayer < nLayers; iLayer++)
Expand Down

0 comments on commit 83106a8

Please sign in to comment.