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
Méso-NH
Méso-NH code
Commits
b53b5c07
Commit
b53b5c07
authored
2 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 08/12/2022: bugfix if no TDADFILE
parent
bbaf5704
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/modeln.f90
+9
-1
9 additions, 1 deletion
src/MNH/modeln.f90
with
9 additions
and
1 deletion
src/MNH/modeln.f90
+
9
−
1
View file @
b53b5c07
...
...
@@ -272,6 +272,7 @@ END MODULE MODI_MODEL_n
! T. Nagel 01/02/2021: add turbulence recycling
! P. Wautelet 19/02/2021: add NEGA2 term for SV budgets
! J.L. Redelsperger 03/2021: add Call NHOA_COUPLN (coupling O & A LES version)
! P. Wautelet 08/12/2022: bugfix if no TDADFILE
!!-------------------------------------------------------------------------------
!
!* 0. DECLARATIONS
...
...
@@ -479,6 +480,7 @@ REAL(kind=MNHTIME), DIMENSION(2) :: ZTIME_STEP,ZTIME_STEP_PTS
CHARACTER
::
YMI
INTEGER
::
IPOINTS
CHARACTER
(
len
=
16
)
::
YTCOUNT
,
YPOINTS
CHARACTER
(
LEN
=
:),
ALLOCATABLE
::
YDADNAME
!
INTEGER
::
ISYNCHRO
! model synchronic index relative to its father
! = 1 for the first time step in phase with DAD
...
...
@@ -973,7 +975,13 @@ IF ( nfile_backup_current < NBAK_NUMB ) THEN
!
CALL
WRITE_DESFM_n
(
IMI
,
TZBAKFILE
)
CALL
IO_Header_write
(
TBACKUPN
(
nfile_backup_current
)
%
TFILE
)
CALL
WRITE_LFIFM_n
(
TBACKUPN
(
nfile_backup_current
)
%
TFILE
,
TBACKUPN
(
nfile_backup_current
)
%
TFILE
%
TDADFILE
%
CNAME
)
IF
(
ASSOCIATED
(
TBACKUPN
(
nfile_backup_current
)
%
TFILE
%
TDADFILE
)
)
THEN
YDADNAME
=
TBACKUPN
(
nfile_backup_current
)
%
TFILE
%
TDADFILE
%
CNAME
ELSE
! Set a dummy name for the dad file. Its non-zero size will allow the writing of some data in the backup file
YDADNAME
=
'DUMMY'
END
IF
CALL
WRITE_LFIFM_n
(
TBACKUPN
(
nfile_backup_current
)
%
TFILE
,
TRIM
(
YDADNAME
)
)
TOUTDATAFILE
=>
TZBAKFILE
CALL
MNHWRITE_ZS_DUMMY_n
(
TZBAKFILE
)
IF
(
CSURF
==
'EXTE'
)
THEN
...
...
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