[lammps-users] compile lammps w/h MEAM on TACC

Attached makefile for our cluster (at NNL) where I've successfully linked
MEAM to Lammps.
We use the openMPI (with GCC 4.1) wrapper scripts to handle compiling and
linking.

Sorry I can't help more.

# linux = RedHat Linux box, Intel icc, MPICH, FFTW

SHELL = /bin/sh
#.IGNORE:

# System-specific settings

CC = mpiCC
CCFLAGS = -O3 -I/gpfs/progs/Libraries/fftw-2.1.5/lib
-I/gpfs/progs/Libraries/fftw-2.1.5/include -DFFT_FFTW
DEPFLAGS = -M
LINK = mpiCC #mpic++
LINKFLAGS = -O3 -L~/LAMMPS_COMPILE/lammps-9Jan09/lib/meam
-L/gpfs/progs/Libraries/fftw-2.1.5/lib \
                -L/gpfs/progs/Libraries/fftw-2.1.5/include
USRLIB = -lfftw -lmeam -lgfortran
SYSLIB =
SIZE = size

# Link target

\(EXE\): (OBJ)
        \(LINK\) (LINKFLAGS) \(OBJ\) (USRLIB) \(SYSLIB\) \-o (EXE)
        \(SIZE\) (EXE)

# Library target

lib: \(OBJ\)         (ARCHIVE) \(ARFLAGS\) (EXE) $(OBJ)

# Compilation rules

\.o:.cpp
        \(CC\) (CCFLAGS) -c $<

\.d:.cpp
        \(CC\) (CCFLAGS) \(DEPFLAGS\) < > $@

# Individual dependencies

DEPENDS = \(OBJ:\.o=\.d\) include (DEPENDS)

The contents of this communication have been issued by National Nuclear Laboratory Limited("NNL"). It may contain confidential and/or commercial information owned by NNL and is intended only for the exclusive use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it. Please notify the sender immediately by reply e-mail and then delete this message from your system. All rights reserved. No part of this information may be disclosed to any other person, copied, distributed or used for any other purpose without the written permission of NNL.

NNL is a BNFL Group Company and is subject to the UK Freedom of Information Act 2000 and the Environmental Information Regulations. As such any information in our correspondence may be released under these Acts.

National Nuclear Laboratory Limited (Company number 3857752) Registered in England and Wales. Registered office: 1100 Daresbury Park, Daresbury, Warrington, Cheshire, WA4 4GB.