Skip to content

Commit 88c8392

Browse files
authored
Fix LUT and species clipping (#1761)
* fix bug with dimensions in LUT and fix species clipping check
1 parent 45214cd commit 88c8392

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Common/src/CConfig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5358,7 +5358,7 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
53585358
}
53595359

53605360
/*--- If Species clipping is on, make sure bounds are given by the user. ---*/
5361-
if (OptionIsSet("SPECIES_CLIPPING"))
5361+
if (Species_Clipping)
53625362
if (!(OptionIsSet("SPECIES_CLIPPING_MIN") && OptionIsSet("SPECIES_CLIPPING_MAX")))
53635363
SU2_MPI::Error("SPECIES_CLIPPING= YES requires the options SPECIES_CLIPPING_MIN/MAX to set the clipping values.", CURRENT_FUNCTION);
53645364

Common/src/containers/CTrapezoidalMap.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ unsigned long CTrapezoidalMap::GetTriangle(su2double val_x, su2double val_y) {
143143
pair<unsigned long, unsigned long> edges = GetEdges(band, val_x, val_y);
144144

145145
/* identify the triangle using the two edges */
146-
std::array<unsigned long, 3> triangles_edge_low;
146+
std::array<unsigned long, 2> triangles_edge_low;
147147

148-
for (int i=0;i<3;i++)
148+
for (int i=0;i<2;i++)
149149
triangles_edge_low[i] = edge_to_triangle[edges.first][i];
150150

151-
std::array<unsigned long, 3> triangles_edge_up;
152-
for (int i=0;i<3;i++)
151+
std::array<unsigned long, 2> triangles_edge_up;
152+
for (int i=0;i<2;i++)
153153
triangles_edge_up[i] = edge_to_triangle[edges.second][i];
154154

155155
sort(triangles_edge_low.begin(), triangles_edge_low.end());

SU2_CFD/src/fluid/CFluidScalar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* \file CFluidScalar.hpp
2+
* \file CFluidScalar.cpp
33
* \brief Defines the multicomponent incompressible Ideal Gas model for mixtures.
44
* \author T. Economon, Mark Heimgartner, Cristopher Morales Ubal
55
* \version 7.4.0 "Blackbird"

0 commit comments

Comments
 (0)