Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
sensei
sensei
Commits
a6ae4752
Commit
a6ae4752
authored
Sep 04, 2018
by
Burlen Loring
Committed by
Mario Melara
Sep 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use cerr for errors in oscillator miniapp
parent
d9e827a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
miniapps/oscillators/oscillator.cpp
miniapps/oscillators/oscillator.cpp
+4
-6
No files found.
miniapps/oscillators/oscillator.cpp
View file @
a6ae4752
...
...
@@ -115,12 +115,10 @@ struct Block
}
if
(
!
enqueued
)
{
fmt
::
print
(
"Error: could not find appropriate neighbor for particle: "
"id: {}, position: ({}, {}, {}), velocity: ({}, {}, {})
\n
"
,
particle
->
id
,
particle
->
position
[
0
],
particle
->
position
[
1
],
particle
->
position
[
2
],
particle
->
velocity
[
0
],
particle
->
velocity
[
1
],
particle
->
velocity
[
2
]);
std
::
cerr
<<
"Error: could not find appropriate neighbor for particle: id: "
<<
particle
->
id
<<
", position: ("
<<
particle
->
position
[
0
]
<<
", "
<<
particle
->
position
[
1
]
<<
", "
<<
particle
->
position
[
2
]
<<
"), velocity: ("
<<
particle
->
velocity
[
0
]
<<
", "
<<
particle
->
velocity
[
1
]
<<
", "
<<
particle
->
velocity
[
2
]
<<
std
::
endl
;
}
particle
=
particles
.
erase
(
particle
);
}
...
...
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