Changeset 3947


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

Location:
LMDZ6/trunk/libf
Files:
2 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
  • LMDZ6/trunk/libf/dyn3dmem/leapfrog_loc.F

    r3865 r3947  
    15381538c$OMP END MASTER
    15391539
     1540         if (ok_guide) then
     1541           ! set ok_guide to false to avoid extra output
     1542           ! in following forward step
     1543           ok_guide=.false.
     1544         endif
     1545
    15401546#ifdef INCA
    15411547         if (type_trac == 'inca' .OR. type_trac == 'inco') then
     
    16811687     &                           vcov,ucov,teta,q,masse,ps)
    16821688!              endif ! of if (planet_type.eq."earth")
     1689                if (ok_guide) then
     1690                  ! set ok_guide to false to avoid extra output
     1691                  ! in following forward step
     1692                  ok_guide=.false.
     1693                endif
    16831694
    16841695!              CLOSE(99)
     
    18271838     .                               vcov,ucov,teta,q,masse,ps)
    18281839!               endif ! of if (planet_type.eq."earth")
     1840                if (ok_guide) then
     1841                  ! set ok_guide to false to avoid extra output
     1842                  ! in following forward step
     1843                  ok_guide=.false.
     1844                endif
     1845
    18291846              ENDIF ! of IF(itau.EQ.itaufin)
    18301847
Note: See TracChangeset for help on using the changeset viewer.