A FORTRAN90 Makefile Example Using a Module

**MODULE** is an example of how a makefile can be
used to manage a set of FORTRAN90 files that includes a module.

The makefile management all these files is

- makefile contains the makefile for managing these files.

The underlying task is to set up and manipulate a single precision general matrix, whose type is nicknamed "SGE". A module summarizes certain information about the SGE matrix. The routines available to manipulate the SGE matrix include:

- sge_module.f90 contains the FORTRAN90 module.
- sge_create.f90 used to create a new SGE matrix.
- sge_delete.f90 used to delete an SGE matrix.
- sge_det.f90 used to compute the determinant of an SGE matrix.
- sge_fa.f90 factors an SGE matrix.
- sge_sl.f90 solves a linear system associated with a factored SGE matrix.
- sge_slt.f90 solves a linear system associated with the transpose of a factored SGE matrix.

Several utility routines are included:

- r_swap.f90 swaps two real values.
- rvec_print.f90 prints a real vector.
- timestamp.f90 prints the current YMDHMS date as a timestamp.

**SGE_MOD_PRB.F90** is a sample program that calls the
routines to set up, factor and solve a linear system.

- sge_mod_prb.f90 contains the output from a run of the compiled program.
- sge_mod_prb_output.txt the output file.

You can go up one level to the MAKEFILES page.