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
fef6380b
Commit
fef6380b
authored
2 years ago
by
RIETTE Sébastien
Browse files
Options
Downloads
Patches
Plain Diff
Add control for CALL in mnh_expand blocs
parent
dffe50f4
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
verify_mnh_expand.py
+3
-0
3 additions, 0 deletions
verify_mnh_expand.py
with
3 additions
and
0 deletions
verify_mnh_expand.py
+
3
−
0
View file @
fef6380b
...
@@ -87,6 +87,9 @@ def verify_mnh_expand(path):
...
@@ -87,6 +87,9 @@ def verify_mnh_expand(path):
if
line
[:
3
].
upper
()
==
b
'
DO
'
:
if
line
[:
3
].
upper
()
==
b
'
DO
'
:
logging
.
warning
(
'
A DO loop is inside a mnh_expand bloc, is order correct?.
'
+
logging
.
warning
(
'
A DO loop is inside a mnh_expand bloc, is order correct?.
'
+
'
Line {line} of file {filename}
'
.
format
(
line
=
iline
+
1
,
filename
=
path
))
'
Line {line} of file {filename}
'
.
format
(
line
=
iline
+
1
,
filename
=
path
))
elif
line
[:
5
].
upper
()
==
b
'
CALL
'
:
logging
.
warning
(
'
A CALL statement is inside a mnh_expand bloc, is it correct?
'
+
'
Line {line} of file {filename}
'
.
format
(
line
=
iline
+
1
,
filename
=
path
))
elif
b
'
=
'
in
line
and
all
([
c
in
lhschar
for
c
in
line
.
split
(
b
'
=
'
)[
0
]]):
elif
b
'
=
'
in
line
and
all
([
c
in
lhschar
for
c
in
line
.
split
(
b
'
=
'
)[
0
]]):
lhs
=
line
.
split
(
b
'
=
'
)[
0
]
lhs
=
line
.
split
(
b
'
=
'
)[
0
]
if
not
b
'
(
'
in
lhs
:
if
not
b
'
(
'
in
lhs
:
...
...
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