diff --git a/src/functionObjects/field/streamLine/streamLineBase.C b/src/functionObjects/field/streamLine/streamLineBase.C index eb73a2c771..495fe2cf5b 100644 --- a/src/functionObjects/field/streamLine/streamLineBase.C +++ b/src/functionObjects/field/streamLine/streamLineBase.C @@ -735,7 +735,7 @@ bool Foam::functionObjects::streamLineBase::writeToFile() forAll(allScalars_, scalari) { - DynamicList& allTrackVals = allScalars_[scalari]; + auto& allTrackVals = allScalars_[scalari]; scalarValues[scalari].resize(nTracks); forAll(allTrackVals, tracki) @@ -768,7 +768,7 @@ bool Foam::functionObjects::streamLineBase::writeToFile() forAll(allVectors_, vectori) { - DynamicList& allTrackVals = allVectors_[vectori]; + auto& allTrackVals = allVectors_[vectori]; vectorValues[vectori].setSize(nTracks); forAll(allTrackVals, tracki) @@ -789,7 +789,7 @@ bool Foam::functionObjects::streamLineBase::writeToFile() outputFileNames.insert ( - scalarNames_[i], + vectorNames_[i], time_.relativePath(outFile, true) ); } diff --git a/src/sampling/probes/probes.C b/src/sampling/probes/probes.C index 9cbe85beee..849803e57a 100644 --- a/src/sampling/probes/probes.C +++ b/src/sampling/probes/probes.C @@ -87,7 +87,8 @@ void Foam::probes::createProbeFiles(const wordList& fieldNames) mesh_.time().globalPath() / functionObject::outputPrefix / probeSubDir - / mesh_.time().timeName() + // Use startTime as the instance for output files + / mesh_.time().timeName(mesh_.time().startTime().value()) ); probeDir.clean(); // Remove unneeded ".." diff --git a/src/sampling/sampledSet/sampledSets/sampledSets.C b/src/sampling/sampledSet/sampledSets/sampledSets.C index 34900be083..22a103472d 100644 --- a/src/sampling/sampledSet/sampledSets/sampledSets.C +++ b/src/sampling/sampledSet/sampledSets/sampledSets.C @@ -99,7 +99,8 @@ Foam::OFstream* Foam::sampledSets::createProbeFile(const word& fieldName) mesh_.time().globalPath() / functionObject::outputPrefix / probeSubDir - / mesh_.time().timeName() + // Use startTime as the instance for output files + / mesh_.time().timeName(mesh_.time().startTime().value()) ); probeDir.clean(); // Remove unneeded ".."