Skip to content

Commit

Permalink
repatched, hopefully my last time ever refs idaholab#21903
Browse files Browse the repository at this point in the history
  • Loading branch information
Oana Marin authored and oanaoana committed Mar 28, 2023
1 parent 3d4743e commit 6359131
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions framework/src/meshgenerators/TransfiniteMeshGenerator.C
Expand Up @@ -143,7 +143,6 @@ TransfiniteMeshGenerator::generate()
edge_left.resize(_ny);
edge_right.resize(_ny);


std::vector<Real> param_x_dir;
std::vector<Real> param_y_dir;
param_x_dir.resize(_nx);
Expand Down Expand Up @@ -344,8 +343,8 @@ TransfiniteMeshGenerator::getDiscreteEdge(const unsigned int & np, const std::st
mooseError("DISCRETE: the number of discrete points does not match the number of points on the"
"opposite edge.");

edge.resize(np);
auto it = 0;
edge.resize(np);
auto it = 0;
for (unsigned int iter = 0; iter < string_points.size(); iter++)
{
std::vector<Real> point_vals;
Expand Down Expand Up @@ -393,7 +392,7 @@ TransfiniteMeshGenerator::getCircarcEdge(const Point & P1,
// to identify the entire edge span
mooseAssert(x0.norm() > 0.0 && x1.norm() > 0.0,
"The point provided cannot generate an arc circle on the edge specified");

Real arclength = std::acos((x0 * x1) / x0.norm() / x1.norm());
if (MooseUtils::absoluteFuzzyGreaterThan(std::abs(b - a), M_PI))
b = a + arclength;
Expand Down

0 comments on commit 6359131

Please sign in to comment.