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

« back to all changes in this revision

Viewing changes to src/library.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:
14
14
// C or Fortran style library interface to LAMMPS
15
15
// customize by adding new LAMMPS-specific functions
16
16
 
17
 
#include "lmptype.h"
18
17
#include "mpi.h"
19
18
#include "string.h"
20
19
#include "stdlib.h"
135
134
  if (strcmp(name,"boxyhi") == 0) return (void *) &lmp->domain->boxhi[1];
136
135
  if (strcmp(name,"boxzlo") == 0) return (void *) &lmp->domain->boxlo[2];
137
136
  if (strcmp(name,"boxzhi") == 0) return (void *) &lmp->domain->boxhi[2];
 
137
  if (strcmp(name,"xy") == 0) return (void *) &lmp->domain->xy;
 
138
  if (strcmp(name,"xz") == 0) return (void *) &lmp->domain->xz;
 
139
  if (strcmp(name,"yz") == 0) return (void *) &lmp->domain->yz;
138
140
  if (strcmp(name,"natoms") == 0) return (void *) &lmp->atom->natoms;
139
141
  if (strcmp(name,"nlocal") == 0) return (void *) &lmp->atom->nlocal;
140
142
  return NULL;