Commit 0189a99c authored by Johannes Blaschke's avatar Johannes Blaschke

cleanup, and add user warning to `particle_container/interactive.cpp` if wrong...

cleanup, and add user warning to `particle_container/interactive.cpp` if wrong number of arguments is inputted
parent c6598769
Pipeline #53 passed with stage
in 1 minute and 29 seconds
......@@ -11,6 +11,21 @@
int main(int argc, char * argv[]) {
// Be nice to the users:
if(argc < 5) {
if(mpi::rank == 0)
std::cout << "You need to specify the following 4 arguments:" << std::endl
<< " box_x, box_y, box_z, rank_probe" << std::endl;
return 0;
}
if(argc > 5)
if(mpi::rank == 0)
std::cout << "WARNING! You have specified more than 4 input arguments." << std::endl
<< "Only the first 4 where used." << std::endl;
/**************************************************************************
* INITIALIZE: *
* -> MPI COMMS *
......
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