BUG: incorrect IOobject instance for absolute windows path (#1238)

STYLE: remove unused local variables in edgeMeshFormat
This commit is contained in:
Mark Olesen
2019-05-23 10:27:06 +01:00
committed by Andrew Heather
parent 1da01af305
commit b8dc024444
4 changed files with 22 additions and 16 deletions

View File

@ -160,10 +160,10 @@ bool Foam::IOobject::fileNameComponents
#endif
)
{
// Absolute path (starts with '/')
// Absolute path (starts with '/' or 'd:/')
// => no local
instance = path.substr(first, last);
instance = path.substr(0, last);
const std::string ending = path.substr(last+1);
nameLen = ending.size(); // The raw length of name

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -52,10 +52,6 @@ bool Foam::fileFormats::edgeMeshFormat::read
{
clear();
fileName dir = filename.path();
fileName caseName = dir.name();
fileName rootPath = dir.path();
// Construct dummy time to use as an objectRegistry
Time dummyTime
(
@ -117,10 +113,7 @@ bool Foam::fileFormats::edgeMeshFormat::read
<< exit(FatalError);
}
// read points:
is >> pointLst;
// read edges:
is >> edgeLst;
return true;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2017 OpenFOAM Foundation
@ -50,10 +50,6 @@ bool Foam::fileFormats::extendedEdgeMeshFormat::read
{
clear();
fileName dir = filename.path();
fileName caseName = dir.name();
fileName rootPath = dir.path();
// Construct dummy time to use as an objectRegistry
Time dummyTime
(