We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e39b6c0 commit fc860faCopy full SHA for fc860fa
fortran/DarkEnergyInterface.f90
@@ -289,8 +289,8 @@ end subroutine TDarkEnergyEqnOfState_Init
289
subroutine TDarkEnergyEqnOfState_Free(this)
290
type(TDarkEnergyEqnOfState), intent(inout) :: this
291
292
- if (allocated(this%equation_of_state)) deallocate(this%equation_of_state)
293
- if (allocated(this%logdensity)) deallocate(this%logdensity)
+ call this%equation_of_state%Clear()
+ call this%logdensity%Clear()
294
295
end subroutine TDarkEnergyEqnOfState_Free
296
#endif
0 commit comments