ENH: more stringent checks for fileName concatenation

- avoids some doubled slashes

STYLE: simplify concatenation of processor directory names
This commit is contained in:
Mark Olesen
2018-10-11 10:07:11 +02:00
parent a77ab5d4eb
commit c4542294a8
11 changed files with 38 additions and 31 deletions

View File

@ -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