Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loadbalancing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Terraform modules
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
SLMS
loadbalancing
Commits
730d855b
Commit
730d855b
authored
5 years ago
by
Stephan Schulz
Browse files
Options
Downloads
Patches
Plain Diff
update fortran obj example to run multiple steps
parent
4a547dfb
No related branches found
No related tags found
No related merge requests found
Pipeline
#26294
failed
5 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
example/ALL_test_f_obj.F90
+22
-19
22 additions, 19 deletions
example/ALL_test_f_obj.F90
with
22 additions
and
19 deletions
example/ALL_test_f_obj.F90
+
22
−
19
View file @
730d855b
...
...
@@ -50,7 +50,7 @@ program ALL_test_f
integer
::
error
integer
::
rank
,
n_ranks
real
(
8
),
dimension
(:,:),
allocatable
::
new_vertices
integer
::
i
integer
::
i
,
j
type
(
ALL_t
)
::
lb
...
...
@@ -82,15 +82,17 @@ program ALL_test_f
end
if
end
do
! set up balancer
call
lb
%
init
(
ALL_STAGGERED
,
3
,
4.0d0
)
call
lb
%
set_proc_tag
(
rank
)
call
lb
%
set_work
(
real
(
product
(
coords
,
1
)
*
64
,
8
))
call
lb
%
set_vertices
(
vertices
)
! if using a non cartesian communicator, this call would be required
! if using a non cartesian communicator, this call would be required
instead
! call lb%set_proc_grid_params(coords,dims)
call
lb
%
set_communicator
(
cart_comm
)
call
lb
%
setup
()
do
j
=
1
,
2
call
lb
%
set_work
(
real
(
product
(
coords
,
1
)
*
64
,
8
))
call
lb
%
balance
()
! If not allocatable as target, must use
...
...
@@ -106,6 +108,7 @@ program ALL_test_f
call
MPI_BARRIER
(
cart_comm
,
error
)
end
if
end
do
end
do
deallocate
(
new_vertices
)
call
MPI_FINALIZE
(
error
);
...
...
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