In sections 8.2 and 8.3, we learned the basic syntax of defining a derived type and its components, and binding a method to it. We also began to apply these techniques toward building the Field derived type, which we’ll use to model the physical quantities that the tsunami simulator predicts, namely water height and velocity. What we haven’t quite addressed is the transition from a one-dimensional solver that gave us a profile of a water wave (see figure 8.1), to a two-dimensional solver that will give us a top-down view in an x-y plane (figure 8.2).
Extending tsunami to two dimensions