-
Matthieu Schaller authored
The printParticle() routine does not crash anymore if the ID requested is not found within the array of particles. Instead a message is written to stdout. Former-commit-id: 7f2eca9ac1b3f59aee1999c8bd7b35c26f7dc5bc
Matthieu Schaller authoredThe printParticle() routine does not crash anymore if the ID requested is not found within the array of particles. Instead a message is written to stdout. Former-commit-id: 7f2eca9ac1b3f59aee1999c8bd7b35c26f7dc5bc
debug.h 1005 B
/*******************************************************************************
* This file is part of SWIFT.
* Coypright (c) 2012 Matthieu Schaller (matthieu.schaller@durham.ac.uk).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
void printParticle(struct part *parts, long long int i, int N);