increase buffer for error message

This commit is contained in:
danielque
2024-01-11 13:09:04 +01:00
parent 6f2867a839
commit 21228db28a
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ FixMassflowMesh::FixMassflowMesh(LAMMPS *lmp, int narg, char **arg) :
fp_ = fopen(filecurrent,"a");
delete [] filecurrent;
if (fp_ == NULL) {
char str[128];
char str[512];
sprintf(str,"Cannot open file %s",arg[iarg+1]);
error->fix_error(FLERR,this,str);
}

View File

@ -170,7 +170,7 @@ FixMassflowMeshFace::FixMassflowMeshFace(LAMMPS *lmp, int narg, char **arg) :
fp_ = fopen(filecurrent,"a");
delete [] filecurrent;
if (fp_ == NULL) {
char str[128];
char str[512];
sprintf(str,"Cannot open file %s",arg[iarg+1]);
error->fix_error(FLERR,this,str);
}