Skip to content

Commit

Permalink
Add vim modeline.
Browse files Browse the repository at this point in the history
The C++ and Python files in this project have been scanned. Modelines have been added to those files that had no modeline at all. For files containing a modeline other than the latest version, I left them unchanged.

Ensured that lines end with LF instead of CRLF.
  • Loading branch information
dragonwu0919 committed Aug 31, 2024
1 parent f7195c7 commit 33734c6
Show file tree
Hide file tree
Showing 16 changed files with 46 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:
3 changes: 3 additions & 0 deletions cpp/modmesh/buffer/pymod/TypeBroadcast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,6 @@ struct TypeBroadcast

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

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

3 changes: 3 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,6 @@ 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:

3 changes: 3 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,6 @@ 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:

3 changes: 3 additions & 0 deletions cpp/modmesh/onedim/Euler1DCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,6 @@ 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:

3 changes: 3 additions & 0 deletions cpp/modmesh/spacetime/kernel/BadEuler1DSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,6 @@ 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:

3 changes: 3 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,6 @@ 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:
3 changes: 3 additions & 0 deletions modmesh/app/euler1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,3 +839,6 @@ def load_app():
config_window.redraw()
plotting_area.redraw()
_subwin.show()

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

3 changes: 3 additions & 0 deletions modmesh/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,6 @@ def run(self):

root = Example()
root.run()

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

3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,6 @@ def main():

if __name__ == '__main__':
main()

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

3 changes: 3 additions & 0 deletions tests/test_gmsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ 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 33734c6

Please sign in to comment.