Skip to content

Commit

Permalink
Addressing first review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Katetc committed Jul 29, 2024
1 parent 88d8c3a commit 55db0bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 1 addition & 7 deletions src/physics/cam/clubb_intr.F90
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,12 @@ module clubb_intr
type (stats_metadata_type) :: &
stats_metadata

!$omp threadprivate(stats_metadata)

type (hm_metadata_type) :: &
hm_metadata

!$omp threadprivate(hm_metadata)

type (sclr_idx_type) :: &
sclr_idx

!$omp threadprivate(sclr_idx)

#endif

private
Expand Down Expand Up @@ -100,7 +94,7 @@ module clubb_intr
real(r8), dimension(nparams), public :: clubb_params_single_col ! Adjustable CLUBB parameters (C1, C2 ...)
#endif

! These are zero by default, but will be set by SILHS before
! These are zero by default, but will be set by SILHS before they are used by subcolumns
integer :: &
hydromet_dim = 0, &
pdf_dim = 0
Expand Down
6 changes: 3 additions & 3 deletions src/physics/cam/subcol_SILHS.F90
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ subroutine subcol_init_SILHS(pbuf2d)
iiNi, & ! Hydrometeor array index for ice concentration, Ni
iiNg ! Hydrometeor array index for graupel concentration, Ng

integer :: l ! Loop variable
integer :: l, ierr=0 ! Loop variable, error check

! Set CLUBB's debug level
! This is called in module clubb_intr; no need to do it here.
Expand Down Expand Up @@ -474,8 +474,8 @@ subroutine subcol_init_SILHS(pbuf2d)
!-------------------------------
! Set up hydrometeors and correlation arrays for SILHS
!-------------------------------
allocate(corr_array_n_cloud(pdf_dim,pdf_dim))
allocate(corr_array_n_below(pdf_dim,pdf_dim))
allocate( corr_array_n_cloud(pdf_dim,pdf_dim), corr_array_n_below(pdf_dim,pdf_dim), stat=ierr)
if( ierr /= 0 ) call endrun(' subcol_init_SILHS: failed to allocate corr_array fields ')

corr_file_path_cloud = trim( subcol_SILHS_corr_file_path )//trim( subcol_SILHS_corr_file_name )//cloud_file_ext
corr_file_path_below = trim( subcol_SILHS_corr_file_path )//trim( subcol_SILHS_corr_file_name )//below_file_ext
Expand Down

0 comments on commit 55db0bb

Please sign in to comment.