Skip to content

Commit

Permalink
fix rhoa when lowest_temp is 0.0
Browse files Browse the repository at this point in the history
* provide default value for rhoa when imported temp_height_lowest
(Tair) is 0.0
* resolves seg fault when frac_grid=false and do_ca=true
  • Loading branch information
DeniseWorthen committed Sep 15, 2021
1 parent cd021b5 commit 5cb78cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cicecore/drivers/nuopc/cmeps/ice_import_export.F90
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ subroutine ice_import( importState, rc )
rhoa(i,j,iblk) = inst_pres_height_lowest / &
(287.058_ESMF_KIND_R8*(1._ESMF_KIND_R8+0.608_ESMF_KIND_R8*Qa(i,j,iblk))*Tair(i,j,iblk))
else
rhoa(i,j,iblk) = 0._ESMF_KIND_R8
rhoa(i,j,iblk) = 1.2_ESMF_KIND_R8
endif
end do !i
end do !j
Expand Down

0 comments on commit 5cb78cd

Please sign in to comment.