Skip to content

Commit 5e4794d

Browse files
authored
changed thermoFile directory to the constant directory in the global case name to work with '-case' flag (#73)
1 parent 436a1f9 commit 5e4794d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

applications/solvers/additiveFoam/createFields.H

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ volScalarField alpha1
4343
zeroGradientFvPatchScalarField::typeName
4444
);
4545

46-
IFstream thermoFile(runTime.constant()/"thermoPath");
46+
IFstream thermoFile
47+
(
48+
runTime.rootPath()/runTime.globalCaseName()/runTime.constant()/"thermoPath"
49+
);
4750

4851
graph thermo
4952
(

0 commit comments

Comments
 (0)