Merge branch 'development' into stopcriterion to correct memory leak

stopcriterion
Cirdans-Home 5 years ago
commit e680f2092f

@ -54,6 +54,9 @@ subroutine mld_c_base_onelev_free(lv,info)
if (allocated(lv%sm)) & if (allocated(lv%sm)) &
& call lv%sm%free(info) & call lv%sm%free(info)
if (allocated(lv%sm2a)) &
& call lv%sm2a%free(info)
if (allocated(lv%wrk)) & if (allocated(lv%wrk)) &
& call lv%wrk%free(info) & call lv%wrk%free(info)

@ -54,6 +54,9 @@ subroutine mld_d_base_onelev_free(lv,info)
if (allocated(lv%sm)) & if (allocated(lv%sm)) &
& call lv%sm%free(info) & call lv%sm%free(info)
if (allocated(lv%sm2a)) &
& call lv%sm2a%free(info)
if (allocated(lv%wrk)) & if (allocated(lv%wrk)) &
& call lv%wrk%free(info) & call lv%wrk%free(info)

@ -54,6 +54,9 @@ subroutine mld_s_base_onelev_free(lv,info)
if (allocated(lv%sm)) & if (allocated(lv%sm)) &
& call lv%sm%free(info) & call lv%sm%free(info)
if (allocated(lv%sm2a)) &
& call lv%sm2a%free(info)
if (allocated(lv%wrk)) & if (allocated(lv%wrk)) &
& call lv%wrk%free(info) & call lv%wrk%free(info)

@ -54,6 +54,9 @@ subroutine mld_z_base_onelev_free(lv,info)
if (allocated(lv%sm)) & if (allocated(lv%sm)) &
& call lv%sm%free(info) & call lv%sm%free(info)
if (allocated(lv%sm2a)) &
& call lv%sm2a%free(info)
if (allocated(lv%wrk)) & if (allocated(lv%wrk)) &
& call lv%wrk%free(info) & call lv%wrk%free(info)

Loading…
Cancel
Save