mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: incorrect IOobject instance for absolute windows path (#1238)
STYLE: remove unused local variables in edgeMeshFormat
This commit is contained in:
committed by
Andrew Heather
parent
1da01af305
commit
b8dc024444
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user