From 90606007f0d297d363b75ccd4ceb4927fb5828b4 Mon Sep 17 00:00:00 2001 From: Quentin Rodier <quentin.rodier@meteo.fr> Date: Tue, 27 Oct 2020 11:23:54 +0100 Subject: [PATCH] Quentin 27/10/2020: SURFEX v9, mis-usage of YRECFM (of size = LEN_HREC) variable for a comment variable. In SURFEX offline, LEN_HREC=12 which is not compatible here. --- src/SURFEX/write_bld_descriptionn.F90 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/SURFEX/write_bld_descriptionn.F90 b/src/SURFEX/write_bld_descriptionn.F90 index 8f71b236d..8ab77a32c 100644 --- a/src/SURFEX/write_bld_descriptionn.F90 +++ b/src/SURFEX/write_bld_descriptionn.F90 @@ -70,7 +70,6 @@ INTEGER :: IRESP INTEGER :: I1, I2 INTEGER :: JL INTEGER :: ITOT - CHARACTER(LEN=LEN_HREC) :: YRECFM CHARACTER(LEN=100) :: YCOMMENT !------------------------------------------------------------------------------- !------------------------------------------------------------------------------- @@ -92,9 +91,8 @@ ZWORK(5) = FLOAT(BDD%NDESC_ROOF_LAYER) ZWORK(6) = FLOAT(BDD%NDESC_ROAD_LAYER) ZWORK(7) = FLOAT(BDD%NDESC_FLOOR_LAYER) ! -YRECFM='Bld_dimensions ' YCOMMENT='Configuration numbers for descriptive building data' - CALL WRITE_SURF(HSELECT, HPROGRAM,'BLD_DESC_CNF',ZWORK,IRESP,YCOMMENT,'-',YRECFM) + CALL WRITE_SURF(HSELECT, HPROGRAM,'BLD_DESC_CNF',ZWORK,IRESP,YCOMMENT,'-','Bld_dimensions ') DEALLOCATE(ZWORK) ! !------------------------------------------------------------------------------- @@ -183,9 +181,8 @@ END DO CALL UP_DESC_IND_W(BDD%NDESC_AGE) ; ZWORK(I1:I2) = FLOAT(BDD%NDESC_AGE_DATE(:)) ! YCOMMENT='Descriptive building data' -YRECFM='Bld_parameters ' CALL WRITE_SURF(HSELECT, & - HPROGRAM,'BLD_DESC_DAT',ZWORK,IRESP,YCOMMENT,'-',YRECFM) + HPROGRAM,'BLD_DESC_DAT',ZWORK,IRESP,YCOMMENT,'-','Bld_parameters ') DEALLOCATE(ZWORK) ! IF (LHOOK) CALL DR_HOOK('WRITE_BLD_DESCRIPTION_n',1,ZHOOK_HANDLE) -- GitLab