MAINT: Return error when 'at' keyword is used without 'append yes'.

This commit is contained in:
Lars Pastewka
2017-10-06 16:37:52 +02:00
parent a7b0d1f521
commit dc0e20947e
2 changed files with 4 additions and 0 deletions

View File

@ -924,6 +924,8 @@ int DumpNetCDF::modify_param(int narg, char **arg)
return 2;
}
else if (strcmp(arg[iarg],"at") == 0) {
if (!append_flag)
error->all(FLERR,"expected 'append yes' before 'at' keyword");
iarg++;
framei = force->inumeric(FLERR,arg[iarg]);
if (framei < 0) framei--;