Using Fortran with MPI (Message Passing Interface)
This example demonstrates how to use MPI for parallel computing.
Using allocatable Arrays with Bounds
This example demonstrates using allocatable arrays with dynamic bounds.
Error Handling with iostat
This example demonstrates how to handle errors using the iostat specifier in Fortran.
Dynamic Memory Allocation with Pointers
This example shows how to dynamically allocate and deallocate memory using pointers.
Custom Input/Output
This example demonstrates custom input and output routines.
Interfacing with C Code
This example demonstrates how to call C functions from Fortran. In the above example, you would need a C function defined as follows and compiled with the Fortran code: Compile the C code into a shared library and link it with the Fortran program.
Parallel Computing with OpenMP
This example demonstrates using OpenMP for parallel computing.
Object-Oriented Programming (OOP)
This example shows how to define and use derived types with inheritance and type-bound procedures.
Modules with Public and Private Components
This example demonstrates the use of public and private components in Fortran modules.