Skip to content

Commit

Permalink
distributionModels/general: Fixed copy constructor
Browse files Browse the repository at this point in the history
Patch contributed by Timo Niemi, VTT.
Resolves bug-report https://bugs.openfoam.org/view.php?id=3569
  • Loading branch information
Will Bainbridge committed Oct 13, 2020
1 parent 48c06ad commit e326af2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lagrangian/distributionModels/general/general.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand Down Expand Up @@ -144,7 +144,9 @@ Foam::distributionModels::general::general(const general& p)
nEntries_(p.nEntries_),
minValue_(p.minValue_),
maxValue_(p.maxValue_),
integral_(p.integral_)
meanValue_(p.meanValue_),
integral_(p.integral_),
cumulative_(p.cumulative_)
{}


Expand Down

0 comments on commit e326af2

Please sign in to comment.