Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
OPAL
src
Commits
ebdf3d69
Commit
ebdf3d69
authored
Jun 28, 2019
by
kraus
Browse files
fix communication in case of not found responsible node and use const reference when catching
parent
2b80cf0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
ippl/src/Particle/ParticleSpatialLayout.h
ippl/src/Particle/ParticleSpatialLayout.h
+6
-8
src/Classic/Algorithms/PartBunchBase.hpp
src/Classic/Algorithms/PartBunchBase.hpp
+2
-2
No files found.
ippl/src/Particle/ParticleSpatialLayout.h
View file @
ebdf3d69
...
...
@@ -1217,10 +1217,9 @@ protected:
particlesLeft
--
;
}
new_reduce
(
&
responsibleNodeNotFound
,
&
responsibleNodeNotFound
,
1
,
std
::
logical_or
<
bool
>
());
allreduce
(
&
responsibleNodeNotFound
,
1
,
std
::
logical_or
<
bool
>
());
if
(
responsibleNodeNotFound
)
{
throw
IpplException
(
"ParticleSpatialLayout::new_swap_particles"
,
...
...
@@ -1362,10 +1361,9 @@ protected:
particlesLeft
--
;
}
new_reduce
(
&
responsibleNodeNotFound
,
&
responsibleNodeNotFound
,
1
,
std
::
logical_or
<
bool
>
());
allreduce
(
&
responsibleNodeNotFound
,
1
,
std
::
logical_or
<
bool
>
());
if
(
responsibleNodeNotFound
)
{
throw
IpplException
(
"ParticleSpatialLayout::new_swap_particles"
,
...
...
src/Classic/Algorithms/PartBunchBase.hpp
View file @
ebdf3d69
...
...
@@ -2394,7 +2394,7 @@ template <class T, unsigned Dim>
void
PartBunchBase
<
T
,
Dim
>::
update
()
{
try
{
pbase
->
update
();
}
catch
(
IpplException
&
ex
)
{
}
catch
(
const
IpplException
&
ex
)
{
throw
OpalException
(
ex
.
where
(),
ex
.
what
());
}
}
...
...
@@ -2403,7 +2403,7 @@ template <class T, unsigned Dim>
void
PartBunchBase
<
T
,
Dim
>::
update
(
const
ParticleAttrib
<
char
>&
canSwap
)
{
try
{
pbase
->
update
(
canSwap
);
}
catch
(
IpplException
&
ex
)
{
}
catch
(
const
IpplException
&
ex
)
{
throw
OpalException
(
ex
.
where
(),
ex
.
what
());
}
}
...
...
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