This commit is contained in:
Steve Plimpton
2024-04-04 13:50:43 -06:00
parent 6a2bcc7258
commit 2c26586b1a

View File

@ -1671,10 +1671,6 @@ double Variable::evaluate(char *str, Tree **tree, int ivar)
compute->compute_array();
compute->invoked_flag |= Compute::INVOKED_ARRAY;
}
// wait until after compute invocation to check size_array_rows
// b/c may be zero until after initial invocation
if (compute->size_array_rows == 0)
print_var_error(FLERR,"Variable formula compute array is zero length",ivar);
// wait to check row count until after compute invocation
// to allow for computes with size_array_rows_variable == 1