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
a9c65f1d
Commit
a9c65f1d
authored
1 year ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 17/01/2024: bugfix: for grid nesting, update the model pointer to coupling files
parent
60bbd453
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MNH/modn_lunitn.f90
+8
-4
8 additions, 4 deletions
src/MNH/modn_lunitn.f90
with
8 additions
and
4 deletions
src/MNH/modn_lunitn.f90
+
8
−
4
View file @
a9c65f1d
...
...
@@ -48,9 +48,9 @@ IMPLICIT NONE
!
SAVE
!
CHARACTER
(
LEN
=
NFILENAMELGTMAX
)
::
CINIFILE
CHARACTER
(
LEN
=
NFILENAMELGTMAX
)
::
CINIFILEPGD
CHARACTER
(
LEN
=
NFILENAMELGTMAX
),
DIMENSION
(:),
ALLOCATABLE
::
CCPLFILE
CHARACTER
(
LEN
=
NFILENAMELGTMAX
)
::
CINIFILE
CHARACTER
(
LEN
=
NFILENAMELGTMAX
)
::
CINIFILEPGD
CHARACTER
(
LEN
=
NFILENAMELGTMAX
),
DIMENSION
(:),
ALLOCATABLE
,
TARGET
::
CCPLFILE
!
NAMELIST
/
NAM_LUNITn
/
CINIFILE
,
CINIFILEPGD
,
CCPLFILE
!
...
...
@@ -92,7 +92,8 @@ SUBROUTINE INIT_NAM_LUNITn( OWRITE )
END
SUBROUTINE
INIT_NAM_LUNITn
SUBROUTINE
UPDATE_NAM_LUNITn
(
KMI
)
USE
MODD_DYN
,
ONLY
:
NCPL_NBR
USE
MODD_DYN
,
ONLY
:
NCPL_NBR
USE
MODD_LUNIT_n
,
ONLY
:
LUNIT_MODEL
INTEGER
,
INTENT
(
IN
)
::
KMI
! Model number
...
...
@@ -126,6 +127,9 @@ SUBROUTINE UPDATE_NAM_LUNITn(KMI)
DEALLOCATE
(
CCPLFILE_n
)
ALLOCATE
(
CCPLFILE_n
,
SOURCE
=
CCPLFILE
)
! sourced allocation, CCPLFILE_n is allocated to a clone of CCPLFILE
! Correct the model pointer
LUNIT_MODEL
(
KMI
)
%
CCPLFILE
=>
CCPLFILE
END
SUBROUTINE
UPDATE_NAM_LUNITn
END
MODULE
MODN_LUNIT_n
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