Commit a6ae4752 authored by Burlen Loring's avatar Burlen Loring Committed by Mario Melara

use cerr for errors in oscillator miniapp

parent d9e827a7
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment