"probe" directory has different order from other function objects
Hi, @Mattijs.
I'm Jake from South Korea, and I'm working on a GUI for OpenFOAM.
I have a question regarding the path of probe Function Object.
I found that the path for probe is <FOName>/<regionName>/...
that is defined in following line
-
probes.C
fileName probeDir ( mesh_.time().globalPath() / functionObject::outputPrefix / name()/mesh_.regionName() // Use startTime as the instance for output files / mesh_.time().timeName(mesh_.time().startTime().value()) );
I tried finding the reason why it had different path from other FOs, and came to this commit.
-
84c8fe33
if (obr_.name() != polyMesh::defaultRegion) { probeSubDir = probeSubDir/obr_.name(); }
I still could not find a reason why obr_.name()
is after probeSubDir
.
What do you think about following change for current code? From
/ name()/mesh_.regionName()
To
/ mesh_.regionName()/name()
By the way, thank you for your effort in OpenFOAM.