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.
Moved encounter type up to swiftest_classes so that the fragmentation…
… code can be written independently of SyMBA
- Loading branch information
Showing
4 changed files
with
59 additions
and
22 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| submodule(swiftest_classes) s_util_copy | ||
| use swiftest | ||
| contains | ||
|
|
||
| module subroutine util_copy_encounter(self, source) | ||
| !! author: David A. Minton | ||
| !! | ||
| !! Copies elements from the source encounter list into self. | ||
| implicit none | ||
| ! Arguments | ||
| class(swiftest_encounter), intent(inout) :: self !! Encounter list | ||
| class(swiftest_encounter), intent(in) :: source !! Source object to copy into | ||
|
|
||
| associate(n => source%nenc) | ||
| self%nenc = n | ||
| self%lvdotr(1:n) = source%lvdotr(1:n) | ||
| self%status(1:n) = source%status(1:n) | ||
| self%index1(1:n) = source%index1(1:n) | ||
| self%index2(1:n) = source%index2(1:n) | ||
| end associate | ||
|
|
||
| return | ||
| end subroutine util_copy_encounter | ||
|
|
||
| end submodule s_util_copy |