Commit e9d66bfe by Francois Gygi

Add zero volume test to run command

parent 667cce09
......@@ -48,6 +48,12 @@ int RunCmd::action(int argc, char **argv)
cout << " RunCmd: ecut = 0.0, cannot run" << endl;
return 1;
}
if ( s->wf.cell().volume() == 0.0 )
{
if ( ui->onpe0() )
cout << " RunCmd: volume = 0.0, cannot run" << endl;
return 1;
}
SampleStepper* stepper;
......
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