Ignore:
Timestamp:
Jun 21, 2021, 5:15:02 PM (4 years ago)
Author:
Ehouarn Millour
Message:

Nudging: fix the problem of having one extra step in the output guide_ins.nc file. This is done by reseting ok_guide to .false. once the restart file is generated, and thus in the ultimate forward Matsuno step that is done afterwards, nudging is not called.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d/leapfrog.F

    r3416 r3947  
    748748
    749749              CLOSE(99)
     750              if (ok_guide) then
     751                ! set ok_guide to false to avoid extra output
     752                ! in following forward step
     753                ok_guide=.false.
     754              endif
    750755              !!! Ehouarn: Why not stop here and now?
    751756            ENDIF ! of IF (itau.EQ.itaufin)
     
    868873     &                           vcov,ucov,teta,q,masse,ps)
    869874!                endif ! of if (planet_type.eq."earth")
     875                if (ok_guide) then
     876                  ! set ok_guide to false to avoid extra output
     877                  ! in following forward step
     878                  ok_guide=.false.
     879                endif
    870880              ENDIF ! of IF(itau.EQ.itaufin)
    871881
Note: See TracChangeset for help on using the changeset viewer.