forked from ESCOMP/CTSM
-
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.
Converting latest batch of refactors. Not expected to compile or do a…
…nything.
- Loading branch information
1 parent
092b1a8
commit 565e828
Showing
4 changed files
with
185 additions
and
90 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
module lilac_api_types | ||
|
||
implicit none | ||
|
||
use lilac_constants, only : STRING_128 | ||
|
||
contains | ||
|
||
type :: lilac_init_data_t | ||
character(len=STRING_32) :: component_name | ||
integer :: mpicom_lilac | ||
integer :: mpicom_component | ||
integer :: output_unit_lilac | ||
integer :: output_unit_global_shared ! this should be the same for all instances of lilac! | ||
integer :: output_unit_component | ||
|
||
end type lilac_init_data_t | ||
|
||
type :: lilac_clock_data_t | ||
logical :: calendar_is_leap | ||
integer :: start_year | ||
integer :: start_month | ||
integer :: start_day | ||
integer :: start_second ! seconds since midnight | ||
|
||
integer :: stop_year | ||
integer :: stop_month | ||
integer :: stop_day | ||
integer :: stop_second ! seconds since midnight | ||
|
||
integer :: time_step_seconds | ||
end type lilac_clock_data_t | ||
|
||
|
||
type :: lilac_exchange_fields_t | ||
character(len=STRING_128) :: long_name | ||
character(len=STRING_128) :: short_name | ||
character(len=STRING_128) :: field_name | ||
character(len=STRING_128) :: units | ||
integer :: field_type | ||
end type lilac_exchange_fields_t | ||
|
||
end module lilac_api_types |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module lilac_constants | ||
|
||
implicit none | ||
|
||
contains | ||
|
||
integer, parameter :: STRING_128 = 128 | ||
integer, parameter :: STRING_32 = 32 | ||
|
||
integer, parameter :: FIELD_TYPE_INTEGER = 0 | ||
integer, parameter :: FIELD_TYPE_REAL_8BYTE = 1 | ||
|
||
! known models names | ||
character(len=*), parameter :: MODEL_NAME_LILAC = 'lilac' | ||
character(len=*), parameter :: MODEL_NAME_CTSM = 'ctsm' | ||
character(len=*), parameter :: MODEL_NAME_TEST = 'test' | ||
|
||
end module lilac_constants |