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

« back to all changes in this revision

Viewing changes to src/compute_msd_chunk.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 COMPUTE_CLASS
 
15
 
 
16
ComputeStyle(msd/chunk,ComputeMSDChunk)
 
17
 
 
18
#else
 
19
 
 
20
#ifndef LMP_COMPUTE_MSD_CHUNK_H
 
21
#define LMP_COMPUTE_MSD_CHUNK_H
 
22
 
 
23
#include "compute.h"
 
24
 
 
25
namespace LAMMPS_NS {
 
26
 
 
27
class ComputeMSDChunk : public Compute {
 
28
 public:
 
29
  ComputeMSDChunk(class LAMMPS *, int, char **);
 
30
  ~ComputeMSDChunk();
 
31
  void init();
 
32
  void setup();
 
33
  void compute_array();
 
34
 
 
35
  void lock_enable();
 
36
  void lock_disable();
 
37
  int lock_length();
 
38
  void lock(class Fix *, bigint, bigint);
 
39
  void unlock(class Fix *);
 
40
 
 
41
  double memory_usage();
 
42
 
 
43
 private:
 
44
  int nchunk;
 
45
  char *idchunk;
 
46
  class ComputeChunkAtom *cchunk;
 
47
 
 
48
  double *massproc,*masstotal;
 
49
  double **com,**comall,**cominit;
 
50
  double **msd;
 
51
 
 
52
  int firstflag;
 
53
 
 
54
  void allocate();
 
55
};
 
56
 
 
57
}
 
58
 
 
59
#endif
 
60
#endif
 
61
 
 
62
/* ERROR/WARNING messages:
 
63
 
 
64
E: Illegal ... command
 
65
 
 
66
Self-explanatory.  Check the input script syntax and compare to the
 
67
documentation for the command.  You can use -echo screen as a
 
68
command-line option when running LAMMPS to see the offending line.
 
69
 
 
70
E: Compute com/molecule requires molecular atom style
 
71
 
 
72
Self-explanatory.
 
73
 
 
74
E: Molecule count changed in compute com/molecule
 
75
 
 
76
Number of molecules must remain constant over time.
 
77
 
 
78
*/