Skip to content
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
394 changes: 394 additions & 0 deletions drivers/ccpp/catchem_wrapper_utils.F90

Large diffs are not rendered by default.

774 changes: 774 additions & 0 deletions drivers/ccpp/ccpp_catchem_interface.F90

Large diffs are not rendered by default.

Loading
Loading