Chapter 3: Source Code Structure and Stages of Execution

Continuing from the previous chapter, this chapter will further illustrate the source code hierarchy by describing parent and child classes in the source code. The various methods used in some of these classes will also be discussed. To complete the picture, the flow of control from top-level classes to the code termination stage will be explained using the sequence of execution of methods as determined by the integrator.

This chapter is intended to complete your understanding of the source code hierarchy and flow, which will help you to identify code sections that need modifications when implementing custom features.

We will cover the following topics:

  • Parent and child classes in the ...

Get Extending and Modifying LAMMPS Writing Your Own Source Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.