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
9317dffe
Commit
9317dffe
authored
6 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 23/05/2018: IO: close files that where previously opened
parent
dd794e12
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/MNH/diag.f90
+2
-0
2 additions, 0 deletions
src/MNH/diag.f90
src/MNH/prep_real_case.f90
+1
-0
1 addition, 0 deletions
src/MNH/prep_real_case.f90
src/MNH/spectre.f90
+6
-3
6 additions, 3 deletions
src/MNH/spectre.f90
with
9 additions
and
3 deletions
src/MNH/diag.f90
+
2
−
0
View file @
9317dffe
...
...
@@ -753,6 +753,8 @@ IF (GCLOSE_OUT) THEN
CALL
IO_FILE_CLOSE_ll
(
TOUTDATAFILE
)
END
IF
!
CALL
IO_FILE_CLOSE_ll
(
TINIFILE
)
IF
(
LEN_TRIM
(
CINIFILEPGD
)
>
0
)
CALL
IO_FILE_CLOSE_ll
(
TINIFILEPGD
)
CALL
IO_FILE_CLOSE_ll
(
TLUOUT
)
!
CALL
SECOND_MNH2
(
ZTIME2
)
...
...
This diff is collapsed.
Click to expand it.
src/MNH/prep_real_case.f90
+
1
−
0
View file @
9317dffe
...
...
@@ -1180,6 +1180,7 @@ END IF
!-------------------------------------------------------------------------------
!
CALL
IO_FILE_CLOSE_ll
(
TINIFILE
)
CALL
IO_FILE_CLOSE_ll
(
TPGDFILE
)
!
IF
(
NIO_VERB
>=
NVERB_DEBUG
)
CALL
IO_FILE_PRINT_LIST
()
!
...
...
This diff is collapsed.
Click to expand it.
src/MNH/spectre.f90
+
6
−
3
View file @
9317dffe
...
...
@@ -187,13 +187,17 @@ ENDIF
!
IF
(
CTYPEFILE
==
'MESONH'
)
THEN
CALL
SPECTRE_MESONH
(
YOUTFILE
)
CALL
IO_FILE_CLOSE_ll
(
TLUOUT
)
!
CALL
IO_FILE_CLOSE_ll
(
LUNIT_MODEL
(
1
)
%
TINIFILE
)
IF
(
NIO_VERB
>=
NVERB_DEBUG
)
CALL
IO_FILE_PRINT_LIST
()
CALL
IO_FILE_CLOSE_ll
(
TLUOUT0
)
CALL
IO_FILE_CLOSE_ll
(
TLUOUT
)
ELSEIF
(
CTYPEFILE
==
'AROME '
)
THEN
CALL
SPECTRE_AROME
(
CINIFILE
,
YOUTFILE
,
XDELTAX
,
XDELTAY
,
NI
,
NJ
,
NK
)
ELSE
print
*
,
"This type of file is not accept for SPECTRE PROGRAM"
ENDIF
!
!-------------------------------------------------------------------------------
!
!* 4. FINALIZE THE PARALLEL SESSION
...
...
@@ -201,8 +205,6 @@ ENDIF
!
CALL
END_PARA_ll
(
IINFO_ll
)
!
IF
(
NIO_VERB
>=
NVERB_DEBUG
)
CALL
IO_FILE_PRINT_LIST
()
!
PRINT
*
,
' '
PRINT
*
,
'****************************************************'
PRINT
*
,
'* EXIT SPECTRE CORRECTLY *'
...
...
@@ -210,3 +212,4 @@ PRINT*, '****************************************************'
PRINT
*
,
' '
!-------------------------------------------------------------------------------
END
PROGRAM
SPECTRE
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