bug in output.cpp

Hello!

I’ve found a bug in output.cpp file. If you try to run the simulation with illegal restart command like “restart 1000” (without filename), it will crash with segmentation fault error.
It is due to “int n = strlen(arg[1]) + 3;” line 505 in output.cpp.

It is very easy to solve the problem by adding this code before line 505:

if (restart_every != 0 && narg == 1) {
error->all(FLERR,“Illegal restart command”);
}

Grigory Smirnov

I'll take a look, thanks

Steve

yes, I see the issue now - will
be fixed in next patch ...

Thanks,
Steve