/qsource

Source for the Molecular Dynamics Package Q

Primary LanguageFortranOtherNOASSERTION

qsource

Version control of the molecular dynamics code called Q, version 5.06, via github.

Q is a set of Molecular Dynamics (MD) tools tailored to the following specific kinds of free energy calculations:

  1. Free Energy Perturbation (FEP)
  2. Empirical Valence Bond (EVB)
  3. Linear Interaction Energies (LIE)

Installation

The current makefiles make it relatively easy to compile the code in a linux or mac OSX environment.

You have to make sure first that gfortran is installed and if you want to compile the MPI version you also have to make sure that openMPI is installed.

If you're using gfortran make sure that you have version 4.8 or later. This applies both to compilation in mac and linux. To make sure that you have version 4.8 or later use:

gfortran --version

Right before issuing the "make" command.

To install in a linux environment you have to move to the src/ folder where the source code and the makefile are located at. To get information on how to use the makefile just type make in your terminal:

unset SSH_ASKPASS
git clone https://yourgitusernamehere@github.com/qusers/qsource.git
cd qsource/src
make

Following the instructions for compilation using the gfortran compiler and the non-mpi version of the code would then take the form:

make all COMP=gcc

Or for MPI compilation (after loading a proper MPI compiler library):

make mpi COMP=gcc

To compile in Mac OSX 10.9.2 you can use native gfortran binaries which you can download from (https://gcc.gnu.org/wiki/GFortranBinaries#MacOS) or you can also compile using the GCC (Gnu Compiler Collection) distributions available to fink, macports or homebrew. In order to compile in a MAC you should call the fink environment first. Usually with:

source /sw/bin/init.sh

alternatively, you can install homebrew and use (confirmed for Mac OSX 10.10):

brew install gcc

Then you proceed as in linux

git clone https://yourgitusernamehere@github.com/qusers/qsource.git
cd qsource/src
make all COMP=osx

This will take care of redirecting the binaries and object files to standard bin and obj folders.

After this you have to add the program to your system path by modifying your shell initiation script, that is, if your shell is bash, you can add the following lines to your .bashrc file using a text editor:

SOFT=/Users/johndoe/software
export QDIR=$SOFT/qsource
export PATH=$QDIR/bin:$PATH  

Where $SOFT will be the place where your software folder is located at, e.g. /Users/johndoe/software

Once the q binaries are declared in your path you should be able to call all q binaries from your terminal. To test that the path to your compiled Q binaries has been correctly assigned you can issue the following commands in the terminal:

source .bashrc
echo $path | grep qsource

/Users/johndoe/software/qsource

qprep

###############################################################################
Welcome to Qprep version 5.06

Qprep> 

Troubleshooting

If you receive error messages during compilation please report them to Christoffer Lind ( christoffer.lind at icm.uu.se ) including the compiler used (e.g. intel fortran), the compiler version, and the error message.

NOTES:

25/04/2014

A new makefile is ready allowing easy upgrades/changes on compiler options by just adding additional else if statements. Work on updating headers and version numbering has been added to the code. Author information added to the main makefile. The script for sending tests has been fixed to correctly account for the number of cores per cluster node.

10/02/2014

If one compiles with older versions of gfortran, say, 4.6, a compilation error will come up when compiling the qcalc program at the rdf file. This issue is not present in the ifortran compilation at all as the fortran code seemingly makes good use of intel fortran options.

07/02/2014

Checked that the code compiles in Mac OSX Mavericks natively using Xcode developer tools and compiled recent versions of gcc and gfortran from:

http://goo.gl/pk5nq5

29/01/2014

Changed fortran source to Paul's current version.

20/01/2014

In order to compile using gfortran with Alexandre Barrozo's additional subroutine for angle constraints it was necessary to turn off the flush and iargc symbols.