Skip to content
Snippets Groups Projects
Commit 57173057 authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

P. Wautelet 25/01/2021: bugfix: do not call Write_budget at the beginning of the simulation

(cherry picked from commit 58270fcf)
parent 5eb10090
No related branches found
No related tags found
No related merge requests found
!MNH_LIC Copyright 1994-2018 CNRS, Meteo-France and Universite Paul Sabatier !MNH_LIC Copyright 1995-2021 CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence !MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
!MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt !MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
!MNH_LIC for details. version 1. !MNH_LIC for details. version 1.
!----------------------------------------------------------------- !-----------------------------------------------------------------
!########################## !##########################
...@@ -94,8 +94,8 @@ END MODULE MODI_ENDSTEP_BUDGET ...@@ -94,8 +94,8 @@ END MODULE MODI_ENDSTEP_BUDGET
!! N. Asensio 22/06/99 // MASK case : delete KIU,KJU,KKU arguments !! N. Asensio 22/06/99 // MASK case : delete KIU,KJU,KKU arguments
!! and change the write_budget call !! and change the write_budget call
!! C.Lac 11/09/15 adaptation to FIT temporal scheme !! C.Lac 11/09/15 adaptation to FIT temporal scheme
! Philippe Wautelet: 05/2016-04/2018: new data structures and calls for I/O ! P. Wautelet: 05/2016-04/2018: new data structures and calls for I/O
!! ! P. Wautelet 25/01/2021: bugfix: do not call Write_budget at the beginning of the simulation
!------------------------------------------------------------------------------- !-------------------------------------------------------------------------------
! !
!* 0. DECLARATIONS !* 0. DECLARATIONS
...@@ -121,15 +121,18 @@ INTEGER, INTENT(IN) :: KSV ! Number of Scalar Variables ...@@ -121,15 +121,18 @@ INTEGER, INTENT(IN) :: KSV ! Number of Scalar Variables
! !
!------------------------------------------------------------------------------- !-------------------------------------------------------------------------------
! !
!Do not call Write_budget at the beginning of the simulation (this is necessary in the case were xbulen = xtstep)
IF ( KTCOUNT == 1 ) RETURN
SELECT CASE(CBUTYPE) SELECT CASE(CBUTYPE)
! !
! !
!* 1. 'CART' CASE !* 1. 'CART' CASE
! ----------- ! -----------
! !
CASE('CART','SKIP') CASE('CART','SKIP')
! !
!* 1.1 storage of the budget fields !* 1.1 storage of the budget fields
! !
IF( MODULO(KTCOUNT,NBUSTEP*NBUWRNB) == 0 ) THEN IF( MODULO(KTCOUNT,NBUSTEP*NBUWRNB) == 0 ) THEN
CALL WRITE_BUDGET(TPDIAFILE,TPDTCUR,TPDTMOD,PTSTEP, KSV ) CALL WRITE_BUDGET(TPDIAFILE,TPDTCUR,TPDTMOD,PTSTEP, KSV )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment