Skip to content

Commit

Permalink
Merge pull request #420 from dragonwu0919/CodeStyle
Browse files Browse the repository at this point in the history
Add vim modeline.
  • Loading branch information
yungyuc authored Sep 2, 2024
2 parents f7195c7 + 1154006 commit da4328f
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cpp/modmesh/buffer/SimpleArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,3 +515,5 @@ SimpleArrayPlex::~SimpleArrayPlex()
}

} /* end namespace modmesh */

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
2 changes: 2 additions & 0 deletions cpp/modmesh/buffer/pymod/TypeBroadcast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,5 @@ struct TypeBroadcast

} /* end namespace python */
} /* end namespace modmesh */

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
2 changes: 2 additions & 0 deletions cpp/modmesh/inout/pymod/wrap_Gmsh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ void wrap_Gmsh(pybind11::module & mod)
} /* end namespace python */

} /* end namespace modmesh */

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
2 changes: 2 additions & 0 deletions cpp/modmesh/inout/pymod/wrap_Plot3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ void wrap_Plot3d(pybind11::module & mod)
} /* end namespace python */

} /* end namespace modmesh */

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
2 changes: 2 additions & 0 deletions cpp/modmesh/onedim/Euler1DCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,5 @@ SimpleArray<double> Euler1DCore::entropy() const

} /* end namespace onedim */
} /* end namespace modmesh */

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
4 changes: 3 additions & 1 deletion cpp/modmesh/onedim/Euler1DCore.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,6 @@ inline void Euler1DCore::march_alpha(size_t steps)
}

} /* end namespace onedim */
} /* end namespace modmesh */
} /* end namespace modmesh */

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
2 changes: 2 additions & 0 deletions cpp/modmesh/spacetime/kernel/BadEuler1DSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,5 @@ void BadEuler1DSolver::treat_boundary_so1()

} /* end namespace spacetime */
} /* end namespace modmesh */

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
4 changes: 3 additions & 1 deletion cpp/modmesh/spacetime/kernel/BadEuler1DSolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,6 @@ inline void BadEuler1DSolver::march_alpha(size_t steps)
}

} /* end namespace spacetime */
} /* end namespace modmesh */
} /* end namespace modmesh */

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
2 changes: 2 additions & 0 deletions cpp/modmesh/testhelper/pymod/testbuffer_pymod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ void initialize_testbuffer(pybind11::module & mod)
} /* end namespace python */

} /* end namespace modmesh */

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
4 changes: 3 additions & 1 deletion gtests/test_nopython_callprofiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,6 @@ TEST_F(CallProfilerTest, cancel)
}

} // namespace detail
} // namespace modmesh
} // namespace modmesh

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
2 changes: 2 additions & 0 deletions gtests/test_nopython_inout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,5 @@ TEST(Gmsh_Parser, Hexahedron125NodeDefinition)
EXPECT_EQ(ele_def.mmtpn(), 5);
EXPECT_THAT(ele_def.mmcl(), testing::ElementsAre(0, 1, 2, 3, 4, 5, 6, 7));
}

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
4 changes: 3 additions & 1 deletion gtests/test_nopython_serializable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,6 @@ TEST(Json, deserialize_with_unordered_map)
EXPECT_EQ(item.pet_map["cat"].is_cat, true);
}

} // namespace modmesh
} // namespace modmesh

// vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
2 changes: 2 additions & 0 deletions modmesh/app/euler1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,3 +839,5 @@ def load_app():
config_window.redraw()
plotting_area.redraw()
_subwin.show()

# vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
2 changes: 2 additions & 0 deletions modmesh/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,5 @@ def run(self):

root = Example()
root.run()

# vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,5 @@ def main():

if __name__ == '__main__':
main()

# vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:
2 changes: 2 additions & 0 deletions tests/test_gmsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ def test_gmsh_parsing(self):
self.assertEqual(blk.clnds.ndarray[3:, :4].tolist(), [[3, 0, 1, 2],
[3, 0, 2, 3],
[3, 0, 3, 1]])

# vim: set ff=unix fenc=utf8 et sw=4 ts=4 sts=4:

0 comments on commit da4328f

Please sign in to comment.