update dump styles to use Compute::is_initialized()

This commit is contained in:
Axel Kohlmeyer
2023-07-20 21:48:51 -04:00
parent 78880c9099
commit 0b57ea246c
5 changed files with 15 additions and 10 deletions

View File

@ -527,9 +527,10 @@ int DumpGrid::count()
// cannot invoke before first run, otherwise invoke if necessary
if (ncompute) {
if (update->first_update == 0)
error->all(FLERR,"Dump compute cannot be invoked before first run");
for (i = 0; i < ncompute; i++) {
if (!compute[i]->is_initialized())
error->all(FLERR,"Dump compute ID {} cannot be invoked before initialized by a run",
compute[i]->id);
if (!(compute[i]->invoked_flag & Compute::INVOKED_PERGRID)) {
compute[i]->compute_pergrid();
compute[i]->invoked_flag |= Compute::INVOKED_PERGRID;