Skip to content

Commit

Permalink
Remove unnecessary function call (which is not constexpr)
Browse files Browse the repository at this point in the history
  • Loading branch information
cscjlan committed Oct 18, 2024
1 parent c8d3e35 commit fe25ebf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coordinates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ struct Coordinates {
*/
constexpr std::array<FsSize_t, 3> physicalToGlobal(double x, double y, double z) const {
return {
static_cast<FsSize_t>(floor((x - physicalGlobalStart[0]) / physicalGridSpacing[0])),
static_cast<FsSize_t>(floor((y - physicalGlobalStart[1]) / physicalGridSpacing[1])),
static_cast<FsSize_t>(floor((z - physicalGlobalStart[2]) / physicalGridSpacing[2])),
static_cast<FsSize_t>((x - physicalGlobalStart[0]) / physicalGridSpacing[0]),
static_cast<FsSize_t>((y - physicalGlobalStart[1]) / physicalGridSpacing[1]),
static_cast<FsSize_t>((z - physicalGlobalStart[2]) / physicalGridSpacing[2]),
};
}

Expand Down

0 comments on commit fe25ebf

Please sign in to comment.