Skip to content

Commit

Permalink
remove redundant else and fix CoordSys::spherical -> CoordSys:SPHERICAL
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Sep 11, 2024
1 parent ca04f9e commit 442b5d8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Source/driver/Castro_util.H
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,15 @@ bool mom_flux_has_p (const int mom_dir, const int flux_dir, const int coord)

if (coord != CoordSys::cartesian) {
return false;
} else {
return true;
}
return true;

} else if (mom_dir == 1 && flux_dir == 1) {

if (coord == CoordSys::spherical) {
if (coord == CoordSys::SPHERICAL) {
return false;
} else {
return true
}
return true

} else {
return (mom_dir == flux_dir);
Expand Down

0 comments on commit 442b5d8

Please sign in to comment.