Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 2.54 KB

README.md

File metadata and controls

47 lines (37 loc) · 2.54 KB

Numerical Recipes in FORTRAN 77

Subroutines by Chapter and Section

sect program description
1.0 flmoon calculate phases of the moon by date
1.1 julday Julian Day number from calendar date
1.1 caldat calendar date from Julian day number
8.1 piksrt sort an array by straight insertion
8.1 piksr2 sort two arrays by straight insertion

Demonstration Programs

sect program description dependencies input
--- flmoon calculate phases of the moon by date flmoon, julday, caldat
--- julday Julian Day number from calendar date julday dates.dat
1.1 badluk Friday the 13th when the moon is full flmoon, julday, piksr4_1222
--- caldat calendar date from Julian day number julday, caldat dates.dat
--- piksrt sort an array by straight insertion piksrt tarray.dat
--- piksr2 sort two arrays by straight insertion piksr2 tarray.dat

Additional subroutines

program description input
piksr3 sort three arrays by straight insertion tarray.dat
piksr3_122 sort an array and two matricies by straight insertion tarray.dat
piksr4_1222 tarray.dat

Installation

Cloning

Clone the reposity with one of the following commands.

git clone https://github.com/jonlighthall/nrf (Git HTTPS)

git clone git@github.com:jonlighthall/nrf.git (Git SSH)

Compiling

The demonstration programs can be compiled using the makefile. Alternatively, the following commands my be used.

gfortran -std=legacy flmoon.dem.f flmoon.f julday.f caldat.f
gfortran -std=legacy julday.dem.f julday.f
gfortran -std=legacy badluk.f  flmoon.f julday.f piksr4_1222.f
gfortran -std=legacy caldat.dem.f julday.f caldat.f