This repository was archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added deallocators and finalizers in order to track down memory leak.…
… All allocatables are now explicitly deallocated on finalization.
- Loading branch information
Showing
21 changed files
with
908 additions
and
125 deletions.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| submodule(helio_classes) s_helio_util | ||
| use swiftest | ||
| contains | ||
|
|
||
| module subroutine helio_util_final_pl(self) | ||
| !! author: David A. Minton | ||
| !! | ||
| !! Finalize the Helio massive body object - deallocates all allocatables | ||
| implicit none | ||
| ! Arguments | ||
| type(helio_pl), intent(inout) :: self !! Helio massive body object | ||
|
|
||
| call self%dealloc() | ||
|
|
||
| return | ||
| end subroutine helio_util_final_pl | ||
|
|
||
|
|
||
| module subroutine helio_util_final_system(self) | ||
| !! author: David A. Minton | ||
| !! | ||
| !! Finalize the Helio nbody system object - deallocates all allocatables | ||
| implicit none | ||
| ! Arguments | ||
| type(helio_nbody_system), intent(inout) :: self !! Helio nbody system object | ||
|
|
||
| call self%dealloc() | ||
|
|
||
| return | ||
| end subroutine helio_util_final_system | ||
|
|
||
|
|
||
| module subroutine helio_util_final_tp(self) | ||
| !! author: David A. Minton | ||
| !! | ||
| !! Finalize the Helio test particle object - deallocates all allocatables | ||
| implicit none | ||
| ! Arguments | ||
| type(helio_tp), intent(inout) :: self !! Helio test particle object | ||
|
|
||
| call self%dealloc() | ||
|
|
||
| return | ||
| end subroutine helio_util_final_tp | ||
|
|
||
| end submodule s_helio_util |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.