In order to avoid re-inventing the wheel, a collection of FORTRAN code that may be useful for your scientific program.