Skip to content

Commit

Permalink
updated naming convention of local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rgknox committed Dec 4, 2024
1 parent b441507 commit 4bff2f2
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions src/utils/clmfates_interfaceMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ subroutine CLMFatesGlobals1(surf_numpft,surf_numcft,maxsoil_patches)
integer,intent(in) :: surf_numpft
integer,intent(in) :: surf_numcft
integer,intent(out) :: maxsoil_patches
integer :: pass_biogeog
integer :: pass_nocomp
integer :: pass_sp
integer :: pass_use_fixed_biogeog
integer :: pass_use_nocomp
integer :: pass_use_sp
integer :: pass_masterproc
integer :: pass_luh
integer :: pass_use_luh2
logical :: verbose_output
type(fates_param_reader_ctsm_impl) :: var_reader

Expand All @@ -322,25 +322,25 @@ subroutine CLMFatesGlobals1(surf_numpft,surf_numcft,maxsoil_patches)
! Send parameters individually

if(use_fates_fixed_biogeog)then
pass_biogeog = 1
pass_use_fixed_biogeog = 1
else
pass_biogeog = 0
pass_use_fixed_biogeog = 0
end if
call set_fates_ctrlparms('use_fixed_biogeog',ival=pass_biogeog)
call set_fates_ctrlparms('use_fixed_biogeog',ival=pass_use_fixed_biogeog)

if(use_fates_nocomp)then
pass_nocomp = 1
pass_use_nocomp = 1
else
pass_nocomp = 0
pass_use_nocomp = 0
end if
call set_fates_ctrlparms('use_nocomp',ival=pass_nocomp)
call set_fates_ctrlparms('use_nocomp',ival=pass_use_nocomp)

if(use_fates_sp)then
pass_sp = 1
pass_use_sp = 1
else
pass_sp = 0
pass_use_sp = 0
end if
call set_fates_ctrlparms('use_sp',ival=pass_sp)
call set_fates_ctrlparms('use_sp',ival=pass_use_sp)

if(masterproc)then
pass_masterproc = 1
Expand All @@ -351,11 +351,11 @@ subroutine CLMFatesGlobals1(surf_numpft,surf_numcft,maxsoil_patches)

! FATES landuse modes
if(use_fates_luh) then
pass_luh = 1
pass_use_luh2 = 1
else
pass_luh = 0
pass_use_luh2 = 0
end if
call set_fates_ctrlparms('use_luh2',ival=pass_luh)
call set_fates_ctrlparms('use_luh2',ival=pass_use_luh2)

end if

Expand Down Expand Up @@ -404,7 +404,6 @@ subroutine CLMFatesGlobals2()
integer :: pass_is_restart
integer :: pass_cohort_age_tracking
integer :: pass_tree_damage
integer :: pass_use_luh
integer :: pass_use_potentialveg
integer :: pass_num_luh_states
integer :: pass_num_luh_transitions
Expand Down

0 comments on commit 4bff2f2

Please sign in to comment.