Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Méso-NH code
Commits
98ea881d
Commit
98ea881d
authored
5 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 11/03/2020: bugfix: add present checks before working on optional arrays
parent
dc1002db
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MNH/mnhget_surf_paramn.f90
+10
-14
10 additions, 14 deletions
src/MNH/mnhget_surf_paramn.f90
with
10 additions
and
14 deletions
src/MNH/mnhget_surf_paramn.f90
+
10
−
14
View file @
98ea881d
!MNH_LIC Copyright
1994
-20
14
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC Copyright
2003
-20
20
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 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.
!-----------------------------------------------------------------
!--------------- special set of characters for RCS information
!-----------------------------------------------------------------
! $Source$ $Revision$
! MASDEV4_7 surfex 2006/10/24 10:43:18
!-----------------------------------------------------------------
! #######################
MODULE
MODI_MNHGET_SURF_PARAM_n
! #######################
...
...
@@ -84,7 +79,8 @@ END MODULE MODI_MNHGET_SURF_PARAM_n
!! S. Donier 06/2015 : bug surface aerosols
!! 06/2016 (G.Delautier) phasage surfex 8
!! 01/2018 (G.Delautier) SURFEX 8.1
!! 11/2019 C.Lac correction in the drag formula and application to building in addition to tree
! C. Lac 11/2019: correction in the drag formula and application to building in addition to tree
! P. Wautelet 11/03/2020: bugfix: add present checks before working on optional arrays
!-------------------------------------------------------------------------------
!
!* 0. DECLARATIONS
...
...
@@ -260,15 +256,15 @@ IF (PRESENT(PH_TREE) .OR.PRESENT(PLAI_TREE)) THEN
YSURF_CUR
%
WM
,
YSURF_CUR
%
DUO
,
YSURF_CUR
%
DU
,
YSURF_CUR
%
UG
,&
YSURF_CUR
%
U
,
YSURF_CUR
%
USS
,&
'MESONH'
,
ILU
,
1
,
PNATURE
=
ZNATURE
,
PLAI_TREE
=
ZLAI
,
PH_TREE
=
ZVH
)
CALL
REMOVE_HALO
(
ZLAI
,
PLAI_TREE
)
CALL
REMOVE_HALO
(
ZVH
,
PH_TREE
)
IF
(
PRESENT
(
PLAI_TREE
)
)
CALL
REMOVE_HALO
(
ZLAI
,
PLAI_TREE
)
IF
(
PRESENT
(
PH_TREE
)
)
CALL
REMOVE_HALO
(
ZVH
,
PH_TREE
)
DEALLOCATE
(
ZVH
)
DEALLOCATE
(
ZLAI
)
END
IF
!
IF
(
PRESENT
(
PWALL_O_HOR
)
.OR.
PRESENT
(
PBUILD_HEIGHT
))
THEN
PBUILD_HEIGHT
(:,:)
=
XUNDEF
PWALL_O_HOR
(:,:)
=
XUNDEF
IF
(
PRESENT
(
PBUILD_HEIGHT
)
)
PBUILD_HEIGHT
(:,:)
=
XUNDEF
IF
(
PRESENT
(
PWALL_O_HOR
)
)
PWALL_O_HOR
(:,:)
=
XUNDEF
ALLOCATE
(
ZBUILD_HEIGHT
(
ILU
))
ALLOCATE
(
ZWALL_O_HOR
(
ILU
))
CALL
GET_SURF_VAR_n
(
YSURF_CUR
%
FM
,
YSURF_CUR
%
IM
,
YSURF_CUR
%
SM
,
YSURF_CUR
%
TM
,
&
...
...
@@ -276,8 +272,8 @@ IF (PRESENT(PWALL_O_HOR) .OR. PRESENT(PBUILD_HEIGHT)) THEN
YSURF_CUR
%
U
,
YSURF_CUR
%
USS
,&
'MESONH'
,
ILU
,
1
,
PTOWN
=
ZTOWN
,
&
PWALL_O_HOR
=
ZWALL_O_HOR
,
PBUILD_HEIGHT
=
ZBUILD_HEIGHT
)
CALL
REMOVE_HALO
(
ZBUILD_HEIGHT
,
PBUILD_HEIGHT
)
CALL
REMOVE_HALO
(
ZWALL_O_HOR
,
PWALL_O_HOR
)
IF
(
PRESENT
(
PBUILD_HEIGHT
)
)
CALL
REMOVE_HALO
(
ZBUILD_HEIGHT
,
PBUILD_HEIGHT
)
IF
(
PRESENT
(
PWALL_O_HOR
)
)
CALL
REMOVE_HALO
(
ZWALL_O_HOR
,
PWALL_O_HOR
)
DEALLOCATE
(
ZBUILD_HEIGHT
)
DEALLOCATE
(
ZWALL_O_HOR
)
END
IF
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment