-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Courtney Peverley
committed
Jul 8, 2024
1 parent
f7e9d1f
commit 498dbbb
Showing
3 changed files
with
183 additions
and
148 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,34 +1,30 @@ | ||
module cam_instance | ||
|
||
implicit none | ||
private | ||
save | ||
implicit none | ||
public | ||
|
||
public :: cam_instance_init | ||
integer , public :: atm_id | ||
integer , public :: inst_index | ||
character(len=16), public :: inst_name | ||
character(len=16), public :: inst_suffix | ||
|
||
integer, public :: atm_id | ||
integer, public :: inst_index | ||
character(len=16), public :: inst_name | ||
character(len=16), public :: inst_suffix | ||
|
||
!============================================================================== | ||
!=============================================================================== | ||
CONTAINS | ||
!============================================================================== | ||
|
||
subroutine cam_instance_init(atm_id_in, inst_name_in, inst_index_in, & | ||
inst_suffix_in) | ||
! Dummy arguments | ||
integer, intent(in) :: atm_id_in | ||
character(len=*), intent(in) :: inst_name_in | ||
integer, intent(in) :: inst_index_in | ||
character(len=*), intent(in) :: inst_suffix_in | ||
|
||
! The following sets the module variables | ||
atm_id = atm_id_in | ||
inst_name = inst_name_in | ||
inst_index = inst_index_in | ||
inst_suffix = inst_suffix_in | ||
|
||
end subroutine cam_instance_init | ||
!=============================================================================== | ||
|
||
subroutine cam_instance_init(atm_id_in, inst_name_in, inst_index_in, inst_suffix_in) | ||
|
||
integer , intent(in) :: atm_id_in | ||
character(len=*) , intent(in) :: inst_name_in | ||
integer , intent(in) :: inst_index_in | ||
character(len=*) , intent(in) :: inst_suffix_in | ||
|
||
! The following sets the module variables | ||
atm_id = atm_id_in | ||
inst_name = inst_name_in | ||
inst_index = inst_index_in | ||
inst_suffix = inst_suffix_in | ||
|
||
end subroutine cam_instance_init | ||
|
||
end module cam_instance |
This file contains 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 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