mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -202,7 +202,7 @@ Foam::string& Foam::string::expand()
|
||||
// otherwise add extra test
|
||||
if (user == "OpenFOAM")
|
||||
{
|
||||
*this = dotFoam(file);
|
||||
*this = findEtcFile(file);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -34,7 +34,7 @@ Description
|
||||
Used as a base class for word and fileName.
|
||||
|
||||
See Also
|
||||
Foam::dotFoam() for information about the site/user OpenFOAM
|
||||
Foam::findEtcFile() for information about the site/user OpenFOAM
|
||||
configuration directory
|
||||
|
||||
SourceFiles
|
||||
@ -176,7 +176,7 @@ public:
|
||||
// - leading "~OpenFOAM" : site/user OpenFOAM configuration directory
|
||||
//
|
||||
// @sa
|
||||
// Foam::dotFoam
|
||||
// Foam::findEtcFile
|
||||
string& expand();
|
||||
|
||||
//- Remove repeated characters returning true if string changed
|
||||
|
||||
Reference in New Issue
Block a user