Re-compiling the programs

This step should not normally be necessary, but if it is (for example after patching the source code) you will require to have already installed:

  1. A Fortran 9X compatible compiler.
  2. The standard CCP4 libraries libccp4c.a and libccp4f.a (tested with version 6.x) created using the same compiler (note that mixing object modules from different compilers is generally not supported).
  3. The standard CCP4 environment (tested with version 6.x).

Currently there is only a Makefile for Intel Fortran (tested on v11.1), so if you are using a different compiler you will have to adapt this.  This should be straightforward: you should only need the change the variables:

I would suggest initially using the minimal options needed for reasonable optimisation (e.g. "FFLAGS = -O" and "LDFLAGS ="), then you can add further options to tune it as needed.

In the distribution directory EDSTATS-dist:

If using a different compiler (or even a different version or options) from the ones already tested it is strongly recommended that you always first compare the results produced by the executables obtained by compiling the unmodified source code using the new compiler, with those from the distributed executables, since compiler bugs are not unknown!  Also you should always test your patches with debugging and array bound checking turned on (obviously turn off again for the production version).  Note that because of rounding errors you are very unlikely to get identical results, but at least the important results (e.g. see the "Analysing the standard output" section in edstats.html) should not differ to any significant degree.