Skip to content

Instantly share code, notes, and snippets.

@tovrstra
tovrstra / mictest.py
Created September 1, 2012 08:10
Test program for 'minimum image convention' routines for triclinic cells
#!/usr/bin/env python
'''Test program for 'minimum image convention' routines for triclinic cells
This program is public domain.
Author(s): Toon Verstraelen
The minimum image convention (MIC) is a standard method in molecular
simulations of periodic systems. The convention states that one can
approximate the interaction between atom i and all periodic images of atom j
@zeuxisoo
zeuxisoo / gist:980174
Created May 19, 2011 04:15
How to use git diff to patch file

Create patch file

git diff --no-prefix > [path file name]

Apply path file

patch -p0 < [path file name]