Skip to content

Commit

Permalink
fixed switched offset
Browse files Browse the repository at this point in the history
  • Loading branch information
xLPMG committed Nov 30, 2023
1 parent 7903038 commit 88aaf33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,11 @@ int main(int i_argc,
// set up solver
for (tsunami_lab::t_idx l_cy = 0; l_cy < l_ny; l_cy++)
{
tsunami_lab::t_real l_y = (l_cy + 0.5) * l_dy + l_offsetX;
tsunami_lab::t_real l_y = (l_cy + 0.5) * l_dy + l_offsetY;

for (tsunami_lab::t_idx l_cx = 0; l_cx < l_nx; l_cx++)
{
tsunami_lab::t_real l_x = (l_cx + 0.5) * l_dx + l_offsetY;
tsunami_lab::t_real l_x = (l_cx + 0.5) * l_dx + l_offsetX;

// get initial values of the setup
tsunami_lab::t_real l_h = l_setup->getHeight(l_x,
Expand Down
6 changes: 3 additions & 3 deletions src/setups/TsunamiEvent2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ tsunami_lab::setups::TsunamiEvent2d::TsunamiEvent2d(const char *i_bathymetryPath
m_nyD,
"y");

m_xDataB = new t_real[m_nxB]{0};
m_yDataB = new t_real[m_nyB]{0};
m_b = new t_real[m_nxB * m_nyB]{0};
m_xDataB = new t_real[m_nxB];
m_yDataB = new t_real[m_nyB];
m_b = new t_real[m_nxB * m_nyB];

i_netCdf->read(i_bathymetryPath,
"z",
Expand Down

0 comments on commit 88aaf33

Please sign in to comment.