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 source code
- The stages of executing the simulation within each timestep
- The role played by
pointers.h
- Parsing input script commands by
input.cpp