Skip to content

Commit

Permalink
fix the initialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Feb 18, 2025
1 parent e6e99ac commit b1104a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/10_HasegawaWakatani/10_hasegawa_wakatani.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class HasegawaWakatani {
// \param out_dir [in] The directory to output diagnostic data.
HasegawaWakatani(int nx, double lx, int nbiter, double dt,
const std::string& out_dir)
: m_nx(nx), m_ny(nx), m_nbiter(nbiter), m_dt(dt), m_out_dir(out_dir) {
: m_nbiter(nbiter), m_dt(dt), m_nx(nx), m_ny(nx), m_out_dir(out_dir) {
m_grid = std::make_unique<Grid>(nx, nx, lx, lx);
m_variables = std::make_unique<Variables>(*m_grid);
m_ode = std::make_unique<OdeSolverType>(m_variables->m_fk, dt);
Expand Down

0 comments on commit b1104a1

Please sign in to comment.