Skip to content

Commit 48b094a

Browse files
Implemented compatibility check for flamelet + weakly coupled heat
1 parent 7708678 commit 48b094a

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/regression.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
uses: docker://ghcr.io/su2code/su2/test-su2:230225-2136
129129
with:
130130
# -t <Tutorials-branch> -c <Testcases-branch>
131-
args: -b ${{github.ref}} -t develop -c develop -s ${{matrix.testscript}}
131+
args: -b ${{github.ref}} -t develop -c bug_fix_cht_flamelet -s ${{matrix.testscript}}
132132
- name: Cleanup
133133
uses: docker://ghcr.io/su2code/su2/test-su2:230225-2136
134134
with:

Common/src/CConfig.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3947,6 +3947,11 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
39473947
SU2_MPI::Error("The use of FLUID_FLAMELET requires the VISCOSITY_MODEL option to be FLAMELET",
39483948
CURRENT_FUNCTION);
39493949
}
3950+
3951+
if (Weakly_Coupled_Heat) {
3952+
SU2_MPI::Error("The use of FLUID_FLAMELET is incompatible with WEAKLY_COUPLED_HEAT in the same zone.",
3953+
CURRENT_FUNCTION);
3954+
}
39503955
}
39513956

39523957
/*--- Check for Measurement System ---*/

SU2_CFD/src/solvers/CSpeciesFlameletSolver.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@ CSpeciesFlameletSolver::CSpeciesFlameletSolver(CGeometry* geometry, CConfig* con
5858
Max_CFL_Local = CFL;
5959
Avg_CFL_Local = CFL;
6060

61-
/*--- Allocates a 3D array with variable "middle" sizes and init to 0. ---*/
62-
63-
auto Alloc3D = [](unsigned long M, const vector<unsigned long>& N, unsigned long P, vector<su2activematrix>& X) {
64-
X.resize(M);
65-
for (unsigned long i = 0; i < M; ++i) X[i].resize(N[i], P) = su2double(0.0);
66-
};
67-
6861
/*--- Add the solver name. ---*/
6962
SolverName = "FLAMELET";
7063
}

0 commit comments

Comments
 (0)