All About NAMD Source Code

  • Released Versions (choice of the wise)
  • Browse Online (updated nightly using doxygen)
  • Bleeding-Edge (extracted from Git every night)

  • New: Git Access (may require Charm++ from nightly build source code)

  • Using Git Access With Downloaded Source Trees

    Nightly build source code from 2017-05-27 and later includes a .git directory with the full repository, enabling pulls from the main repository above. Suggestions for using old CVS-based source trees with Git are welcome.

  • Deprecated: Direct CVS Access (straight from CVS, may require Charm++ from nightly build source code)
    1. Request and receive a username and password from us.
    2. Run or add the following to your login scripts (replace "username"):
      bash: alias namdcvs='cvs -d'
      csh: alias namdcvs 'cvs -d'
    3. namdcvs login (enter your password)
    4. In a directory that doesn't already contain a file or directory named namd2:
      namdcvs checkout namd2
    5. namdcvs logout

  • Deprecated: Using CVS Access With Downloaded Source Trees
    If you have made modifications to release or nightly build source code from 2013-09-27 through 2017-05-26 there should be directories named "CVS" throughout the source tree. The file Root in these CVS directories should contain "". To use CVS in such a source tree, first obtain a CVS username and password as described above, then either use the namdcvs alias as above, or use the following command to change "nobody" to your username (replace "NAMD_..._Source" and "username"):
    find NAMD_..._Source -name Root | xargs sed -i s/nobody/username/

Other Stuff You'll Need

  • Charm++ is included in all NAMD source code distributions.
  • C and C++ compilers (the Intel compiler has better performance than gcc).
  • Git (or CVS) to download bleeding-edge NAMD and track your changes.
  • TCL and FFTW libraries
    • TCL to enable scripting features
    • FFTW to enable particle mesh Ewald (PME)
      • FFTW version 3.x is supported, just add --with-fftw3 to the NAMD config command line
      • FFTW must be single-precision, i.e., built with "--enable-type-prefix --enable-float"
    • Ensure compatibility by using our precompiled libraries. Note that Red Hat 9 broke compatibility with earlier libraries, so use the linux-redhat7 versions if you get link errors on an ancient system.
  • Cygwin if you're building on Windows.
  • VMD plugins to enable trajectory analysis are now included and built with the NAMD source code.

Building Charm++ and NAMD

Find the section "Compiling NAMD" in notes.txt in your source distribution for detailed instructions, including the correct version of Charm++ (and this is not CHARMM) to use. NAMD 2.5b2 and later include the appropriate Charm++ source code as charm.tar, so the following warning will never be needed again.

For NAMD 2.5b1 and earlier, please note that the directory structure of the current charm development tree is incompatible with versions prior to 2002-04-04. To get buildable versions you will need to download the module charm-5.4 rather than charm as stated in the release notes.

There is lots of good platform-specific building and porting information on NamdWiki.