Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
1b83048b
Commit
1b83048b
authored
20 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
actually transfer arguments of loadBalance() to UG
[[Imported from SVN: r1378]]
parent
5a62f262
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
grid/uggrid.hh
+4
-1
4 additions, 1 deletion
grid/uggrid.hh
grid/uggrid/uggrid.cc
+21
-7
21 additions, 7 deletions
grid/uggrid/uggrid.cc
with
25 additions
and
8 deletions
grid/uggrid.hh
+
4
−
1
View file @
1b83048b
...
...
@@ -210,7 +210,10 @@ namespace Dune {
/** \brief Please doc me! */
GridIdentifier
type
()
{
return
UGGrid_Id
;
};
/** \brief Distributes this grid over the available nodes in a distributed machine */
/** \brief Distributes this grid over the available nodes in a distributed machine
*
\param maxlevel does currently get ignored
*/
void
loadBalance
(
int
strategy
,
int
minlevel
,
int
depth
,
int
maxlevel
,
int
minelement
);
/*! The communication interface
...
...
This diff is collapsed.
Click to expand it.
grid/uggrid/uggrid.cc
+
21
−
7
View file @
1b83048b
...
...
@@ -502,17 +502,31 @@ void UGGrid < dim, dimworld >::globalRefine(int refCount)
template
<
int
dim
,
int
dimworld
>
void
UGGrid
<
dim
,
dimworld
>::
loadBalance
(
int
strategy
,
int
minlevel
,
int
depth
,
int
maxlevel
,
int
minelement
)
{
char
*
argv
[
4
];
/** \todo Test for valid arguments */
std
::
string
argStrings
[
4
];
std
::
stringstream
numberAsAscii
[
4
];
argv
[
0
]
=
"lb 0"
;
argv
[
1
]
=
"c 1"
;
argv
[
2
]
=
"d 2"
;
argv
[
3
]
=
"e 1"
;
numberAsAscii
[
0
]
<<
strategy
;
argStrings
[
0
]
=
"lb "
+
numberAsAscii
[
0
].
str
();
numberAsAscii
[
1
]
<<
minlevel
;
argStrings
[
1
]
=
"c "
+
numberAsAscii
[
1
].
str
();
numberAsAscii
[
2
]
<<
depth
;
argStrings
[
2
]
=
"d "
+
numberAsAscii
[
2
].
str
();
numberAsAscii
[
3
]
<<
minelement
;
argStrings
[
3
]
=
"e "
+
numberAsAscii
[
3
].
str
();
const
char
*
argv
[
4
]
=
{
argStrings
[
0
].
c_str
(),
argStrings
[
1
].
c_str
(),
argStrings
[
2
].
c_str
(),
argStrings
[
3
].
c_str
()};
#ifdef _2
int
errCode
=
UG2d
::
LBCommand
(
4
,
argv
);
int
errCode
=
UG2d
::
LBCommand
(
4
,
(
char
**
)
argv
);
#else
int
errCode
=
UG3d
::
LBCommand
(
4
,
argv
);
int
errCode
=
UG3d
::
LBCommand
(
4
,
(
char
**
)
argv
);
#endif
if
(
errCode
)
...
...
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