Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
8c8cf921
Commit
8c8cf921
authored
Dec 14, 2016
by
Andrew Heather
Browse files
ENH: distributionModels - pass in construction dict instead of parent dict
parent
7d61b870
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/distributionModels/distributionModel/distributionModel.C
View file @
8c8cf921
...
...
@@ -69,7 +69,7 @@ Foam::distributionModels::distributionModel::distributionModel
cachedRandom
&
rndGen
)
:
distributionModelDict_
(
dict
.
subOrEmptyDict
(
name
+
"Distribution"
)
),
distributionModelDict_
(
dict
),
rndGen_
(
rndGen
)
{}
...
...
src/lagrangian/distributionModels/distributionModel/distributionModelNew.C
View file @
8c8cf921
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2016 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -50,7 +50,10 @@ Foam::distributionModels::distributionModel::New
<<
exit
(
FatalError
);
}
return
autoPtr
<
distributionModel
>
(
cstrIter
()(
dict
,
rndGen
));
const
dictionary
distributionDict
=
dict
.
subOrEmptyDict
(
modelType
&
"Distribution"
);
return
autoPtr
<
distributionModel
>
(
cstrIter
()(
distributionDict
,
rndGen
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment