]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #18245 from masterleinad/fix_more_clang_tidy_complaints
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 13 Mar 2025 22:30:01 +0000 (18:30 -0400)
committerGitHub <noreply@github.com>
Thu, 13 Mar 2025 22:30:01 +0000 (18:30 -0400)
Fix clang-tidy complaints

1  2 
source/grid/grid_generator.cc
source/grid/grid_tools.cc

index ebd799b5c14fa028652ef5e94040543f41f4c1d1,824b6299a5e34a77c1588c0c73452f776fc63d30..5acf678de89558ec9e4d43b9455ee4196c8572e1
@@@ -536,10 -536,10 +536,11 @@@ namespace GridGenerato
            // (number_points) equidistant points.
            const double theta = 2 * numbers::PI / number_points;
            // first point is leading edge then counterclockwise
+           circle_points.reserve(number_points);
            for (unsigned int i = 0; i < number_points; ++i)
 -            circle_points.emplace_back(center[0] - radius * cos(i * theta),
 -                                       center[1] - radius * sin(i * theta));
 +            circle_points.emplace_back(center[0] - radius * std::cos(i * theta),
 +                                       center[1] -
 +                                         radius * std::sin(i * theta));
  
            return circle_points;
          }
Simple merge

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.