Merge pull request #3102 from akohlmey/mpi-stubs-simplify

Porting unit tests to run natively on Windows
This commit is contained in:
Axel Kohlmeyer
2022-01-31 21:37:48 -05:00
committed by GitHub
68 changed files with 675 additions and 353 deletions

View File

@ -978,10 +978,15 @@ void Input::include()
if (nfile == maxfile)
error->one(FLERR,"Too many nested levels of input scripts");
infile = fopen(arg[0],"r");
// expand variables
int n = strlen(arg[0]) + 1;
if (n > maxline) reallocate(line,maxline,n);
strcpy(line,arg[0]);
substitute(line,work,maxline,maxwork,0);
infile = fopen(line,"r");
if (infile == nullptr)
error->one(FLERR,"Cannot open input script {}: {}",
arg[0], utils::getsyserror());
error->one(FLERR,"Cannot open input script {}: {}", line, utils::getsyserror());
infiles[nfile++] = infile;
}