The CPMD source is distributed as compressed tar file.
By issuing the following command
zcat cpmd.tar.Z | tar xf -
a new directory SOURCE is created. In this directory
you can find all Fortran and C files, as well as the include
files. The Fortran files end in .F, these are files that
have to be processed by the C preprocessor to generate
correct Fortran code for the platform your running on.
You now have to edit the Makefile and activate
the commands for the platform you are workin on.
It is also necessary to edit the file irat.inc
and set the value irat to 1 for 64 bit machines and
2 for 32 bit machines.
CPMD uses dynamical memory allocation. Still there are some hard wired upper limits for certain variables. Most of these limits are declared as parameters in the include file system.h.