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
154283ba
Commit
154283ba
authored
7 years ago
by
Gaelle DELAUTIER
Browse files
Options
Downloads
Patches
Plain Diff
Christine 09/2017 : correction on drag tree
parent
3377c0c8
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/SURFEX/get_vegn.F90
+7
-14
7 additions, 14 deletions
src/SURFEX/get_vegn.F90
with
7 additions
and
14 deletions
src/SURFEX/get_vegn.F90
+
7
−
14
View file @
154283ba
...
...
@@ -69,7 +69,6 @@ REAL, DIMENSION(KI), INTENT(OUT) :: PLAI
!
INTEGER
::
JI
,
JJ
! loop index over tiles
INTEGER
::
ILUOUT
! unit numberi
REAL
,
DIMENSION
(
U
%
NSIZE_FULL
)
::
ZH_TREE_FULL
,
ZLAI_FULL
REAL
,
DIMENSION
(
U
%
NSIZE_NATURE
)
::
ZH_TREE
,
ZLAI
,
ZWORK
INTEGER
::
IPATCH_TRBE
,
IPATCH_TRBD
,
IPATCH_TEBE
,
IPATCH_TEBD
,
IPATCH_TENE
,
&
IPATCH_BOBD
,
IPATCH_BONE
,
IPATCH_BOND
...
...
@@ -85,10 +84,6 @@ INTEGER:: IPATCH_TRBE, IPATCH_TRBD, IPATCH_TEBE, IPATCH_TEBD, IPATCH_TENE, &
!* 1. Passage dur le masque global
! -------------------------------
ZH_TREE_FULL
(:)
=
0.
ZLAI_FULL
(:)
=
XUNDEF
IPATCH_TRBE
=
VEGTYPE_TO_PATCH
(
NVT_TRBE
,
I
%
NPATCH
)
IPATCH_TRBD
=
VEGTYPE_TO_PATCH
(
NVT_TRBD
,
I
%
NPATCH
)
IPATCH_TEBE
=
VEGTYPE_TO_PATCH
(
NVT_TEBE
,
I
%
NPATCH
)
...
...
@@ -131,38 +126,36 @@ DO JJ=1,U%NSIZE_NATURE
(
I
%
XLAI
(
JJ
,
IPATCH_BONE
)
*
I
%
XVEGTYPE
(
JJ
,
NVT_BONE
)
)
+
&
(
I
%
XLAI
(
JJ
,
IPATCH_BOND
)
*
I
%
XVEGTYPE
(
JJ
,
NVT_BOND
)
)
ZH_TREE_FULL
(
U
%
NR_NATURE
(
JJ
))
=
ZH_TREE
(
JJ
)
ZLAI_FULL
(
U
%
NR_NATURE
(
JJ
))
=
ZLAI
(
JJ
)
!
END
IF
!
END
DO
!
ZLAI
_FULL
(:)
=
U
%
XNATURE
(:)
*
ZLAI
_FULL
(:)
ZLAI
(:)
=
U
%
XNATURE
(:)
*
ZLAI
(:)
!
!* 2. Envoi les variables vers mesonH
! ------------------------------
IF
(
SIZE
(
PVH
)
/
=
SIZE
(
ZH_TREE
_FULL
)
)
THEN
IF
(
SIZE
(
PVH
)
/
=
SIZE
(
ZH_TREE
)
)
THEN
WRITE
(
ILUOUT
,
*
)
'try to get VH field from atmospheric model, but size is not correct'
WRITE
(
ILUOUT
,
*
)
'size of field expected by the atmospheric model (PVH) :'
,
SIZE
(
PVH
)
WRITE
(
ILUOUT
,
*
)
'size of field inthe surface (XVH) :'
,
SIZE
(
ZH_TREE
_FULL
)
WRITE
(
ILUOUT
,
*
)
'size of field inthe surface (XVH) :'
,
SIZE
(
ZH_TREE
)
CALL
ABOR1_SFX
(
'GET_VHN: VH SIZE NOT CORRECT'
)
ELSE
PVH
=
ZH_TREE
_FULL
PVH
=
ZH_TREE
END
IF
!
!==============================================================================
!
!-------------------------------------------------------------------------------
!
IF
(
SIZE
(
PLAI
)
/
=
SIZE
(
ZLAI
_FULL
)
)
THEN
IF
(
SIZE
(
PLAI
)
/
=
SIZE
(
ZLAI
)
)
THEN
WRITE
(
ILUOUT
,
*
)
'try to get LAI field from atmospheric model, but size is not correct'
WRITE
(
ILUOUT
,
*
)
'size of field expected by the atmospheric model (PLAI) :'
,
SIZE
(
PLAI
)
WRITE
(
ILUOUT
,
*
)
'size of field inthe surface (XLAI) :'
,
SIZE
(
ZLAI
_FULL
)
WRITE
(
ILUOUT
,
*
)
'size of field inthe surface (XLAI) :'
,
SIZE
(
ZLAI
)
CALL
ABOR1_SFX
(
'GET_LAIN: LAI SIZE NOT CORRECT'
)
ELSE
PLAI
=
ZLAI
_FULL
PLAI
=
ZLAI
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