Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/ccpp #108

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions drivers/ccpp/catchem_types.F90
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
!> \file catchem_types.F90
!> \brief Container module for CATCHEM model data structures
!>
!> \details
!> Defines the core data structures used by CATCHEM chemistry model including
!> arrays for meteorological states, chemical species concentrations, emissions,
!> and diagnostic outputs. Provides the fundamental data container types needed
!> for chemistry calculations.
!>
!> \author Barry Baker
!>
!> \date 11/2024
!>
!> \ingroup catchem_ccpp_group
!!!>

module catchem_types

use CATChem, only: MetStateType, ChemStateType, EmisStateType, DiagStateType

implicit none
private


!> Container type for CATCHEM model data
!!
!! Holds arrays for meteorological, chemical, emission and diagnostic states
!! along with the horizontal dimension parameter
!!
!! \ingroup catchem_ccpp_group
!!!>
type, public :: catchem_container_type
! Array dimensions
integer :: im = 0 !> Horizontal dimension

! State arrays
type(MetStateType), allocatable :: met_state(:) !> Meteorological state array
type(ChemStateType), allocatable :: chem_state(:) !> Chemical state array
type(EmisStateType), allocatable :: emis_state(:) !> Emission state array
type(DiagStateType), allocatable :: diag_state(:) !> Diagnostic state array

end type catchem_container_type

end module catchem_types
Loading
Loading