From fdff66859c45888d18df1da55b5ee054bac6fe43 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 16 Sep 2025 16:37:32 -0400 Subject: [PATCH] changed thermoFile directory to the constant directory in the global case name to work with '-case' flag --- applications/solvers/additiveFoam/createFields.H | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/applications/solvers/additiveFoam/createFields.H b/applications/solvers/additiveFoam/createFields.H index 7e159dcc..a197af73 100644 --- a/applications/solvers/additiveFoam/createFields.H +++ b/applications/solvers/additiveFoam/createFields.H @@ -43,7 +43,10 @@ volScalarField alpha1 zeroGradientFvPatchScalarField::typeName ); -IFstream thermoFile(runTime.constant()/"thermoPath"); +IFstream thermoFile +( + runTime.rootPath()/runTime.globalCaseName()/runTime.constant()/"thermoPath" +); graph thermo (