warn about problems with the MPIIO package

This commit is contained in:
Axel Kohlmeyer
2021-12-23 01:59:45 -05:00
parent 93c7b6928f
commit 3748a14582
9 changed files with 46 additions and 11 deletions

View File

@ -73,9 +73,12 @@ void WriteRestart::command(int narg, char **arg)
if (strchr(arg[0],'%')) multiproc = nprocs;
else multiproc = 0;
if (strstr(arg[0],".mpiio")) mpiioflag = 1;
if (utils::strmatch(arg[0],"\\.mpiio$")) mpiioflag = 1;
else mpiioflag = 0;
if ((comm->me == 0) && mpiioflag)
error->warning(FLERR,"MPI-IO output is unmaintained and unreliable. Use with caution.");
// setup output style and process optional args
// also called by Output class for periodic restart files