Skip to content

Commit

Permalink
switched order of operations for cell calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
xLPMG committed Nov 30, 2023
1 parent 59e0290 commit 02defaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ int main(int i_argc,
tsunami_lab::t_real l_y = elem.at("locY");

//location cell
tsunami_lab::t_idx l_cx = l_x/l_dx - l_offsetX;
tsunami_lab::t_idx l_cy = l_y/l_dy - l_offsetY;
tsunami_lab::t_idx l_cx = (l_x - l_offsetX)/l_dx;
tsunami_lab::t_idx l_cy = (l_y - l_offsetY)/l_dy;

l_stations.push_back(new tsunami_lab::io::Station(l_cx,
l_cy,
Expand Down

0 comments on commit 02defaf

Please sign in to comment.