rename Foam::dotFoam() -> Foam::findEtcFile() with an optional 'mandatory' argument

- if mandatory is true, findEtcFile() will abort with a message (via cerr).
  This allows a non-existent file to be caught at the lowest level and avoid
  error handling in IFstream, which might not be initialized at that stage.
This commit is contained in:
Mark Olesen
2008-12-12 19:16:32 +01:00
parent 089e5e3b00
commit 0571f5393e
9 changed files with 30 additions and 10 deletions

View File

@ -202,7 +202,7 @@ Foam::string& Foam::string::expand()
// otherwise add extra test
if (user == "OpenFOAM")
{
*this = dotFoam(file);
*this = findEtcFile(file);
}
else
{