UoC crest

Michael Rutter's Random Programs Page

This page collects together various bit of code I have written and installed in TCM, and after which people sometimes ask with a view to installing them elsewhere. The TCM Group is/was responsible for much bigger and better academic software packages, such as Casino, CASTEP, ONETEP and others.

There is no warranty or statement of fitness for purpose associated with any of the code on this page. If you wish to use them, it is up to you to determine whether they are fit for the purpose you have in mind. Most of them are unmaintained. None of them is in any way endorsed by this University. No guarantees of support are offered either.

The larger bits of code on this page are offered under the GPL, and clearly state this. The smaller pieces are so small as to be, in my opinion, unworthy of any restrictive licence. If the GPL is unsuitable for the use you wish, note that the author retains full rights to the code, so it may be possible to negotiate different terms with him.

Major Projects


Converts from pnm/bmp/gif/jpeg/png to eps/ps/pdf. Major features are that jpegs are converted without decompressing and recompressing, that stdin is accepted for input for all file types, and that some effort is made to make the resulting eps as small as possible. Originally designed for use with LaTeX, it has many other applications. Has its own download page. Part of its code was reused in the excellent PyXPlot.


This is a converter for CASTEP's check files, and can extract charge and spin density, wavefuctions, or simply atomic positions. It can also build supercells. For more information see the check2xsf website.

Linpack in Various Languages

A page dedicated to the Linpack benchmark in various languages: Java, Matlab, Octave, Numpy, Fortran, C, C++/eigen.

OpenMP parallelisation of the Linear Congruential RNG

It is unclear why one would wish to parallelise the Linear Congruential pseudorandom number generator, but the theory is interesting. Examples in C and Fortran, with OpenMP, given.


A simple command-line interface to the spglib crystal symmetry finder. It borrows much code from check2xsf, and is more fully described on a dedicated cellsym page.


Major in the sense of being quite a few lines of code, but not of any finished quality. This demonstration code converts directly from XFig's .fig file format to PDF, without going via PostScript and gs. In its current form, of niche use.

Small Graphics Utilities

(If downloading these, do choose "download target" rather than attempting to copy and paste from your browser window. The latter is very likely to upset things.)

Small Miscellaneous Things

(If downloading these, do choose "download target" rather than attempting to copy and paste from your browser window. The latter is pretty certain to upset things.)

Miscellaneous Notes