Skip to content

Commit

Permalink
implemented bug fix 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
rurata committed Apr 12, 2023
1 parent 0636208 commit f313e61
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 7 additions & 2 deletions code/initcld.f
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ subroutine initcld
d_nuc = a0 / sqrt(2.)

c Contact parameter of water ice on dust ( m=cos(theta) )
! mteta = 0.95 !Franck's number
mteta = 0.975 !Franck recommends - newer value
mteta = 0.95 !Franck's number
! mteta = 0.975 !Franck recommends - newer value
c nu_eff = exp( dev^2) - 1
c Standard deviation of the dust distribution
Expand Down Expand Up @@ -189,6 +189,11 @@ subroutine initcld
enddo
enddo
print*,'qexti 1 = ',qexti_dst(1,:)
print*,'qscati 1 = ',qscati_dst(1,:)
print*,'gi 1 = ',gi_dst(1,:)
close(60)
close(61)
close(62)
Expand Down
3 changes: 3 additions & 0 deletions code/optci.f90
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ SUBROUTINE OPTCI(DTAUI,TAUCUMI,CO2I,PLEV,PFGASREF,TGASREF, &
real*8 :: QREFV(L_LEVELS+1)
real*8 :: TAUREF(L_LEVELS+1)
real*8 :: TAUREF_save(L_LEVELS+1)
real*8 :: TAUREFCLD_save(L_LEVELS+1)

! For clouds
real*8 :: Qxicld(L_LEVELS+1,L_NSPECTI)
Expand Down Expand Up @@ -97,6 +98,7 @@ SUBROUTINE OPTCI(DTAUI,TAUCUMI,CO2I,PLEV,PFGASREF,TGASREF, &

do k=1,L_LEVELS+1
tauref_save(k) = tauref(k)
taurefcld_save(k) = taurefcld(k)
end do

! Determine the total gas opacity throughout the column, for each
Expand Down Expand Up @@ -270,6 +272,7 @@ SUBROUTINE OPTCI(DTAUI,TAUCUMI,CO2I,PLEV,PFGASREF,TGASREF, &

do k=1,L_LEVELS+1
tauref(k) = tauref_save(k)
taurefcld(k) = taurefcld_save(k)
end do

RETURN
Expand Down
3 changes: 3 additions & 0 deletions code/optcv.f90
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ SUBROUTINE OPTCV(DTAUV,TAUV,TAUCUMV,CO2V,PLEV,PFGASREF, &
real*8 :: Qextref(L_LEVELS+1)
real*8 :: TAUREF(L_LEVELS+1)
real*8 :: TAUREF_save(L_LEVELS+1)
real*8 :: TAUREFCLD_save(L_LEVELS+1)

! For clouds
real*8 :: Qxvcld(L_LEVELS+1,L_NSPECTV)
Expand Down Expand Up @@ -85,6 +86,7 @@ SUBROUTINE OPTCV(DTAUV,TAUV,TAUCUMV,CO2V,PLEV,PFGASREF, &

do k=1,L_LEVELS+1
tauref_save(k) = tauref(k)
taurefcld_save(k) = taurefcld(k)
end do

! Determine the total gas opacity throughout the column, for each
Expand Down Expand Up @@ -275,6 +277,7 @@ SUBROUTINE OPTCV(DTAUV,TAUV,TAUCUMV,CO2V,PLEV,PFGASREF, &

do k=1,L_LEVELS+1
tauref(k) = tauref_save(k)
taurefcld(k) = taurefcld_save(k)
end do

RETURN
Expand Down

0 comments on commit f313e61

Please sign in to comment.