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

« back to all changes in this revision

Viewing changes to doc/Section_python.txt

  • 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:
82
82
 
83
83
From the src directory, type
84
84
 
85
 
make makeshlib
86
 
make -f Makefile.shlib foo :pre
 
85
make foo mode=shlib :pre
87
86
 
88
87
where foo is the machine target name, such as linux or g++ or serial.
89
88
This should create the file liblammps_foo.so in the src directory, as
425
424
                                             # flag = 0 = equal-style variable
426
425
                                             #        1 = atom-style variable :pre
427
426
 
 
427
flag = lmp.set_variable(name,value)       # set existing named string-style variable to value, flag = 0 if successful
428
428
natoms = lmp.get_natoms()                 # total # of atoms as int
429
429
data = lmp.gather_atoms(name,type,count)  # return atom attribute of all atoms gathered into data, ordered by atom ID
430
430
                                          # name = "x", "charge", "type", etc