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

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
Loading
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -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                                                      *