Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-alugrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ag-ohlberger
dune-community
dune-alugrid
Commits
b5ee5b36
Commit
b5ee5b36
authored
12 years ago
by
Martin Nolte
Browse files
Options
Downloads
Patches
Plain Diff
make headercheck pass
parent
5e9961b1
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
dune/alugrid/src/parallel/aluparmetis.hh
+45
-44
45 additions, 44 deletions
dune/alugrid/src/parallel/aluparmetis.hh
with
45 additions
and
44 deletions
dune/alugrid/src/parallel/aluparmetis.hh
+
45
−
44
View file @
b5ee5b36
...
@@ -11,62 +11,63 @@
...
@@ -11,62 +11,63 @@
extern
"C"
{
extern
"C"
{
#include
<parmetis.h>
#include
<parmetis.h>
}
}
#else // #if HAVE_PARMETIS
#else
static
const
char
parmetmess
[]
static
const
char
parmetmess
[]
=
=
"**INFO Due to license reasons the library ParMETIS is
\n
"
"**INFO Due to license reasons the library ParMETIS is
\n
"
" not part of the ALUGrid library distribution.
\n
"
" not part of the ALUGrid library distribution.
\n
"
" To use this feature get a copy of the ParMETIS library
\n
"
" To use this feature get a copy of the ParMETIS library
\n
"
" (see http://www-users.cs.umn.edu/~karypis/metis/metis/ )
\n
"
" (see http://www-users.cs.umn.edu/~karypis/metis/metis/ )
\n
"
" and re-configure the ALUGrid library with the
\n
"
" and re-configure the ALUGrid library with the
\n
"
" --with-parmetis=PATH_TO_ParMETIS option,
\n
"
" --with-parmetis=PATH_TO_ParMETIS option,
\n
"
" or choose another Graph partitioning method.
\n
"
" or choose another Graph partitioning method.
\n
"
" Exiting program, bye!
\n
"
;
" Exiting program, bye!
\n
"
;
#endif // #else // #if HAVE_PARMETIS
#endif
namespace
ALUGridParMETIS
namespace
ALUGridParMETIS
{
{
typedef
ALUGridMETIS
::
idxtype
idxtype
;
typedef
ALUGridMETIS
::
idxtype
idxtype
;
typedef
ALUGridMETIS
::
realtype
realtype
;
typedef
ALUGridMETIS
::
realtype
realtype
;
inline
void
CALL_ParMETIS_V3_PartKway
(
inline
void
CALL_ParMETIS_V3_PartKway
(
idxtype
*
vtxdist
,
idxtype
*
xadj
,
idxtype
*
adjncy
,
idxtype
*
vwgt
,
idxtype
*
vtxdist
,
idxtype
*
xadj
,
idxtype
*
adjncy
,
idxtype
*
vwgt
,
idxtype
*
adjwgt
,
idxtype
*
wgtflag
,
idxtype
*
numflag
,
idxtype
*
ncon
,
idxtype
*
nparts
,
idxtype
*
adjwgt
,
idxtype
*
wgtflag
,
idxtype
*
numflag
,
idxtype
*
ncon
,
idxtype
*
nparts
,
realtype
*
tpwgts
,
realtype
*
ubvec
,
idxtype
*
options
,
idxtype
*
edgecut
,
idxtype
*
part
,
realtype
*
tpwgts
,
realtype
*
ubvec
,
idxtype
*
options
,
idxtype
*
edgecut
,
idxtype
*
part
,
MpAccessGlobal
&
mpa
)
MpAccessGlobal
&
mpa
)
{
{
#if HAVE_PARMETIS
#if HAVE_PARMETIS
// get communincator (see mpAccess_MPI.cc)
// get communincator (see mpAccess_MPI.cc)
MPI_Comm
comm
=
getMPICommunicator
(
mpa
.
communicator
()
);
MPI_Comm
comm
=
getMPICommunicator
(
mpa
.
communicator
()
);
::
ParMETIS_V3_PartKway
(
vtxdist
,
xadj
,
adjncy
,
vwgt
,
adjwgt
,
::
ParMETIS_V3_PartKway
(
vtxdist
,
xadj
,
adjncy
,
vwgt
,
adjwgt
,
wgtflag
,
numflag
,
ncon
,
nparts
,
tpwgts
,
wgtflag
,
numflag
,
ncon
,
nparts
,
tpwgts
,
ubvec
,
options
,
edgecut
,
part
,
&
comm
)
;
ubvec
,
options
,
edgecut
,
part
,
&
comm
)
;
#else // #if HAVE_PARMETIS
#else // #if HAVE_PARMETIS
std
::
cerr
<<
"**ERROR The use of ParMETIS is not supported, when the ParMETIS library is missing! in: "
<<
__FILE__
<<
" line: "
<<
__LINE__
<<
"
\n
"
;
std
::
cerr
<<
"**ERROR The use of ParMETIS is not supported, when the ParMETIS library is missing! in: "
<<
__FILE__
<<
" line: "
<<
__LINE__
<<
"
\n
"
;
std
::
cerr
<<
parmetmess
<<
std
::
endl
;
std
::
cerr
<<
parmetmess
<<
std
::
endl
;
exit
(
1
);
exit
(
1
);
#endif // #else // #if HAVE_PARMETIS
#endif // #else // #if HAVE_PARMETIS
}
}
inline
void
CALL_ParMETIS_V3_AdaptiveRepart
(
inline
void
CALL_ParMETIS_V3_AdaptiveRepart
(
idxtype
*
vtxdist
,
idxtype
*
xadj
,
idxtype
*
adjncy
,
idxtype
*
vwgt
,
idxtype
*
vtxdist
,
idxtype
*
xadj
,
idxtype
*
adjncy
,
idxtype
*
vwgt
,
idxtype
*
vsize
,
idxtype
*
adjwgt
,
idxtype
*
wgtflag
,
idxtype
*
numflag
,
idxtype
*
ncon
,
idxtype
*
vsize
,
idxtype
*
adjwgt
,
idxtype
*
wgtflag
,
idxtype
*
numflag
,
idxtype
*
ncon
,
idxtype
*
nparts
,
realtype
*
tpwgts
,
realtype
*
ubvec
,
realtype
*
ipc2redist
,
idxtype
*
nparts
,
realtype
*
tpwgts
,
realtype
*
ubvec
,
realtype
*
ipc2redist
,
idxtype
*
options
,
idxtype
*
edgecut
,
idxtype
*
part
,
idxtype
*
options
,
idxtype
*
edgecut
,
idxtype
*
part
,
MpAccessGlobal
&
mpa
)
MpAccessGlobal
&
mpa
)
{
{
#if HAVE_PARMETIS
#if HAVE_PARMETIS
// get communincator (see mpAccess_MPI.cc)
// get communincator (see mpAccess_MPI.cc)
MPI_Comm
comm
=
getMPICommunicator
(
mpa
.
communicator
()
);
MPI_Comm
comm
=
getMPICommunicator
(
mpa
.
communicator
()
);
::
ParMETIS_V3_AdaptiveRepart
(
vtxdist
,
xadj
,
adjncy
,
vwgt
,
vsize
,
adjwgt
,
::
ParMETIS_V3_AdaptiveRepart
(
vtxdist
,
xadj
,
adjncy
,
vwgt
,
vsize
,
adjwgt
,
wgtflag
,
numflag
,
ncon
,
nparts
,
tpwgts
,
wgtflag
,
numflag
,
ncon
,
nparts
,
tpwgts
,
ubvec
,
ipc2redist
,
options
,
edgecut
,
part
,
&
comm
)
;
ubvec
,
ipc2redist
,
options
,
edgecut
,
part
,
&
comm
)
;
#else // #if HAVE_PARMETIS
#else // #if HAVE_PARMETIS
std
::
cerr
<<
"**ERROR The use of ParMETIS is not supported, when the ParMETIS library is missing! in: "
<<
__FILE__
<<
" line: "
<<
__LINE__
<<
"
\n
"
;
std
::
cerr
<<
"**ERROR The use of ParMETIS is not supported, when the ParMETIS library is missing! in: "
<<
__FILE__
<<
" line: "
<<
__LINE__
<<
"
\n
"
;
std
::
cerr
<<
parmetmess
<<
std
::
endl
;
std
::
cerr
<<
parmetmess
<<
std
::
endl
;
exit
(
1
);
exit
(
1
);
#endif // #else // #if HAVE_PARMETIS
#endif // #else // #if HAVE_PARMETIS
}
}
}
#endif // #ifndef PARMETIS_H_INCLUDED
#endif // #ifndef PARMETIS_H_INCLUDED
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