Parallel Packmol
Parallel Packmol
Parallel Packing Optimization for Molecular Dynamics Simulations
Introduction
Parallel Packmol is a parallel version of Packmol that works with computers with one or more processors (or cores). It uses a shared memory and multiprocessing parallel programming model and takes advantage of the latest multiprocessor/multi-core technology, sharing the work among the available processing units and enabling the work to be done faster.

Packmol was originally developed by J. M. Martínez and L. Martínez at the State University of Campinas. It creates an initial point for molecular dynamics simulations by packing molecules in defined regions of space. The packing guarantees that short range repulsive interactions do not disrupt the simulations. It uses an optimization subroutine called GENCAN that is part of the TANGO project.

Here you will find information about how to compile and use the Parallel Packmol. For more information about Packmol and its usage please click here.

Download
Parallel Packmol is distributed in source code format.
To download the latest version, follow this link.

Compiling and Usage
The Parallel Packmol is developed entirely in Fortran 77. We also used an implementation of the OpenMP API to allow the shared memory multiprocessing programming.

To compile the source code we strongly recommend you to use the GNU Fortran Compiler gfortran version 4.2 because it already comes with an OpenMP implementation. Almost all the instructions given here will assume the use of Linux and gfortran 4.2.
The program usage is almost identical to it's original version. If you are not familiar with it, please read the user guide available at Packmol website.
The only additional steps you may follow is set the number of CPUs wanted in the program execution and some scheduling options. You can do that by setting the following environmental variables (the following instructions about environmental variables are valid to any OpenMP program, independently of the compiler used):