Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gyacomo
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Cyril David Hoffmann
Gyacomo
Commits
65812b94
Commit
65812b94
authored
3 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
removed world_rank and world_size variables
parent
8014eafc
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/poisson.F90
+4
-8
4 additions, 8 deletions
src/poisson.F90
with
4 additions
and
8 deletions
src/poisson.F90
+
4
−
8
View file @
65812b94
...
...
@@ -11,7 +11,7 @@ SUBROUTINE poisson
USE
prec_const
IMPLICIT
NONE
INTEGER
::
ini
,
ine
,
i_
,
world_rank
,
world_size
,
root_bcast
INTEGER
::
ini
,
ine
,
i_
,
root_bcast
REAL
(
dp
)
::
Kne
,
Kni
! sub kernel factor for recursive build
REAL
(
dp
)
::
alphaD
REAL
(
dp
)
::
sum_kernel2_e
,
sum_kernel2_i
! Store sum Kn^2
...
...
@@ -69,13 +69,9 @@ SUBROUTINE poisson
root_bcast
=
0
! Proc zero computes phi for every p
!!!!! This is a manual way to do MPI_BCAST !!!!!!!!!!!
CALL
MPI_COMM_RANK
(
comm_p
,
world_rank
,
ierr
)
CALL
MPI_COMM_SIZE
(
comm_p
,
world_size
,
ierr
)
IF
(
world_size
.GT.
1
)
THEN
IF
(
num_procs_p
.GT.
1
)
THEN
!! Broadcast phi to the other processes on the same k range (communicator along p)
IF
(
world_
rank
.EQ.
root_bcast
)
THEN
IF
(
rank
_p
.EQ.
root_bcast
)
THEN
! Fill the buffer
DO
ikr
=
ikrs
,
ikre
DO
ikz
=
ikzs
,
ikze
...
...
@@ -84,7 +80,7 @@ SUBROUTINE poisson
ENDDO
! Send it to all the other processes
DO
i_
=
0
,
num_procs_p
-1
IF
(
i_
.NE.
world_
rank
)
&
IF
(
i_
.NE.
rank
_p
)
&
CALL
MPI_SEND
(
buffer
,
local_nkr
*
nkz
,
MPI_DOUBLE_COMPLEX
,
i_
,
0
,
comm_p
,
ierr
)
ENDDO
ELSE
...
...
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