Unverified Commit 3baf15ed authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

apply bugfix from PR #1446 to allow switching from variable thermo output back to evenly spaced

parent 97ce76e7
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -675,8 +675,13 @@ void Output::set_thermo(int narg, char **arg)
{
  if (narg != 1) error->all(FLERR,"Illegal thermo command");

  if (strstr(arg[0],"v_") == arg[0]) {
  // always reset var_thermo, so it is possible to switch back from
  // variable spaced thermo outputs to constant spaced ones.

  delete [] var_thermo;
  var_thermo = NULL;

  if (strstr(arg[0],"v_") == arg[0]) {
    int n = strlen(&arg[0][2]) + 1;
    var_thermo = new char[n];
    strcpy(var_thermo,&arg[0][2]);