mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: more stringent checks for fileName concatenation
- avoids some doubled slashes STYLE: simplify concatenation of processor directory names
This commit is contained in:
@ -396,7 +396,7 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
Time::controlDictName,
|
||||
rootDirSource,
|
||||
caseDirSource/fileName(word("processor") + name(proci))
|
||||
caseDirSource/("processor" + Foam::name(proci))
|
||||
);
|
||||
|
||||
#include "setTimeIndex.H"
|
||||
@ -471,7 +471,7 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
Time::controlDictName,
|
||||
rootDirTarget,
|
||||
caseDirTarget/fileName(word("processor") + name(proci))
|
||||
caseDirTarget/("processor" + Foam::name(proci))
|
||||
);
|
||||
|
||||
fvMesh meshTarget
|
||||
@ -536,7 +536,7 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
Time::controlDictName,
|
||||
rootDirSource,
|
||||
caseDirSource/fileName(word("processor") + name(procISource))
|
||||
caseDirSource/("processor" + Foam::name(procISource))
|
||||
);
|
||||
|
||||
#include "setTimeIndex.H"
|
||||
@ -572,8 +572,7 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
Time::controlDictName,
|
||||
rootDirTarget,
|
||||
caseDirTarget/fileName(word("processor")
|
||||
+ name(procITarget))
|
||||
caseDirTarget/("processor" + Foam::name(procITarget))
|
||||
);
|
||||
|
||||
fvMesh meshTarget
|
||||
|
||||
Reference in New Issue
Block a user