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

« back to all changes in this revision

Viewing changes to src/fix_property_atom.h

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2013-11-20 22:41:36 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20131120224136-tzx7leh606fqnckm
Tags: 0~20131119.git7162cf0-1
* [e65b919] Imported Upstream version 0~20131119.git7162cf0
* [f7bddd4] Fix some problems, introduced by upstream recently.
* [3616dfc] Use wrap-and-sort script.
* [7e92030] Ignore quilt dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------------
 
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(property/atom,FixPropertyAtom)
 
17
 
 
18
#else
 
19
 
 
20
#ifndef LMP_FIX_PROPERTY_ATOM_H
 
21
#define LMP_FIX_PROPERTY_ATOM_H
 
22
 
 
23
#include "fix.h"
 
24
 
 
25
namespace LAMMPS_NS {
 
26
 
 
27
class FixPropertyAtom : public Fix {
 
28
 public:
 
29
  FixPropertyAtom(class LAMMPS *, int, char **);
 
30
  ~FixPropertyAtom();
 
31
  int setmask();
 
32
  void init();
 
33
 
 
34
  void read_data_section(char *, int, char *);
 
35
  bigint read_data_skip_lines(char *);
 
36
  void write_data_section_size(int, int &, int &);
 
37
  void write_data_section_pack(int, double **);
 
38
  void write_data_section_keyword(int, FILE *);
 
39
  void write_data_section(int, FILE *, int, double **, int);
 
40
 
 
41
  void grow_arrays(int);
 
42
  void copy_arrays(int, int, int);
 
43
  int pack_border(int, int *, double *);
 
44
  int unpack_border(int, int, double *);
 
45
  int pack_exchange(int, double *);
 
46
  int unpack_exchange(int, double *);
 
47
  int pack_restart(int, double *);
 
48
  void unpack_restart(int, int);
 
49
  int size_restart(int);
 
50
  int maxsize_restart();
 
51
  double memory_usage();
 
52
 
 
53
 private:
 
54
  int nvalue,border,molecule_flag;
 
55
  int *style,*index;
 
56
  int nmax_old;         // length of peratom arrays the last time they grew
 
57
};
 
58
 
 
59
}
 
60
 
 
61
#endif
 
62
#endif
 
63
 
 
64
/* ERROR/WARNING messages:
 
65
 
 
66
*/