Commit dc0e2094 authored by Lars Pastewka's avatar Lars Pastewka
Browse files

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

parent a7b0d1f5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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--;
+2 −0
Original line number Diff line number Diff line
@@ -920,6 +920,8 @@ int DumpNetCDFMPIIO::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--;