Skip to content

Commit

Permalink
update to external_ic::remap_scale to skip remapping non-existent IC …
Browse files Browse the repository at this point in the history
…tracers (#159)
  • Loading branch information
bensonr authored and laurenchilutti committed Oct 14, 2021
1 parent 03e4164 commit 4823307
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/external_ic.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,7 @@ subroutine remap_scalar(Atm, km, npz, ncnst, ak0, bk0, psc, qa, zh, omga, t_in)

! map tracers
do iq=1,ncnst
if (floor(qa(is,j,1,iq)) > -999) then !skip missing scalars
if (floor(qa(is,j,1,iq)) == -1000) cycle !skip missing scalars [floor(-999.99) is -1000]
do k=1,km
do i=is,ie
qp(i,k) = qa(i,j,k,iq)
Expand All @@ -2871,7 +2871,6 @@ subroutine remap_scalar(Atm, km, npz, ncnst, ak0, bk0, psc, qa, zh, omga, t_in)
Atm%q(i,j,k,iq) = qn1(i,k)
enddo
enddo
endif
enddo

!---------------------------------------------------
Expand Down

0 comments on commit 4823307

Please sign in to comment.