Merging to stay up-to-date

Merge remote-tracking branch 'lammps_upstream/master' into log_spacing
This commit is contained in:
Vishnu V. Krishnan
2019-06-01 10:33:27 +05:30
48 changed files with 670 additions and 214 deletions

View File

@ -38,6 +38,7 @@
#include "memory.h"
#include "info.h"
#include "error.h"
#include "utils.h"
using namespace LAMMPS_NS;
using namespace MathConst;
@ -383,6 +384,8 @@ void Variable::set(int narg, char **arg)
num[nvar] = 3;
which[nvar] = 0;
pad[nvar] = 0;
if (!utils::strmatch(arg[3],"%[0-9 ]*\\.[0-9]+[efgEFG]"))
error->all(FLERR,"Incorrect conversion in format string");
data[nvar] = new char*[num[nvar]];
copy(2,&arg[2],data[nvar]);
data[nvar][2] = new char[VALUELENGTH];