Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
16ad3fa7
Commit
16ad3fa7
authored
Oct 18, 2016
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
problems with ms visual studio corrected and small errors in parmetis partitioner
parent
b8063b9f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
AMDiS/lib/mtl4/boost/numeric/mtl/utility/view_code.hpp
AMDiS/lib/mtl4/boost/numeric/mtl/utility/view_code.hpp
+2
-2
AMDiS/src/ProblemStat.h
AMDiS/src/ProblemStat.h
+1
-1
AMDiS/src/parallel/ParMetisPartitioner.h
AMDiS/src/parallel/ParMetisPartitioner.h
+11
-2
No files found.
AMDiS/lib/mtl4/boost/numeric/mtl/utility/view_code.hpp
View file @
16ad3fa7
...
...
@@ -59,8 +59,8 @@ struct view_code<mtl::matrix::hermitian_view<Matrix> >
template
<
unsigned
Value
>
struct
view_normalize_const
{
static
const
unsigned
tmp2
=
Value
==
0
||
Value
==
4
?
Value
|
1
:
Value
,
// if matrix ref or transposed, make it const
value
=
(
tmp2
&
3
)
==
3
?
tmp2
^
1
:
tmp2
;
// for conj turn off const
static
const
unsigned
tmp2
=
Value
==
0
||
Value
==
4
?
Value
|
1
:
Value
;
// if matrix ref or transposed, make it const
static
const
unsigned
value
=
(
tmp2
&
3
)
==
3
?
tmp2
^
1
:
tmp2
;
// for conj turn off const
};
template
<
typename
ViewCode
>
...
...
AMDiS/src/ProblemStat.h
View file @
16ad3fa7
...
...
@@ -703,7 +703,7 @@ namespace AMDiS {
public
StandardProblemIteration
{
using
ProblemStatType
::
getName
;
using
ProblemStat
Seq
::
info
;
using
ProblemStat
Type
::
info
;
/// Constructor
ProblemStat
(
std
::
string
nameStr
,
...
...
AMDiS/src/parallel/ParMetisPartitioner.h
View file @
16ad3fa7
...
...
@@ -30,6 +30,15 @@
#include <parmetis.h>
#include <mpi.h>
#ifndef REALTYPEWIDTH
#define real_t float
#endif
#ifndef PARMETIS_PSR_COUPLED
#define PARMETIS_PSR_COUPLED 1
#define PARMETIS_PSR_UNCOUPLED 2
#endif
#include "AMDiS_fwd.h"
#include "Global.h"
#include "parallel/MeshPartitioner.h"
...
...
@@ -182,7 +191,7 @@ namespace AMDiS { namespace Parallel {
void
createPartitionMap
(
std
::
map
<
int
,
int
>&
partitionMap
);
void
setItr
(
double
value
)
void
setItr
(
real_t
value
)
{
itr
=
value
;
}
...
...
@@ -195,7 +204,7 @@ namespace AMDiS { namespace Parallel {
protected:
ParMetisMesh
*
parMetisMesh
;
double
itr
;
real_t
itr
;
};
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment