mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Time: propagate application setting into environment var
This commit is contained in:
@ -30,6 +30,13 @@ License
|
|||||||
|
|
||||||
void Foam::Time::readDict()
|
void Foam::Time::readDict()
|
||||||
{
|
{
|
||||||
|
word application;
|
||||||
|
if (controlDict_.readIfPresent("application", application))
|
||||||
|
{
|
||||||
|
// Do not override if already set so external application can override
|
||||||
|
setEnv("FOAM_APPLICATION", application, false);
|
||||||
|
}
|
||||||
|
|
||||||
if (!deltaTchanged_)
|
if (!deltaTchanged_)
|
||||||
{
|
{
|
||||||
deltaT_ = readScalar(controlDict_.lookup("deltaT"));
|
deltaT_ = readScalar(controlDict_.lookup("deltaT"));
|
||||||
|
|||||||
Reference in New Issue
Block a user