Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADIOS2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Podhorszki, Norbert
ADIOS2
Commits
6ad2127e
Commit
6ad2127e
authored
7 years ago
by
Podhorszki, Norbert
Browse files
Options
Downloads
Patches
Plain Diff
fix the left-right/up-down direction in code to make communication correct
parent
ef1a1408
No related branches found
No related tags found
1 merge request
!203
fix the left-right/up-down direction in code to make communication co…
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/heatTransfer/write/Settings.cpp
+8
-8
8 additions, 8 deletions
examples/heatTransfer/write/Settings.cpp
with
8 additions
and
8 deletions
examples/heatTransfer/write/Settings.cpp
+
8
−
8
View file @
6ad2127e
...
...
@@ -64,22 +64,22 @@ Settings::Settings(int argc, char *argv[], int rank, int nproc) : rank{rank}
// determine neighbors
if
(
posx
==
0
)
rank_
left
=
-
1
;
rank_
up
=
-
1
;
else
rank_
left
=
rank
-
1
;
rank_
up
=
rank
-
1
;
if
(
posx
==
npx
-
1
)
rank_
right
=
-
1
;
rank_
down
=
-
1
;
else
rank_
right
=
rank
+
1
;
rank_
down
=
rank
+
1
;
if
(
posy
==
0
)
rank_
up
=
-
1
;
rank_
left
=
-
1
;
else
rank_
up
=
rank
-
npx
;
rank_
left
=
rank
-
npx
;
if
(
posy
==
npy
-
1
)
rank_
down
=
-
1
;
rank_
right
=
-
1
;
else
rank_
down
=
rank
+
npx
;
rank_
right
=
rank
+
npx
;
}
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