Skip to content

Commit

Permalink
fix theta area
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Sep 8, 2024
1 parent 39a11ff commit 23e64a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/driver/Castro_util.H
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ Real area(const int& i, const int& j, const int& k,
Real r = geomdata.ProbLo()[0] + (static_cast<Real>(i) + 0.5_rt) * dx[0];
Real theta = geomdata.ProbLo()[1] + static_cast<Real>(j) * dx[1];

a = M_PI * std::sin(theta) * dx[0] * (2.0_rt * r + dx[0]);
a = 2.0_rt * M_PI * std::sin(theta) * dx[0] * r;
}

}
Expand Down

0 comments on commit 23e64a7

Please sign in to comment.