Log in Page Discussion History Go to the site toolbox

CAML LAMMPS Install

From Engineering Grid Wiki

Installation

Using the source package from http://lammps.sandia.gov/download.html, follow the readme.

The Makefile.pg under MAKE should be modified as such:

# pg = Portland Group compiler, MPICH, FFTW

SHELL = /bin/sh
#.IGNORE:

# System-specific settings

CC =            pgCC -fast
CCFLAGS =       -I/cluster/caml/mpi-pgi/include \
                -I/usr/local/include \
                -DFFT_FFTW -DLAMMPS_GZIP
DEPFLAGS =      -M
LINK =          pgCC
LINKFLAGS =     -L/cluster/caml/mpi-pgi/lib \
                -L/usr/local/lib 
USRLIB =        -lfftw -lmpich  -ldl -lssl
SYSLIB =        -lpthread
ARCHIVE =       ar
ARFLAGS =       -rc
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)

Copy the binary to the /cluster/caml/lammps directory.

Site Toolbox:

Personal tools
This page was last modified on 3 December 2009, at 10:29. - This page has been accessed 2,853 times. - Disclaimers - About Engineering Grid Wiki