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
95bb8d65
Commit
95bb8d65
authored
Aug 06, 2008
by
Mattijs Janssens
Browse files
tidy up
parent
49c7752b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/thermophysicalModels/pdfs/pdf/newPdf.C
View file @
95bb8d65
...
...
@@ -37,31 +37,23 @@ autoPtr<Foam::pdf> Foam::pdf::New
Random
&
rndGen
)
{
word
pdfType
(
dict
.
lookup
(
"pdfType"
)
);
word
pdfType
(
dict
.
lookup
(
"pdfType"
));
Info
<<
"Selecting pdfType "
<<
pdfType
<<
endl
;
Info
<<
"Selecting pdfType "
<<
pdfType
<<
endl
;
dictionaryConstructorTable
::
iterator
cstrIter
=
dictionaryConstructorTablePtr_
->
find
(
pdfType
);
if
(
cstrIter
==
dictionaryConstructorTablePtr_
->
end
())
{
FatalError
<<
"pdf::New(const dictionary&, Random&) : "
<<
endl
<<
" unknown pdfType type "
<<
pdfType
<<
", constructor not in hash table"
<<
endl
<<
endl
<<
" Valid pdf types are :"
<<
endl
;
Info
<<
dictionaryConstructorTablePtr_
->
toc
()
<<
abort
(
FatalError
);
FatalErrorIn
(
"pdf::New(const dictionary&, Random&)"
)
<<
"unknown pdf type "
<<
pdfType
<<
endl
<<
endl
<<
"Valid pdf types are :"
<<
endl
<<
dictionaryConstructorTablePtr_
->
toc
()
<<
exit
(
FatalError
);
}
return
autoPtr
<
pdf
>
(
cstrIter
()(
dict
,
rndGen
));
//return autoPtr<pdf>(new pdf);
}
// ************************************************************************* //
...
...
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