Skip to content

Commit

Permalink
[gpkde, memory, deallocate] solves minor memory leak, deallocating di…
Browse files Browse the repository at this point in the history
…mensions array in kernel module, passing cleanly through valgrind.
  • Loading branch information
rodrperezi committed Aug 8, 2024
1 parent a7ceabb commit d795dd1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/GridProjectedKDE.F90
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module GridProjectedKDEModule
fSIX, fEIGHT, pi, sqrtEightPi
use HistogramModule, only : HistogramType
use KernelMultiGaussianModule, only : InitializeKernelDimensions, &
ResetKernelDimensions, &
KernelMultiGaussianType, &
KernelSecondDerivativeXType, &
KernelSecondDerivativeYType, &
Expand Down Expand Up @@ -1121,8 +1122,10 @@ subroutine prReset( this )

if ( associated(this%histogramCounts) ) this%histogramCounts => null()
if ( associated(this%histogramWCounts) ) this%histogramWCounts => null()


!
! -- reset in kernel module
call ResetKernelDimensions()
!
end subroutine prReset


Expand Down

0 comments on commit d795dd1

Please sign in to comment.