Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MPI-BugBench
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
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
High Performance Computing - Public
MPI-BugBench
Commits
3ef72ddf
Commit
3ef72ddf
authored
1 month ago
by
Oraji, Yussur Mustafa
Browse files
Options
Downloads
Patches
Plain Diff
Fix some branch C syntax issues
parent
20a74b67
No related branches found
No related tags found
1 merge request
!25
Draft: Fortran Support
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/Infrastructure/Branches.py
+4
-2
4 additions, 2 deletions
scripts/Infrastructure/Branches.py
with
4 additions
and
2 deletions
scripts/Infrastructure/Branches.py
+
4
−
2
View file @
3ef72ddf
...
@@ -8,7 +8,7 @@ from Infrastructure.Instruction import Instruction
...
@@ -8,7 +8,7 @@ from Infrastructure.Instruction import Instruction
from
Infrastructure.Variables
import
ERROR_MARKER_COMMENT_BEGIN
,
ERROR_MARKER_COMMENT_END
,
ERROR_MARKER_COMMENT_BEGIN_FORT
,
ERROR_MARKER_COMMENT_END_FORT
,
adjust_var_language
from
Infrastructure.Variables
import
ERROR_MARKER_COMMENT_BEGIN
,
ERROR_MARKER_COMMENT_END
,
ERROR_MARKER_COMMENT_BEGIN_FORT
,
ERROR_MARKER_COMMENT_END_FORT
,
adjust_var_language
import
Infrastructure.Variables
as
infvars
import
Infrastructure.Variables
as
infvars
for_template_c
=
"
for (int i = @START@; i < @END@; ++i)
"
for_template_c
=
"
for (int i = @START@; i < @END@; ++i)
{
"
for_template_fort
=
"
do i=@START@, @END@
"
for_template_fort
=
"
do i=@START@, @END@
"
if_template_c
=
"
if (@COND@) {
"
if_template_c
=
"
if (@COND@) {
"
...
@@ -46,9 +46,11 @@ class IfBranch(Branch):
...
@@ -46,9 +46,11 @@ class IfBranch(Branch):
def
header
(
self
):
def
header
(
self
):
if
infvars
.
generator_language
==
"
c
"
:
if
infvars
.
generator_language
==
"
c
"
:
res
=
if_template_c
.
replace
(
"
@COND@
"
,
self
.
_cond
)
res
=
if_template_c
.
replace
(
"
@COND@
"
,
self
.
_cond
)
elseif_str
=
"
} else
"
else
:
else
:
res
=
if_template_fort
.
replace
(
"
@COND@
"
,
adjust_var_language
(
self
.
_cond
)).
replace
(
"
!=
"
,
"
/=
"
)
res
=
if_template_fort
.
replace
(
"
@COND@
"
,
adjust_var_language
(
self
.
_cond
)).
replace
(
"
!=
"
,
"
/=
"
)
return
res
if
not
self
.
_elseif
else
f
"
else
{
res
}
"
elseif_str
=
"
else
"
return
res
if
not
self
.
_elseif
else
f
"
{
elseif_str
}
{
res
}
"
@override
@override
@staticmethod
@staticmethod
...
...
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