Skip to content

Commit

Permalink
Use PI instead of M_PI for windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Lattanzi committed Nov 29, 2023
1 parent 588fc7c commit 32a063c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Exec/SquallLine_2D/prob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ Problem::init_custom_pert (
rad = std::pow(std::pow((x - x_c)/x_r,2) + std::pow((z - z_c)/z_r,2), 0.5);

if(rad <= r_c){
delta_theta = theta_c*std::pow(cos(M_PI*rad/2.0),2);
scalar = std::pow(cos(M_PI*rad/2.0),2);
delta_theta = theta_c*std::pow(cos(PI*rad/2.0),2);
scalar = std::pow(cos(PI*rad/2.0),2);
}
else{
delta_theta = 0.0;
Expand Down

0 comments on commit 32a063c

Please sign in to comment.