We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13b4a0f commit 009a93bCopy full SHA for 009a93b
1 file changed
src/fortran/lib/mod_cache.f90
@@ -23,7 +23,7 @@ function retrieve_probability_density() result(probability_density)
23
real(real32), allocatable :: probability_density(:,:)
24
if(.not.allocated(cached_probability_density)) then
25
write(0,*) "Probability density not allocated. Returning zero array."
26
- probability_density = 0._real32
+ allocate(probability_density(1,1), source = 0._real32)
27
else
28
allocate(probability_density, source = cached_probability_density)
29
end if
0 commit comments