mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: #761 controlDict unreadable
This commit is contained in:
@ -95,10 +95,18 @@ Foam::dictionary& Foam::debug::controlDict()
|
||||
controlDictPtr_ = new dictionary();
|
||||
forAllReverse(controlDictFiles, cdfi)
|
||||
{
|
||||
controlDictPtr_->merge
|
||||
(
|
||||
dictionary(IFstream(controlDictFiles[cdfi])())
|
||||
);
|
||||
IFstream ifs(controlDictFiles[cdfi]);
|
||||
|
||||
if (!ifs.good())
|
||||
{
|
||||
SafeFatalIOErrorIn
|
||||
(
|
||||
"debug::controlDict()",
|
||||
ifs,
|
||||
"Cannot open controlDict"
|
||||
);
|
||||
}
|
||||
controlDictPtr_->merge(dictionary(ifs));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user