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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SLMS
loadbalancing
Merge requests
!6
MPI communicator handle must be converted
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
MPI communicator handle must be converted
feature/fortran-interface-fixes
into
master
Overview
1
Commits
0
Pipelines
4
Changes
2
Closed
Stephan Schulz
requested to merge
feature/fortran-interface-fixes
into
master
6 years ago
Overview
1
Commits
0
Pipelines
4
Changes
2
The MPI communicator handle must be explicitly converted.
0
0
Merge request reports
Viewing commit
837c510d
Show latest version
2 files
+
22
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
837c510d
add set_proc_grid_params interface
· 837c510d
Stephan Schulz
authored
6 years ago
src/ALL_fortran.cpp
+
8
−
0
View file @ 837c510d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -39,6 +39,14 @@ extern "C"
return
new
ALL
<
double
,
double
>
(
dim
,
gamma
);
}
// set grid parameters
void
ALL_set_proc_grid_params_f
(
ALL
<
double
,
double
>*
all_obj
,
int
nloc
,
int
*
loc
,
int
nsize
,
int
*
size
)
{
if
(
all_obj
->
get_dimension
()
!=
nloc
)
throw
ALL_Invalid_Argument_Exception
(
__FILE__
,
__func__
,
__LINE__
,
"Length of index array does not match dimension"
);
if
(
all_obj
->
get_dimension
()
!=
nsize
)
throw
ALL_Invalid_Argument_Exception
(
__FILE__
,
__func__
,
__LINE__
,
"Length of size array does not match dimension"
);
all_obj
->
set_proc_grid_params
(
loc
,
size
);
}
// wrapper to set the minimum domain size
void
ALL_set_min_domain_size_f
(
ALL
<
double
,
double
>*
all_obj
,
ALL_LB_t
method
,
int
dim
,
double
*
domain_size
)
{
Loading