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

« back to all changes in this revision

Viewing changes to src/USER-MISC/fix_srp.h

  • 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
/* -*- c++ -*- ----------------------------------------------------------
 
2
   LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
 
3
   http://lammps.sandia.gov, Sandia National Laboratories
 
4
   Steve Plimpton, sjplimp@sandia.gov
 
5
 
 
6
   Copyright (2003) Sandia Corporation.  Under the terms of Contract
 
7
   DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
 
8
   certain rights in this software.  This software is distributed under
 
9
   the GNU General Public License.
 
10
 
 
11
   See the README file in the top-level LAMMPS directory.
 
12
------------------------------------------------------------------------- */
 
13
 
 
14
#ifdef FIX_CLASS
 
15
 
 
16
FixStyle(SRP,FixSRP)
 
17
 
 
18
#else
 
19
 
 
20
#ifndef LMP_FIX_SRP_H
 
21
#define LMP_FIX_SRP_H
 
22
 
 
23
#include "stdio.h"
 
24
#include "fix.h"
 
25
 
 
26
namespace LAMMPS_NS {
 
27
 
 
28
class FixSRP : public Fix {
 
29
 public:
 
30
  FixSRP(class LAMMPS *, int, char **);
 
31
  ~FixSRP();
 
32
  int setmask();
 
33
  void init();
 
34
 
 
35
  void pre_exchange();
 
36
  void setup_pre_force(int);
 
37
 
 
38
  double memory_usage();
 
39
  void grow_arrays(int);
 
40
  void copy_arrays(int, int, int);
 
41
  void set_arrays(int);
 
42
  int pack_exchange(int, double *);
 
43
  int unpack_exchange(int, double *);
 
44
  int pack_border(int, int *, double *);
 
45
  int unpack_border(int, int, double *);
 
46
  void post_run(); 
 
47
 
 
48
  int pack_restart(int, double*);
 
49
  void unpack_restart(int, int);
 
50
  int maxsize_restart();
 
51
  int size_restart(int);
 
52
  void write_restart(FILE *);
 
53
  void restart(char *);
 
54
  int modify_param(int, char **);
 
55
 
 
56
  double **array;
 
57
 
 
58
 private:
 
59
  double xone[3];
 
60
  int btype;
 
61
  int bptype;
 
62
  int setup;
 
63
};
 
64
 
 
65
}
 
66
 
 
67
#endif
 
68
#endif
 
69
 
 
70
/* ERROR/WARNING messages:
 
71
 
 
72
*/