mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3013 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
14b3f4f92f
commit
8aa28e6677
|
@ -1,4 +1,5 @@
|
|||
# Install/unInstall package classes in LAMMPS
|
||||
# edit Makefile.package to include/exclude MEAM library
|
||||
|
||||
if ($1 == 1) then
|
||||
|
||||
|
@ -8,6 +9,11 @@ if ($1 == 1) then
|
|||
|
||||
cp pair_meam.h ..
|
||||
|
||||
sed -i 's/\S*meam //' ../Makefile.package
|
||||
sed -i 's|^PKGINC =\s*|&-I../../lib/meam |' ../Makefile.package
|
||||
sed -i 's|^PKGPATH =\s*|&-L../../lib/meam |' ../Makefile.package
|
||||
sed -i 's|^PKGLIB =\s*|&-lmeam |' ../Makefile.package
|
||||
|
||||
else if ($1 == 0) then
|
||||
|
||||
rm ../style_meam.h
|
||||
|
@ -17,4 +23,6 @@ else if ($1 == 0) then
|
|||
|
||||
rm ../pair_meam.h
|
||||
|
||||
sed -i 's/\S*meam //' ../Makefile.package
|
||||
|
||||
endif
|
||||
|
|
|
@ -63,6 +63,7 @@ help:
|
|||
@if [ ! -d Obj_$@ ]; then mkdir Obj_$@; fi
|
||||
@cp -p $(SRC) $(INC) Obj_$@
|
||||
@cp MAKE/Makefile.$@ Obj_$@/Makefile
|
||||
@cp Makefile.package Obj_$@
|
||||
@cd Obj_$@; \
|
||||
$(MAKE) $(MFLAGS) "OBJ = $(OBJ)" "INC = $(INC)" "EXE = ../$(EXE)" ../$(EXE)
|
||||
@if [ -d Obj_$@ ]; then cd Obj_$@; rm -f $(SRC) $(INC) Makefile*; fi
|
||||
|
@ -170,4 +171,4 @@ package-update:
|
|||
package-overwrite:
|
||||
@for p in $(PACKAGEUC); do csh -f Package.csh $$p overwrite; done
|
||||
@echo ''
|
||||
@for p in $(PACKUSERUC); do csh -f Package.csh $$p overwrite; done
|
||||
@for p in $(PACKUSERUC); do csh -f Package.csh $$p overwrite
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
# Settings for libraries used by specific LAMMPS packages
|
||||
# this file is auto-edited when those packages are included/excluded
|
||||
|
||||
PKGINC = -I../../lib/poems -I../../lib/meam -I../../lib/reax
|
||||
PKGPATH = -L../../lib/poems -L../../lib/meam -L../../lib/reax
|
||||
PKGLIB = -lpoems -lmeam -lreax
|
|
@ -1,4 +1,5 @@
|
|||
# Install/unInstall package classes in LAMMPS
|
||||
# edit Makefile.package to include/exclude POEMS library
|
||||
|
||||
if ($1 == 1) then
|
||||
|
||||
|
@ -8,6 +9,11 @@ if ($1 == 1) then
|
|||
|
||||
cp fix_poems.h ..
|
||||
|
||||
sed -i 's/\S*poems //' ../Makefile.package
|
||||
sed -i 's|^PKGINC =\s*|&-I../../lib/poems |' ../Makefile.package
|
||||
sed -i 's|^PKGPATH =\s*|&-L../../lib/poems |' ../Makefile.package
|
||||
sed -i 's|^PKGLIB =\s*|&-lpoems |' ../Makefile.package
|
||||
|
||||
else if ($1 == 0) then
|
||||
|
||||
rm ../style_poems.h
|
||||
|
@ -17,4 +23,6 @@ else if ($1 == 0) then
|
|||
|
||||
rm ../fix_poems.h
|
||||
|
||||
sed -i 's/\S*poems //' ../Makefile.package
|
||||
|
||||
endif
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# Install/unInstall package classes in LAMMPS
|
||||
# edit Makefile.package to include/exclude REAX library
|
||||
|
||||
if ($1 == 1) then
|
||||
|
||||
|
@ -12,6 +13,11 @@ if ($1 == 1) then
|
|||
cp fix_reax_bonds.h ..
|
||||
cp fix_reax_bonds.cpp ..
|
||||
|
||||
sed -i 's/\S*reax //' ../Makefile.package
|
||||
sed -i 's|^PKGINC =\s*|&-I../../lib/reax |' ../Makefile.package
|
||||
sed -i 's|^PKGPATH =\s*|&-L../../lib/reax |' ../Makefile.package
|
||||
sed -i 's|^PKGLIB =\s*|&-lreax |' ../Makefile.package
|
||||
|
||||
else if ($1 == 0) then
|
||||
|
||||
rm ../style_reax.h
|
||||
|
@ -25,4 +31,6 @@ else if ($1 == 0) then
|
|||
rm ../fix_reax_bonds.h
|
||||
rm ../fix_reax_bonds.cpp
|
||||
|
||||
sed -i 's/\S*reax //' ../Makefile.package
|
||||
|
||||
endif
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
/* ----------------------------------------------------------------------
|
||||
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
||||
http://lammps.sandia.gov, Sandia National Laboratories
|
||||
Steve Plimpton, sjplimp@sandia.gov
|
||||
|
||||
Copyright (2003) Sandia Corporation. Under the terms of Contract
|
||||
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
|
||||
certain rights in this software. This software is distributed under
|
||||
the GNU General Public License.
|
||||
|
||||
See the README file in the top-level LAMMPS directory.
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
#ifdef PairInclude
|
||||
#include "pair_meam.h"
|
||||
#endif
|
||||
|
||||
#ifdef PairClass
|
||||
PairStyle(meam,PairMEAM)
|
||||
#endif
|
|
@ -0,0 +1,20 @@
|
|||
/* ----------------------------------------------------------------------
|
||||
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
||||
http://lammps.sandia.gov, Sandia National Laboratories
|
||||
Steve Plimpton, sjplimp@sandia.gov
|
||||
|
||||
Copyright (2003) Sandia Corporation. Under the terms of Contract
|
||||
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
|
||||
certain rights in this software. This software is distributed under
|
||||
the GNU General Public License.
|
||||
|
||||
See the README file in the top-level LAMMPS directory.
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
#ifdef FixInclude
|
||||
#include "fix_poems.h"
|
||||
#endif
|
||||
|
||||
#ifdef FixClass
|
||||
FixStyle(poems,FixPOEMS)
|
||||
#endif
|
Loading…
Reference in New Issue