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.
Merge pull request #1 from billsacks/agsys
Organize agsys into 3 subdirectories
- Loading branch information
Showing
13 changed files
with
139 additions
and
71 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 was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,40 @@ | ||
module AgSysParamReader | ||
|
||
!----------------------------------------------------------------------- | ||
! !DESCRIPTION: | ||
! Routines for reading AgSys's time-constant parameters | ||
! | ||
! !USES: | ||
#include "shr_assert.h" | ||
use shr_kind_mod , only : r8 => shr_kind_r8 | ||
use shr_infnan_mod , only : nan => shr_infnan_nan, assignment(=) | ||
use AgSysParams , only : agsys_params_type | ||
! | ||
implicit none | ||
private | ||
|
||
! !PUBLIC ROUTINES: | ||
public :: ReadParams | ||
|
||
character(len=*), parameter, private :: sourcefile = & | ||
__FILE__ | ||
|
||
contains | ||
|
||
!----------------------------------------------------------------------- | ||
subroutine ReadParams(params) | ||
! | ||
! !DESCRIPTION: | ||
! Read parameters | ||
! | ||
! !ARGUMENTS: | ||
type(agsys_params_type), intent(inout) :: params | ||
! | ||
! !LOCAL VARIABLES: | ||
|
||
character(len=*), parameter :: subname = 'ReadParams' | ||
!----------------------------------------------------------------------- | ||
|
||
end subroutine ReadParams | ||
|
||
end module AgSysParamReader |
File renamed without changes.
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,3 @@ | ||
This directory contains modules that are specific to the CTSM | ||
implementation of AgSys. Furthermore, CTSM should only interact with | ||
AgSys via the modules here. |
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,17 @@ | ||
module AgSysKinds | ||
|
||
!----------------------------------------------------------------------- | ||
! !DESCRIPTION: | ||
! Kind parameters needed by AgSys | ||
! | ||
! !USES: | ||
use shr_kind_mod , only : r8 => shr_kind_r8 | ||
! | ||
implicit none | ||
private | ||
|
||
! !PUBLIC DATA: | ||
|
||
public :: r8 ! imported from shr_kind_mod | ||
|
||
end module AgSysKinds |
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,7 @@ | ||
The modules here provide wrappers to constants, variables and low-level | ||
routines in CTSM that are used by the AgSys science code in order to | ||
make it operate consistently with the rest of CTSM. If AgSys were | ||
plugged in to a different land model, the code in this directory would | ||
need to be replaced by alternatives that provided the same interface but | ||
referenced constants, variables and routines that are available in the | ||
given host model. |
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,20 @@ | ||
module AgSysConstants | ||
|
||
!----------------------------------------------------------------------- | ||
! !DESCRIPTION: | ||
! Constants needed throughout AgSys | ||
! | ||
! !USES: | ||
|
||
! | ||
implicit none | ||
private | ||
|
||
! !PUBLIC DATA: | ||
|
||
! Crop types | ||
integer, parameter, public :: crop_type_maize = 1 | ||
integer, parameter, public :: crop_type_soybean = 2 | ||
integer, parameter, public :: crop_type_maxval = 2 | ||
|
||
end module AgSysConstants |
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,26 @@ | ||
module AgSysParams | ||
|
||
!----------------------------------------------------------------------- | ||
! !DESCRIPTION: | ||
! Derived type holding AgSys's time-constant parameters, defining various crops and | ||
! cultivars | ||
! | ||
! Variables with suffix '_crop' are indexed by crop_type; variables with suffix | ||
! '_cultivar' are indexed by cultivar. | ||
! | ||
! !USES: | ||
use AgSysKinds, only : r8 | ||
! | ||
implicit none | ||
private | ||
|
||
! !PUBLIC TYPES: | ||
type, public :: agsys_params_type | ||
private | ||
|
||
! Public data members | ||
real(r8), allocatable, public :: shoot_lag_cultivar(:) | ||
real(r8), allocatable, public :: shoot_rate_cultivar(:) | ||
end type agsys_params_type | ||
|
||
end module AgSysParams |
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,7 @@ | ||
This directory contains the science implementation of AgSys. Modules | ||
here should not depend on CTSM data structures or routines, so that this | ||
directory could be copied in its entirety into another land model. The | ||
only dependencies should be on (1) other modules in this directory, and | ||
(2) modules in the ctsm_wrappers subdirectory. The latter would be | ||
replaced by a different set of wrappers if AgSys were imported into a | ||
different land model. |