Commit Graph

9 Commits

Author SHA1 Message Date
961096f9df Prevent segfault if Python was never initialized 2017-04-12 11:17:15 -04:00
1544b51dcb Support mixed Python use by honoring Python GIL
This enables support to both drive LAMMPS with a Python interpreter and
evaluating Python expressions inside of LAMMPS using that same interpreter.
Previously this has been avoided through an error message because the
binding code did not ensure that the necessary GIL (global interpreter lock)
structures exist (see issue #438).

All code paths which call Python C API functions must first acquire the
GIL through a call PyGILState_Ensure and release it with PyGILState_Release.
2017-03-29 01:49:15 -04:00
3a054d1a82 Fix more typos in src files 2017-03-07 00:55:01 -05:00
e364b80724 added length keyword to python command 2016-12-16 10:24:25 -07:00
354e20f431 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14220 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2015-10-30 20:04:06 +00:00
cee848f948 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14164 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2015-10-22 22:06:49 +00:00
25b928b276 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13282 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2015-03-24 15:34:07 +00:00
84a5ec39ec git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13278 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2015-03-23 23:30:50 +00:00
46fd9013a5 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13235 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2015-03-17 16:01:48 +00:00