update dump styles to use Compute::is_initialized()
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user