}
else
{
- writer.writeLine(formatString("%-24s = %s", local.name_.c_str(),
+ writer.writeLine(formatString("%-24s = %s",
+ local.name_.c_str(),
!local.value_.empty() ? local.value_.c_str() : ""));
}
}
gmx_fatal(FARGS,
"A parameter is present with both the old name '%s' and the new name "
"'%s'.",
- local.name_.c_str(), inp[foundIndex].name_.c_str());
+ local.name_.c_str(),
+ inp[foundIndex].name_.c_str());
}
local.name_.assign(new_entry);
sprintf(warn_buf,
"Right hand side '%s' for parameter '%s' in parameter file is not an integer "
"value\n",
- inpRef[ii].value_.c_str(), inpRef[ii].name_.c_str());
+ inpRef[ii].value_.c_str(),
+ inpRef[ii].name_.c_str());
warning_error(wi, warn_buf);
}
sprintf(warn_buf,
"Right hand side '%s' for parameter '%s' in parameter file is not an integer "
"value\n",
- inpRef[ii].value_.c_str(), inpRef[ii].name_.c_str());
+ inpRef[ii].value_.c_str(),
+ inpRef[ii].name_.c_str());
warning_error(wi, warn_buf);
}
sprintf(warn_buf,
"Right hand side '%s' for parameter '%s' in parameter file is not a real "
"value\n",
- inpRef[ii].value_.c_str(), inpRef[ii].name_.c_str());
+ inpRef[ii].value_.c_str(),
+ inpRef[ii].name_.c_str());
warning_error(wi, warn_buf);
}
if (defs[i] == nullptr)
{
- n += sprintf(buf, "Invalid enum '%s' for variable %s, using '%s'\n",
- inpRef[ii].value_.c_str(), name, defs[0]);
+ n += sprintf(buf,
+ "Invalid enum '%s' for variable %s, using '%s'\n",
+ inpRef[ii].value_.c_str(),
+ name,
+ defs[0]);
n += sprintf(buf + n, "Next time use one of:");
int j = 0;
while (defs[j])