document restartinfo bug message, add check to Pair::write_restart as well

This commit is contained in:
Axel Kohlmeyer 2018-05-31 19:02:03 -04:00
parent 6056c1db4d
commit cf3095e938
3 changed files with 17 additions and 2 deletions

View File

@ -803,6 +803,13 @@ lo value must be less than the hi value for all 3 dimensions. :dd
The box command cannot be used after a read_data, read_restart, or
create_box command. :dd
{BUG: restartinfo=1 but no restart support in pair style} :dt
The pair style has a bug, where it does not support reading
and writing information to a restart file, but does not set
the member variable restartinfo to 0 as required in that case. :dd
{CPU neighbor lists must be used for ellipsoid/sphere mix.} :dt
When using Gay-Berne or RE-squared pair styles with both ellipsoidal and

View File

@ -698,6 +698,12 @@ void Pair::read_restart(FILE *)
error->all(FLERR,"BUG: restartinfo=1 but no restart support in pair style");
}
/* ---------------------------------------------------------------------- */
void Pair::write_restart(FILE *)
{
error->all(FLERR,"BUG: restartinfo=1 but no restart support in pair style");
}
/* -------------------------------------------------------------------
register a callback to a compute, so it can compute and accumulate
additional properties during the pair computation from within

View File

@ -157,7 +157,7 @@ class Pair : protected Pointers {
virtual void free_tables();
virtual void free_disp_tables();
virtual void write_restart(FILE *) {}
virtual void write_restart(FILE *);
virtual void read_restart(FILE *);
virtual void write_restart_settings(FILE *) {}
virtual void read_restart_settings(FILE *) {}
@ -303,7 +303,9 @@ No kspace style is defined.
E: BUG: restartinfo=1 but no restart support in pair style
UNDOCUMENTED
The pair style has a bug, where it does not support reading
and writing information to a restart file, but does not set
the member variable restartinfo to 0 as required in that case.
E: Cannot yet use compute tally with Kokkos