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

« back to all changes in this revision

Viewing changes to src/SHOCK/fix_append_atoms.cpp

  • 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:
29
29
using namespace LAMMPS_NS;
30
30
using namespace FixConst;
31
31
 
 
32
enum{LAYOUT_UNIFORM,LAYOUT_NONUNIFORM,LAYOUT_TILED};    // several files
 
33
 
32
34
#define BIG      1.0e30
33
35
#define EPSILON  1.0e-6
34
36
 
410
412
 
411
413
  if (ntimestep % freq == 0) {
412
414
    if (spatflag==1) if (get_spatial()==0) return;
413
 
    if (comm->myloc[2] == comm->procgrid[2]-1) {
 
415
 
 
416
    int addflag = 0;
 
417
    if (comm->layout != LAYOUT_TILED) {
 
418
      if (comm->myloc[2] == comm->procgrid[2]-1) addflag = 1;
 
419
    } else {
 
420
      if (comm->mysplit[2][1] == 1.0) addflag = 1;
 
421
    }
 
422
 
 
423
    if (addflag) {
414
424
      double bboxlo[3],bboxhi[3];
415
425
 
416
426
      bboxlo[0] = domain->sublo[0]; bboxhi[0] = domain->subhi[0];