Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
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
TurTLE
TurTLE
Commits
90a1b2a0
Commit
90a1b2a0
authored
8 years ago
by
Berenger Bramas
Browse files
Options
Downloads
Patches
Plain Diff
Add all native mpi data type to type selector
parent
a310a3bb
No related branches found
No related tags found
2 merge requests
!21
Bugfix/nansampling
,
!11
Feature/longlong particles
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bfps/cpp/particles/particles_utils.hpp
+9
-2
9 additions, 2 deletions
bfps/cpp/particles/particles_utils.hpp
with
9 additions
and
2 deletions
bfps/cpp/particles/particles_utils.hpp
+
9
−
2
View file @
90a1b2a0
...
@@ -36,11 +36,18 @@ namespace particles_utils {
...
@@ -36,11 +36,18 @@ namespace particles_utils {
class
GetMpiType
{
class
GetMpiType
{
const
MPI_Datatype
type
;
const
MPI_Datatype
type
;
public:
public:
explicit
GetMpiType
(
const
long
long
int
&
)
:
type
(
MPI_LONG_LONG_INT
){}
explicit
GetMpiType
(
const
unsigned
char
&
)
:
type
(
MPI_UNSIGNED_CHAR
){}
explicit
GetMpiType
(
const
unsigned
short
&
)
:
type
(
MPI_UNSIGNED_SHORT
){}
explicit
GetMpiType
(
const
unsigned
int
&
)
:
type
(
MPI_UNSIGNED
){}
explicit
GetMpiType
(
const
unsigned
long
&
)
:
type
(
MPI_UNSIGNED_LONG
){}
explicit
GetMpiType
(
const
char
&
)
:
type
(
MPI_CHAR
){}
explicit
GetMpiType
(
const
short
&
)
:
type
(
MPI_SHORT
){}
explicit
GetMpiType
(
const
int
&
)
:
type
(
MPI_INT
){}
explicit
GetMpiType
(
const
int
&
)
:
type
(
MPI_INT
){}
explicit
GetMpiType
(
const
long
&
)
:
type
(
MPI_LONG
){}
explicit
GetMpiType
(
const
long
double
&
)
:
type
(
MPI_LONG_DOUBLE
){}
explicit
GetMpiType
(
const
double
&
)
:
type
(
MPI_DOUBLE
){}
explicit
GetMpiType
(
const
double
&
)
:
type
(
MPI_DOUBLE
){}
explicit
GetMpiType
(
const
float
&
)
:
type
(
MPI_FLOAT
){}
explicit
GetMpiType
(
const
float
&
)
:
type
(
MPI_FLOAT
){}
explicit
GetMpiType
(
const
char
&
)
:
type
(
MPI_CHAR
){}
explicit
GetMpiType
(
const
long
&
)
:
type
(
MPI_LONG
){}
/*do not make it explicit*/
operator
MPI_Datatype
()
const
{
return
type
;
}
/*do not make it explicit*/
operator
MPI_Datatype
()
const
{
return
type
;
}
};
};
...
...
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