Skip to content

Commit

Permalink
Fix LUT and species clipping (su2code#1761)
Browse files Browse the repository at this point in the history
* fix bug with dimensions in LUT and fix species clipping check
  • Loading branch information
bigfooted authored Sep 14, 2022
1 parent 45214cd commit 88c8392
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Common/src/CConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5358,7 +5358,7 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
}

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

Expand Down
8 changes: 4 additions & 4 deletions Common/src/containers/CTrapezoidalMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ unsigned long CTrapezoidalMap::GetTriangle(su2double val_x, su2double val_y) {
pair<unsigned long, unsigned long> edges = GetEdges(band, val_x, val_y);

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

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

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

sort(triangles_edge_low.begin(), triangles_edge_low.end());
Expand Down
2 changes: 1 addition & 1 deletion SU2_CFD/src/fluid/CFluidScalar.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* \file CFluidScalar.hpp
* \file CFluidScalar.cpp
* \brief Defines the multicomponent incompressible Ideal Gas model for mixtures.
* \author T. Economon, Mark Heimgartner, Cristopher Morales Ubal
* \version 7.4.0 "Blackbird"
Expand Down

0 comments on commit 88c8392

Please sign in to comment.