~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to tools/i-pi/examples/lammps/Makefile

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for the q-TIP4P-F examples
 
2
 
3
# Copyright (C) 2013, Joshua More and Michele Ceriotti
 
4
 
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.
 
9
 
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.
 
14
 
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/>.
 
17
 
 
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
 
20
 
 
21
LAMMPS:=../../../../../src/lmp_ubuntu
 
22
IPI:=../../../i-pi
 
23
 
 
24
define run_lammps
 
25
  for i in `seq 1 $1`; do \
 
26
    $(LAMMPS) < $2 & \
 
27
  done;
 
28
endef
 
29
-include make.in
 
30
 
 
31
graphene:
 
32
        cd graphene; $(IPI) input.xml & \
 
33
        sleep 20; \
 
34
        $(call run_lammps,4,in.kappa.Graphene) \
 
35
        wait
 
36
 
 
37
h2o-piglet_2:
 
38
        cd h2o-piglet.2; $(IPI) input.xml & sleep 5; \
 
39
        $(call run_lammps,2,in.water) \
 
40
        wait
 
41
        
 
42
h2o-piglet_4:
 
43
        cd h2o-piglet.4; $(IPI) input.xml & sleep 5; \
 
44
        $(call run_lammps,4,in.water) \
 
45
        wait
 
46
 
 
47
h2o-piglet_8:
 
48
        cd h2o-piglet.8; $(IPI) input.xml & sleep 5; \
 
49
        $(call run_lammps,4,in.water) \
 
50
        wait
 
51
 
 
52
h2o-pimd:
 
53
        cd h2o-pimd; $(IPI) input.xml & sleep 5; \
 
54
        $(call run_lammps,4,in.water) \
 
55
        wait
 
56
 
 
57
h2o-rpc:
 
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) \
 
61
        wait
 
62
 
 
63
clean:
 
64
        rm -f */gle_lammps.* */RESTART */EXIT */log.lammps; \
 
65
        cd h2o-pimd; \
 
66
        rm -f RESTART EXIT log.lammps no_rpc.*; cd ..; \
 
67
        cd h2o-pimd-rpc; \
 
68
        rm -f RESTART EXIT log.lammps rpc.*; cd ..; \
 
69
        cd graphene; \
 
70
        rm -f graph.* RESTART EXIT log.lammps graphene.lammpstraj nohup.out; cd ..