diff --git a/src/fileFormats/sampledSetWriters/csv/csvSetWriter.C b/src/fileFormats/sampledSetWriters/csv/csvSetWriter.C index fc469c5e5ebc1bea6e57566de34a161983f21e77..b0a92cd37595e93805f7415821c0096bd32e95a8 100644 --- a/src/fileFormats/sampledSetWriters/csv/csvSetWriter.C +++ b/src/fileFormats/sampledSetWriters/csv/csvSetWriter.C @@ -39,13 +39,6 @@ Foam::csvSetWriter<Type>::csvSetWriter() {} -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -template<class Type> -Foam::csvSetWriter<Type>::~csvSetWriter() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class Type> @@ -86,13 +79,14 @@ template<class Type> void Foam::csvSetWriter<Type>::write ( const bool writeTracks, - const PtrList<coordSet>& points, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, const List<List<Field<Type>>>& valueSets, Ostream& os ) const { - writeHeader(points[0],valueSetNames,os); + writeHeader(tracks[0],valueSetNames,os); if (valueSets.size() != valueSetNames.size()) { @@ -104,7 +98,7 @@ void Foam::csvSetWriter<Type>::write List<const List<Type>*> columns(valueSets.size()); - forAll(points, trackI) + forAll(tracks, trackI) { // Collect sets into columns forAll(valueSets, i) @@ -112,7 +106,7 @@ void Foam::csvSetWriter<Type>::write columns[i] = &valueSets[i][trackI]; } - this->writeTable(points[trackI], columns, os); + this->writeTable(tracks[trackI], columns, os); os << nl << nl; } } diff --git a/src/fileFormats/sampledSetWriters/csv/csvSetWriter.H b/src/fileFormats/sampledSetWriters/csv/csvSetWriter.H index 83c724b8069107089775f0c6f41c9c490c625102..e2f464affb177c415b90fecac3cb9682706194fd 100644 --- a/src/fileFormats/sampledSetWriters/csv/csvSetWriter.H +++ b/src/fileFormats/sampledSetWriters/csv/csvSetWriter.H @@ -79,7 +79,7 @@ public: //- Destructor - virtual ~csvSetWriter(); + virtual ~csvSetWriter() = default; // Member Functions @@ -101,9 +101,10 @@ public: virtual void write ( const bool writeTracks, - const PtrList<coordSet>&, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, - const List<List<Field<Type>>>&, + const List<List<Field<Type>>>& valueSets, Ostream& ) const; }; diff --git a/src/fileFormats/sampledSetWriters/ensight/ensightSetWriter.C b/src/fileFormats/sampledSetWriters/ensight/ensightSetWriter.C index 46880d0bd92353c907414af5af9fa92f12bfe535..17754ff2dc3682e933599e22ac4a4452029223a8 100644 --- a/src/fileFormats/sampledSetWriters/ensight/ensightSetWriter.C +++ b/src/fileFormats/sampledSetWriters/ensight/ensightSetWriter.C @@ -41,12 +41,6 @@ Foam::ensightSetWriter<Type>::ensightSetWriter() writer<Type>() {} -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -template<class Type> -Foam::ensightSetWriter<Type>::~ensightSetWriter() -{} - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // @@ -174,6 +168,7 @@ template<class Type> void Foam::ensightSetWriter<Type>::write ( const bool writeTracks, + const List<scalarField>& times, const PtrList<coordSet>& tracks, const wordList& valueSetNames, const List<List<Field<Type>>>& valueSets, diff --git a/src/fileFormats/sampledSetWriters/ensight/ensightSetWriter.H b/src/fileFormats/sampledSetWriters/ensight/ensightSetWriter.H index d98a32b2ef54e4574dfb4a0d7da84f9272540f7b..2629b3c68b41b76fb8956c7f15ea2a885ec0f0d6 100644 --- a/src/fileFormats/sampledSetWriters/ensight/ensightSetWriter.H +++ b/src/fileFormats/sampledSetWriters/ensight/ensightSetWriter.H @@ -66,7 +66,7 @@ public: //- Destructor - virtual ~ensightSetWriter(); + virtual ~ensightSetWriter() = default; // Member Functions @@ -88,9 +88,10 @@ public: virtual void write ( const bool writeTracks, - const PtrList<coordSet>&, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, - const List<List<Field<Type>>>&, + const List<List<Field<Type>>>& valueSets, Ostream& ) const; }; diff --git a/src/fileFormats/sampledSetWriters/gnuplot/gnuplotSetWriter.C b/src/fileFormats/sampledSetWriters/gnuplot/gnuplotSetWriter.C index a0e02674909d727a0e6221712753d2a363afdf97..df3fafc5e3edd79db6cfcb281e037fbba612875e 100644 --- a/src/fileFormats/sampledSetWriters/gnuplot/gnuplotSetWriter.C +++ b/src/fileFormats/sampledSetWriters/gnuplot/gnuplotSetWriter.C @@ -41,12 +41,6 @@ Foam::gnuplotSetWriter<Type>::gnuplotSetWriter() writer<Type>() {} -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -template<class Type> -Foam::gnuplotSetWriter<Type>::~gnuplotSetWriter() -{} - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // @@ -112,7 +106,8 @@ template<class Type> void Foam::gnuplotSetWriter<Type>::write ( const bool writeTracks, - const PtrList<coordSet>& trackPoints, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, const List<List<Field<Type>>>& valueSets, Ostream& os @@ -125,12 +120,12 @@ void Foam::gnuplotSetWriter<Type>::write << "Number of valueSets:" << valueSets.size() << exit(FatalError); } - if (trackPoints.size() > 0) + if (tracks.size() > 0) { os << "set term postscript color" << nl - << "set output \"" << trackPoints[0].name() << ".ps\"" << nl; + << "set output \"" << tracks[0].name() << ".ps\"" << nl; - forAll(trackPoints, trackI) + forAll(tracks, trackI) { os << "plot"; @@ -147,7 +142,7 @@ void Foam::gnuplotSetWriter<Type>::write forAll(valueSets, i) { - this->writeTable(trackPoints[trackI], valueSets[i][trackI], os); + this->writeTable(tracks[trackI], valueSets[i][trackI], os); os << "e" << nl; } } diff --git a/src/fileFormats/sampledSetWriters/gnuplot/gnuplotSetWriter.H b/src/fileFormats/sampledSetWriters/gnuplot/gnuplotSetWriter.H index feb1ace9109d2bbd31d5f550db235f1cc35a7230..08c237d091264742081160a69d82c299d2f62f48 100644 --- a/src/fileFormats/sampledSetWriters/gnuplot/gnuplotSetWriter.H +++ b/src/fileFormats/sampledSetWriters/gnuplot/gnuplotSetWriter.H @@ -66,7 +66,7 @@ public: //- Destructor - virtual ~gnuplotSetWriter(); + virtual ~gnuplotSetWriter() = default; // Member Functions @@ -88,9 +88,10 @@ public: virtual void write ( const bool writeTracks, - const PtrList<coordSet>&, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, - const List<List<Field<Type>>>&, + const List<List<Field<Type>>>& valueSets, Ostream& ) const; }; diff --git a/src/fileFormats/sampledSetWriters/jplot/jplotSetWriter.C b/src/fileFormats/sampledSetWriters/jplot/jplotSetWriter.C index 0f6c77fd6ea8a4404c612ee0724cc8a6c344f19e..c3c4eb319095be5f132668e5fea5babbcda16103 100644 --- a/src/fileFormats/sampledSetWriters/jplot/jplotSetWriter.C +++ b/src/fileFormats/sampledSetWriters/jplot/jplotSetWriter.C @@ -53,13 +53,6 @@ Foam::jplotSetWriter<Type>::jplotSetWriter() {} -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -template<class Type> -Foam::jplotSetWriter<Type>::~jplotSetWriter() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class Type> diff --git a/src/fileFormats/sampledSetWriters/jplot/jplotSetWriter.H b/src/fileFormats/sampledSetWriters/jplot/jplotSetWriter.H index e67f5202cec4416b7de431c21432ce8dbc62ca7b..39f19ccf3221110efa13555a0182a13f32e30dba 100644 --- a/src/fileFormats/sampledSetWriters/jplot/jplotSetWriter.H +++ b/src/fileFormats/sampledSetWriters/jplot/jplotSetWriter.H @@ -70,7 +70,7 @@ public: //- Destructor - virtual ~jplotSetWriter(); + virtual ~jplotSetWriter() = default; // Member Functions @@ -92,9 +92,10 @@ public: virtual void write ( const bool writeTracks, - const PtrList<coordSet>&, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, - const List<List<Field<Type>>>&, + const List<List<Field<Type>>>& valueSets, Ostream& ) const { diff --git a/src/fileFormats/sampledSetWriters/nastran/nastranSetWriter.C b/src/fileFormats/sampledSetWriters/nastran/nastranSetWriter.C index ed2c734ca42e94428158fc4fc72d4df66dc2e99a..218384cb5905f805a7896260b040bc14c18095df 100644 --- a/src/fileFormats/sampledSetWriters/nastran/nastranSetWriter.C +++ b/src/fileFormats/sampledSetWriters/nastran/nastranSetWriter.C @@ -38,12 +38,6 @@ Foam::nastranSetWriter<Type>::nastranSetWriter() writer<Type>() {} -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -template<class Type> -Foam::nastranSetWriter<Type>::~nastranSetWriter() -{} - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // @@ -129,6 +123,7 @@ template<class Type> void Foam::nastranSetWriter<Type>::write ( const bool writeTracks, + const List<scalarField>& times, const PtrList<coordSet>& tracks, const wordList& valueSetNames, const List<List<Field<Type>>>& valueSets, diff --git a/src/fileFormats/sampledSetWriters/nastran/nastranSetWriter.H b/src/fileFormats/sampledSetWriters/nastran/nastranSetWriter.H index 5ae415744f66c0810237e950e8368d2cbee69aa6..34ec75ffce180a407670ad56f1a0f8be6243b54d 100644 --- a/src/fileFormats/sampledSetWriters/nastran/nastranSetWriter.H +++ b/src/fileFormats/sampledSetWriters/nastran/nastranSetWriter.H @@ -86,7 +86,7 @@ public: //- Destructor - virtual ~nastranSetWriter(); + virtual ~nastranSetWriter() = default; // Member Functions @@ -108,9 +108,10 @@ public: virtual void write ( const bool writeTracks, - const PtrList<coordSet>&, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, - const List<List<Field<Type>>>&, + const List<List<Field<Type>>>& valueSets, Ostream& ) const; }; diff --git a/src/fileFormats/sampledSetWriters/raw/rawSetWriter.C b/src/fileFormats/sampledSetWriters/raw/rawSetWriter.C index 34d99f9968c42f33e79ffcb3b2e394c742e14491..dc6a120606f4442735c0e0b69a8242eadf1bd657 100644 --- a/src/fileFormats/sampledSetWriters/raw/rawSetWriter.C +++ b/src/fileFormats/sampledSetWriters/raw/rawSetWriter.C @@ -39,13 +39,6 @@ Foam::rawSetWriter<Type>::rawSetWriter() {} -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -template<class Type> -Foam::rawSetWriter<Type>::~rawSetWriter() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class Type> @@ -84,7 +77,8 @@ template<class Type> void Foam::rawSetWriter<Type>::write ( const bool writeTracks, - const PtrList<coordSet>& points, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, const List<List<Field<Type>>>& valueSets, Ostream& os @@ -100,7 +94,7 @@ void Foam::rawSetWriter<Type>::write List<const List<Type>*> columns(valueSets.size()); - forAll(points, trackI) + forAll(tracks, trackI) { // Collect sets into columns forAll(valueSets, i) @@ -108,7 +102,7 @@ void Foam::rawSetWriter<Type>::write columns[i] = &valueSets[i][trackI]; } - this->writeTable(points[trackI], columns, os); + this->writeTable(tracks[trackI], columns, os); os << nl << nl; } } diff --git a/src/fileFormats/sampledSetWriters/raw/rawSetWriter.H b/src/fileFormats/sampledSetWriters/raw/rawSetWriter.H index 2109ed78d7fb4b06d58fc483f857cc7110dc1917..817c80ce1de4baf17d12808ab4c9e17084bf627b 100644 --- a/src/fileFormats/sampledSetWriters/raw/rawSetWriter.H +++ b/src/fileFormats/sampledSetWriters/raw/rawSetWriter.H @@ -66,7 +66,7 @@ public: //- Destructor - virtual ~rawSetWriter(); + virtual ~rawSetWriter() = default; // Member Functions @@ -88,9 +88,10 @@ public: virtual void write ( const bool writeTracks, - const PtrList<coordSet>&, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, - const List<List<Field<Type>>>&, + const List<List<Field<Type>>>& valueSets, Ostream& ) const; }; diff --git a/src/fileFormats/sampledSetWriters/vtk/vtkSetWriter.C b/src/fileFormats/sampledSetWriters/vtk/vtkSetWriter.C index 0413bfdb90ec6df0da54a1f909d6f8f63abd1ba2..ab0dde0a6580bd6a0666ea376e152f9e0d778981 100644 --- a/src/fileFormats/sampledSetWriters/vtk/vtkSetWriter.C +++ b/src/fileFormats/sampledSetWriters/vtk/vtkSetWriter.C @@ -41,12 +41,6 @@ Foam::vtkSetWriter<Type>::vtkSetWriter() writer<Type>() {} -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -template<class Type> -Foam::vtkSetWriter<Type>::~vtkSetWriter() -{} - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // @@ -111,6 +105,7 @@ template<class Type> void Foam::vtkSetWriter<Type>::write ( const bool writeTracks, + const List<scalarField>& times, const PtrList<coordSet>& tracks, const wordList& valueSetNames, const List<List<Field<Type>>>& valueSets, diff --git a/src/fileFormats/sampledSetWriters/vtk/vtkSetWriter.H b/src/fileFormats/sampledSetWriters/vtk/vtkSetWriter.H index 570a674bfb5d2e7d4b5602836625935e80ddb971..da000a0acc57b468f510589bffe3293c6ce21ef3 100644 --- a/src/fileFormats/sampledSetWriters/vtk/vtkSetWriter.H +++ b/src/fileFormats/sampledSetWriters/vtk/vtkSetWriter.H @@ -69,7 +69,7 @@ public: //- Destructor - virtual ~vtkSetWriter(); + virtual ~vtkSetWriter() = default; // Member Functions @@ -91,9 +91,10 @@ public: virtual void write ( const bool writeTracks, - const PtrList<coordSet>&, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, - const List<List<Field<Type>>>&, + const List<List<Field<Type>>>& valueSets, Ostream& ) const; }; diff --git a/src/fileFormats/sampledSetWriters/writer.H b/src/fileFormats/sampledSetWriters/writer.H index 1c09a54d1da5ced16553e2d6cb6e5bb6d0c360c7..da591db0f3093223814562c3c68ebec975d84e1e 100644 --- a/src/fileFormats/sampledSetWriters/writer.H +++ b/src/fileFormats/sampledSetWriters/writer.H @@ -178,9 +178,10 @@ public: virtual void write ( const bool writeTracks, - const PtrList<coordSet>&, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, - const List<List<Field<Type>>>&, + const List<List<Field<Type>>>& valueSets, Ostream& ) const = 0; diff --git a/src/fileFormats/sampledSetWriters/xmgrace/xmgraceSetWriter.C b/src/fileFormats/sampledSetWriters/xmgrace/xmgraceSetWriter.C index abc6c094b06859a1bc8ad05585cab4bfe06e84bf..74b6d19a85f0774dddabc5374fdf922f5ce563cf 100644 --- a/src/fileFormats/sampledSetWriters/xmgrace/xmgraceSetWriter.C +++ b/src/fileFormats/sampledSetWriters/xmgrace/xmgraceSetWriter.C @@ -40,13 +40,6 @@ Foam::xmgraceSetWriter<Type>::xmgraceSetWriter() {} -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -template<class Type> -Foam::xmgraceSetWriter<Type>::~xmgraceSetWriter() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template<class Type> @@ -91,7 +84,8 @@ template<class Type> void Foam::xmgraceSetWriter<Type>::write ( const bool writeTracks, - const PtrList<coordSet>& trackPoints, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, const List<List<Field<Type>>>& valueSets, Ostream& os @@ -104,24 +98,24 @@ void Foam::xmgraceSetWriter<Type>::write << "Number of valueSets:" << valueSets.size() << exit(FatalError); } - if (trackPoints.size() > 0) + if (tracks.size() > 0) { os << "@g0 on" << nl << "@with g0" << nl - << "@ title \"" << trackPoints[0].name() << '"' << nl - << "@ xaxis label " << '"' << trackPoints[0].axis() << '"' << nl; + << "@ title \"" << tracks[0].name() << '"' << nl + << "@ xaxis label " << '"' << tracks[0].axis() << '"' << nl; // Data index. label sI = 0; - forAll(trackPoints, trackI) + forAll(tracks, trackI) { forAll(valueSets, i) { os << "@ s" << sI << " legend " << '"' << valueSetNames[i] << "_track" << i << '"' << nl << "@target G0.S" << sI << nl; - this->writeTable(trackPoints[trackI], valueSets[i][trackI], os); + this->writeTable(tracks[trackI], valueSets[i][trackI], os); os << '&' << nl; sI++; diff --git a/src/fileFormats/sampledSetWriters/xmgrace/xmgraceSetWriter.H b/src/fileFormats/sampledSetWriters/xmgrace/xmgraceSetWriter.H index 2c92aa4be1a7b0a8f26f0ca6013f3f5be39f342b..31ec5e41e378e318d56c23103b3108f5f9b76f93 100644 --- a/src/fileFormats/sampledSetWriters/xmgrace/xmgraceSetWriter.H +++ b/src/fileFormats/sampledSetWriters/xmgrace/xmgraceSetWriter.H @@ -66,7 +66,7 @@ public: //- Destructor - virtual ~xmgraceSetWriter(); + virtual ~xmgraceSetWriter() = default; // Member Functions @@ -88,9 +88,10 @@ public: virtual void write ( const bool writeTracks, - const PtrList<coordSet>&, + const List<scalarField>& times, + const PtrList<coordSet>& tracks, const wordList& valueSetNames, - const List<List<Field<Type>>>&, + const List<List<Field<Type>>>& valueSets, Ostream& ) const; }; diff --git a/src/functionObjects/field/streamLine/streamLineBase.C b/src/functionObjects/field/streamLine/streamLineBase.C index e763f5bd72da75278bad86991d9d7fea6b6aca9e..efd37d24fad975fd8961b27f2333966e939246ef 100644 --- a/src/functionObjects/field/streamLine/streamLineBase.C +++ b/src/functionObjects/field/streamLine/streamLineBase.C @@ -742,7 +742,8 @@ bool Foam::functionObjects::streamLineBase::writeToFile() scalarFormatterPtr_().write ( - true, // writeTracks + true, // writeTracks + List<scalarField>(), // times tracks, scalarNames_, scalarValues, @@ -782,7 +783,8 @@ bool Foam::functionObjects::streamLineBase::writeToFile() vectorFormatterPtr_().write ( - true, // writeTracks + true, // writeTracks + List<scalarField>(), // times tracks, vectorNames_, vectorValues, diff --git a/src/mesh/snappyHexMesh/meshRefinement/meshRefinement.C b/src/mesh/snappyHexMesh/meshRefinement/meshRefinement.C index 5be91fd952cd5df2787bd04c1182db42f6f48be9..3c19ea7087253d67716b5d5f83d72362c8092386 100644 --- a/src/mesh/snappyHexMesh/meshRefinement/meshRefinement.C +++ b/src/mesh/snappyHexMesh/meshRefinement/meshRefinement.C @@ -2700,7 +2700,8 @@ Foam::label Foam::meshRefinement::findRegions { leakPathFormatter.write ( - true, // write tracks + true, // write tracks + List<scalarField>(), // times allLeakPaths, valueSetNames, allLeakData,