We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 589f263 commit e7b332fCopy full SHA for e7b332f
radiation/TwoStreamMLPEMod.F90
@@ -979,10 +979,12 @@ subroutine ZenithPrep(this,cosz_in)
979
iter_sing = 0
980
981
! Compute the singularity for all bands
982
- Kb_sing(:) = this%band(:)%scelb(ican,icol)%a
983
- if (scelg%lai>nearzero) then
984
- Kb_sing(:) = (Kb_sing(:) * (scelg%lai+scelg%sai) - scelg%sai*Kb_stem)/scelg%lai
985
- end if
+ do ib = 1,this%n_bands
+ Kb_sing(ib) = this%band(ib)%scelb(ican,icol)%a
+ if (scelg%lai>nearzero) then
+ Kb_sing(ib) = (Kb_sing(ib) * (scelg%lai+scelg%sai) - scelg%sai*Kb_stem)/scelg%lai
986
+ end if
987
+ end do
988
989
do_test_sing: do while(is_sing)
990
! Now that we have commited to testing it, assume the solution works
0 commit comments