Exploring Modern Fortran Basics presents three chapters from Modern Fortran: Building Efficient Parallel Applications by meteorologist, oceanographer, and Fortran programmer, Milan Curcic. Inside, you’ll learn the core features of modern Fortran as you build a simple tsunami simulator. First you’ll master the basics, including variables, data types, control flow, and arithmetic operations and assignments. Then you’ll add complexity to your program with Fortran’s functions and subroutines, the building blocks that enable us to define self-contained and reusable nuggets of code. In the last chapter, you’ll advance to using Fortran modules for organizing your code in a meaningful way as well as making them accessible for use in programs, procedures, or other modules. At the end of this practical guide, you’ll have a working Fortran program and valuable basic Fortran skills!
Modern Fortran teaches you to develop fast, efficient parallel applications using twenty-first-century Fortran. In this guide, you'll dive into Fortran by creating fun apps, including a tsunami simulator and a stock price analyzer. Filled with real-world use cases, insightful illustrations, and hands-on exercises, Modern Fortran helps you see this classic language in a whole new light.