detect when MSM::setup() is called before proper initialization and error out

This commit is contained in:
Axel Kohlmeyer
2022-01-18 09:09:19 -05:00
parent 29b5c2659c
commit 1c8f427e8a

View File

@ -285,6 +285,11 @@ double MSM::estimate_total_error()
void MSM::setup()
{
// change_box may trigger MSM::setup() before MSM::init() was called
// error out and request full initialization.
if (!delxinv) error->all(FLERR, "MSM must be fully initialized for this operation");
double *prd;
double a = cutoff;