Skip to content

Commit

Permalink
fix write of inventory init
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaNeedham committed Sep 9, 2024
1 parent b8e4eee commit f208cb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/FatesInventoryInitMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1179,10 +1179,10 @@ subroutine write_inventory_type1(currentSite)
else
ilon_sign = 'W'
end if

write(pss_name_out,'(A8, I2.2, A1, I5.5, A1)') &
write(pss_name_out,'(A8,I2.2,A1,I5.5,A1,A1,I3.3,A1,I5.5,A1,A4)') &
'pss_out_',ilat_int,'.',ilat_dec,ilat_sign,'_',ilon_int,'.',ilon_dec,ilon_sign,'.txt'
write(css_name_out,'(A8, I2.2, A1, A1, I3.3, A1)') &
write(css_name_out,'(A8,I2.2,A1,I5.5,A1,A1,I3.3,A1,I5.5,A1,A4)') &
'css_out_',ilat_int,'.',ilat_dec,ilat_sign,'_',ilon_int,'.',ilon_dec,ilon_sign,'.txt'

pss_file_out = shr_file_getUnit()
Expand All @@ -1208,7 +1208,7 @@ subroutine write_inventory_type1(currentSite)
do while(associated(currentcohort))
icohort=icohort+1
write(css_file_out,*) '0000 ',trim(patch_str), &
currentCohort%dbh,currentCohort%height,currentCohort%pft,currentCohort%n/currentPatch%area
currentCohort%dbh,-3.0_r8,currentCohort%pft,currentCohort%n/currentPatch%area

currentcohort => currentcohort%shorter
end do
Expand Down

0 comments on commit f208cb8

Please sign in to comment.