1
# Makefile for the q-TIP4P-F examples
3
# Copyright (C) 2013, Joshua More and Michele Ceriotti
5
# This program is free software: you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation, either version 3 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program. If not, see <http.//www.gnu.org/licenses/>.
18
.PHONY: all clean graphene h2o-piglet_2 h2o-piglet_4 h2o-piglet_8 h2o-rpc h2o-pimd
19
all: graphene h2o-piglet_2 h2o-piglet_4 h2o-piglet_8 h2o-rpc h2o-pimd
21
LAMMPS:=../../../../../src/lmp_ubuntu
25
for i in `seq 1 $1`; do \
32
cd graphene; $(IPI) input.xml & \
34
$(call run_lammps,4,in.kappa.Graphene) \
38
cd h2o-piglet.2; $(IPI) input.xml & sleep 5; \
39
$(call run_lammps,2,in.water) \
43
cd h2o-piglet.4; $(IPI) input.xml & sleep 5; \
44
$(call run_lammps,4,in.water) \
48
cd h2o-piglet.8; $(IPI) input.xml & sleep 5; \
49
$(call run_lammps,4,in.water) \
53
cd h2o-pimd; $(IPI) input.xml & sleep 5; \
54
$(call run_lammps,4,in.water) \
58
cd h2o-pimd-rpc; $(IPI) input.xml & sleep 5; \
59
$(call run_lammps,4,in.water_shortrange) \
60
$(call run_lammps,1,in.water_longrange) \
64
rm -f */gle_lammps.* */RESTART */EXIT */log.lammps; \
66
rm -f RESTART EXIT log.lammps no_rpc.*; cd ..; \
68
rm -f RESTART EXIT log.lammps rpc.*; cd ..; \
70
rm -f graph.* RESTART EXIT log.lammps graphene.lammpstraj nohup.out; cd ..