Derived type implementation of the tsunami solver
Finally, we’re getting close to the home stretch. The following listing provides the (almost) complete code of the derived type implementation of the tsunami simulator. I’ve omitted the declaration section for brevity. Listing 8.13 Derived type implementation of the tsunami solver ❶ Initializes Fields ❷ Sets initial water height perturbation and sync ❸ Sets a constant mean water […]