Skip to content

Commit

Permalink
Bug fix for runs where CLUBB_SGS is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Katetc committed Jul 31, 2024
1 parent a251e59 commit b52730b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/physics/cam/clubb_intr.F90
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,22 @@ module clubb_intr
#endif

implicit none

#ifdef CLUBB_SGS
! Variables that contains all the statistics

type (stats), target, save :: stats_zt(pcols), & ! stats_zt grid
stats_zm(pcols), & ! stats_zm grid
stats_rad_zt(pcols), & ! stats_rad_zt grid
stats_rad_zm(pcols), & ! stats_rad_zm grid
stats_sfc(pcols) ! stats_sfc

type (stats_metadata_type) :: &
stats_metadata

type (hm_metadata_type) :: &
hm_metadata

type (stats_metadata_type) :: &
stats_metadata

type (sclr_idx_type) :: &
sclr_idx

#endif

private
Expand Down Expand Up @@ -103,6 +101,7 @@ module clubb_intr
! ------------------------ !
! Sometimes private data !
! ------------------------ !
#ifdef CLUBB_SGS
#ifdef SILHS
! If SILHS is in use, it will initialize these
public :: &
Expand All @@ -116,7 +115,8 @@ module clubb_intr
pdf_dim, &
hm_metadata
#endif

#endif

! ------------ !
! Private data !
! ------------ !
Expand Down

0 comments on commit b52730b

Please sign in to comment.