appendix C. Concluding remarks

This appendix provides a recap and complete code of the tsunami simulator. It also offers ideas on where to go from here, as well as tips for learning more about Fortran.

C.1 Tsunami simulator: The complete code

For closure and as a refresher, let’s review the complete tsunami code that we developed together while working through this book:

  • In chapter 2, we implemented our first working program, which simply moved the prescribed wave, without changing its shape.

  • In chapter 3, we refactored our program from chapter 2 to use a function for finite difference calculation, and a subroutine to initialize the wave shape.

  • In chapter 4, we refactored our program from chapter 3 to define the procedures inside of a ...

Get Modern Fortran now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.