mapFields: reset the FOAM_CASE environment variable

Patch proveded by Alexey Matveichev
Resolves bug-report http://bugs.openfoam.org/view.php?id=2229
This commit is contained in:
Henry Weller
2016-09-17 14:53:15 +01:00
parent a6ee4f5af3
commit fba2c4f29b
2 changed files with 8 additions and 2 deletions

View File

@ -236,8 +236,8 @@ int main(int argc, char *argv[])
fileName rootDirTarget(args.rootPath());
fileName caseDirTarget(args.globalCaseName());
const fileName casePath = args[1];
const fileName rootDirSource = casePath.path();
fileName casePath = args[1];
const fileName rootDirSource = casePath.path().toAbsolute();
const fileName caseDirSource = casePath.name();
Info<< "Source: " << rootDirSource << " " << caseDirSource << endl;