Codes for
Writing Scientific Software: a guide to good style

This page contains links to the code samples that are part of or referred to by our book.

The samples are in a wide range of different languages, including C, C++, Fortran (mostly Fortran 90), and Java, although some are things like makefile's, or sed scripts.  Use at your own risk.  They have been tested, and we have tried to make sure that they are error free, but as with most numerical code, accuracy and reliability cannot be taken for granted even for a code that is "correct".  

Our intention is that the codes provided here are more-or-less complete, rather than short selections as shown in the book itself.

If you notice any problems with the codes provided here, please let us know.