Go to file
Richard Berger 6bcc263b41
Ensure LAMMPS pointer is of type c_void_p
Fixes segfaults caused by API change. The API change in
lammps_open and lammps_open_no_mpi makes them return the LAMMPS pointer
via their return value. However due to how ctypes operates, even
if restype is specified to be c_void_p, the function returns an integer.

Without the proper type of the pointer, calling functions without arglists would default
to using 32bit integers to pass an argument, which cuts away parts of the 64bit pointer.
Subsequently, resolving the truncated pointer in the library causes segfaults.

This commit fixes the root cause. But it also highlights the need of specifying
the arglists of all library functions.
2020-08-28 14:21:03 -04:00
.github Make patch informational too 2020-07-30 12:26:55 -04:00
bench FERMI GPU hardware is no longer supported by CUDA drivers and toolkit 2020-06-14 11:05:29 -04:00
cmake Merge pull request #2311 from stanmoore1/kk_update_3.2 2020-08-26 15:35:25 -04:00
doc Merge pull request #2311 from stanmoore1/kk_update_3.2 2020-08-26 15:35:25 -04:00
examples Merge pull request #2230 from evoyiatzis/widom 2020-07-18 11:40:04 -04:00
lib Merge pull request #2311 from stanmoore1/kk_update_3.2 2020-08-26 15:35:25 -04:00
potentials add unit conversion to pair styles eim, gw, gw/zbl, and nb3b/harmonic 2020-06-28 16:49:23 -04:00
python Ensure LAMMPS pointer is of type c_void_p 2020-08-28 14:21:03 -04:00
src Fix typo 2020-08-27 17:47:49 -04:00
tools Fix off-by-one mistake, Fixes #2300 2020-08-22 12:03:24 -04:00
unittest Ensure LAMMPS pointer is of type c_void_p 2020-08-28 14:21:03 -04:00
.gitattributes Add .gitattributes 2020-07-30 10:51:21 -06:00
.gitignore ignore singularity container files in the entire repo 2020-04-01 20:08:00 -04:00
LICENSE LICENSE: update address of Free Software Foundation 2017-07-21 17:13:28 -06:00
README doc typos and push author details back to website 2018-08-17 09:15:21 -06:00

README

This is the LAMMPS software package.

LAMMPS stands for Large-scale Atomic/Molecular Massively Parallel
Simulator.

Copyright (2003) Sandia Corporation.  Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software.  This software is distributed under
the GNU General Public License.

----------------------------------------------------------------------

LAMMPS is a classical molecular dynamics simulation code designed to
run efficiently on parallel computers.  It was developed at Sandia
National Laboratories, a US Department of Energy facility, with
funding from the DOE.  It is an open-source code, distributed freely
under the terms of the GNU Public License (GPL).

The primary author of the code is Steve Plimpton, who can be emailed
at sjplimp@sandia.gov.  The LAMMPS WWW Site at lammps.sandia.gov has
more information about the code and its uses.

The LAMMPS distribution includes the following files and directories:

README			   this file
LICENSE			   the GNU General Public License (GPL)
bench			   benchmark problems
cmake			   CMake build system
doc			   documentation
examples		   simple test problems
lib			   libraries LAMMPS can be linked with
potentials		   interatomic potential files
python			   Python wrapper on LAMMPS as a library
src			   source files
tools			   pre- and post-processing tools

Point your browser at any of these files to get started:

http://lammps.sandia.gov/doc/Manual.html         the LAMMPS manual
http://lammps.sandia.gov/doc/Intro.html          hi-level introduction
http://lammps.sandia.gov/doc/Build.html          how to build LAMMPS
http://lammps.sandia.gov/doc/Run_head.html       how to run LAMMPS
http://lammps.sandia.gov/doc/Developer.pdf       LAMMPS developer guide

You can also create these doc pages locally:

% cd doc
% make html                # creates HTML pages in doc/html
% make pdf                 # creates Manual.pdf and Developer.pdf