remove pointless stringstream abuse

This commit is contained in:
Axel Kohlmeyer 2020-09-04 08:03:53 -04:00
parent 91a87b745f
commit 2d802411e9
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 1 additions and 3 deletions

View File

@ -169,13 +169,11 @@ void ThirdOrder::options(int narg, char **arg)
if (narg < 0) error->all(FLERR,"Illegal third_order command");
int iarg = 0;
const char *filename = "third_order.dat";
std::stringstream fss;
while (iarg < narg) {
if (strcmp(arg[iarg],"file") == 0) {
if (iarg+2 > narg) error->all(FLERR, "Illegal third_order command");
fss << arg[iarg + 1];
filename = fss.str().c_str();
filename = arg[iarg + 1];
file_flag = 1;
iarg += 2;
} else if (strcmp(arg[iarg],"binary") == 0) {