DL_POLY_2 was designed as a package of useful subroutines rather than a single program, which means that users are to be able to construct a working simulation program of their own design from the subroutines available, which is capable of performing a specific simulation. However we recognise that many, perhaps most, users will be content with creating a standard version that covers all of the possible applications and for this reason we have provided the necessary tools to assemble such a version. The method of creating the standard version is described in detail in this chapter, however a brief step-by-step description follows.
This simple procedure is enough to create a standard version to run the supplied test cases. (For versions preceeding 2.11, it will not run the larger benchmark cases however.) Creating a larger executable, or one which is tailored to an application different from the test cases is more complicated. The main difficulty centres on assigning appropriate array dimensions to meet the application's needs. In versions of DL_POLY_2 after 2.11 these dimensions are calculated by the subroutine PARSET.F and its support routines CFGSCAN.F, CONSCAN.F and FLDSCAN.F. These support routines scan the CONFIG, CONTROL and FIELD files at the start of a run and estimate the required array sizes. (A description of the individual arrays found in DL_POLY_2 is provided in Appendix C of the DL_POLY_2 Reference Manual.)
In versions preceeding 2.11, the size of the DL_POLY_2 executable is determined by the the DL_PARAMS.INC (include) file (see section 8.1.1), which specifies all the FORTRAN parameters of the code and is included in each subroutine at compile time. This file is found in the source directory and is internally documented (it is also documented in chapter 8). Reconstructing the DL_PARAMS.INC for a new simulation is the most difficult aspect of preparing a DL_POLY_2 executable. If the parameters are not appropriate, DL_POLY_2 will complain if any parameter is too small and abort in execution. Each such error will entail a recompilation of the code, and DL_POLY_2 generally detects only one error at a time! Fortunately, the process of creating a new DL_PARAMS.INC file is greatly assisted by the utility program PARSET (see section 7.1.1). Provided the CONTROL, CONFIG and FIELD files are available, PARSET will create a suitable parameters file for you. (See section 3.2.2).