Skip to content
Snippets Groups Projects
Commit d94985a9 authored by andy's avatar andy
Browse files

ENH: Use scalar for max parcel count for easier i/o

parent 37c59ce4
Branches
Tags
No related merge requests found
...@@ -102,7 +102,8 @@ void Foam::PatchPostProcessing<CloudType>::write() ...@@ -102,7 +102,8 @@ void Foam::PatchPostProcessing<CloudType>::write()
); );
sort(globalData); sort(globalData);
patchOutFile<< "# Time currentProc " + parcelType::propHeader << nl; string header("# Time currentProc " + parcelType::propHeader);
patchOutFile<< header.c_str() << nl;
forAll(globalData, dataI) forAll(globalData, dataI)
{ {
...@@ -125,7 +126,7 @@ Foam::PatchPostProcessing<CloudType>::PatchPostProcessing ...@@ -125,7 +126,7 @@ Foam::PatchPostProcessing<CloudType>::PatchPostProcessing
) )
: :
PostProcessingModel<CloudType>(dict, owner, typeName), PostProcessingModel<CloudType>(dict, owner, typeName),
maxStoredParcels_(readLabel(this->coeffDict().lookup("maxStoredParcels"))), maxStoredParcels_(readScalar(this->coeffDict().lookup("maxStoredParcels"))),
patchIDs_(), patchIDs_(),
patchData_() patchData_()
{ {
......
...@@ -55,8 +55,8 @@ class PatchPostProcessing ...@@ -55,8 +55,8 @@ class PatchPostProcessing
typedef typename CloudType::particleType parcelType; typedef typename CloudType::particleType parcelType;
//- Maximum number of parcels to store //- Maximum number of parcels to store - set as a scalar for I/O
label maxStoredParcels_; scalar maxStoredParcels_;
//- List of patch indices to post-process //- List of patch indices to post-process
labelList patchIDs_; labelList patchIDs_;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment