Skip to content

Commit

Permalink
Merge pull request #5635 from danieldouglas92/initialize_worldbuilder…
Browse files Browse the repository at this point in the history
…_variable

Initialize uninitialized variable
  • Loading branch information
bangerth authored May 8, 2024
2 parents 879dad0 + 7558ad2 commit 5a36ef3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,10 @@ namespace WorldBuilder

Point<2> estimate_point = a*est*est*est+b*est*est+c*est+d;

double cos_lat_dg;
double sin_d_long_h_dg;
double sin_d_lat_h_dg;
double min_squared_distance_cartesian_temp_dg;
double cos_lat_dg = NaN::DSNAN;
double sin_d_long_h_dg = NaN::DSNAN;
double sin_d_lat_h_dg = NaN::DSNAN;
double min_squared_distance_cartesian_temp_dg = NaN::DSNAN;
if (verbose == true)
{
cos_lat_dg = cos(estimate_point[1]);
Expand Down

0 comments on commit 5a36ef3

Please sign in to comment.