diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-physics/lammps/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-physics/lammps/files')
-rw-r--r-- | sci-physics/lammps/files/fm_exp.patch | 11 | ||||
-rw-r--r-- | sci-physics/lammps/files/gcc-6.patch | 11 | ||||
-rw-r--r-- | sci-physics/lammps/files/lammps-python3-r1.patch | 11 | ||||
-rw-r--r-- | sci-physics/lammps/files/lammps-python3-r2.patch | 11 | ||||
-rw-r--r-- | sci-physics/lammps/files/lammps-python3.patch | 11 | ||||
-rw-r--r-- | sci-physics/lammps/files/python-shebang.patch | 7 |
6 files changed, 62 insertions, 0 deletions
diff --git a/sci-physics/lammps/files/fm_exp.patch b/sci-physics/lammps/files/fm_exp.patch new file mode 100644 index 000000000000..3b6bd24028d6 --- /dev/null +++ b/sci-physics/lammps/files/fm_exp.patch @@ -0,0 +1,11 @@ +--- lammps-30Jul16-original/lib/meam/fm_exp.c 2016-04-18 14:00:58.000000000 +0000 ++++ lammps-30Jul16/lib/meam/fm_exp.c 2016-10-06 03:15:55.631053526 +0000 +@@ -112,7 +112,7 @@ + return epart.f*x; + } + +-double fm_exp_(double *x) ++extern "C" double fm_exp_(double *x) + { + #if defined(__BYTE_ORDER__) + #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ diff --git a/sci-physics/lammps/files/gcc-6.patch b/sci-physics/lammps/files/gcc-6.patch new file mode 100644 index 000000000000..ca2bcceeedfa --- /dev/null +++ b/sci-physics/lammps/files/gcc-6.patch @@ -0,0 +1,11 @@ +--- lammps-7Apr16-orig/lib/atc/Vector.h 2014-11-20 11:59:03.000000000 -0700 ++++ lammps-7Apr16/lib/atc/Vector.h 2016-10-13 06:04:44.328977960 -0600 +@@ -119,7 +119,7 @@ + { + DenseVector<T> r(v); + r*=(1.0/s); // for integer types this may be worthless +- return ; ++ return r; + } + /////////////////////////////////////////////////////////////////////////////// + //* Operator for Vector-Vector sum diff --git a/sci-physics/lammps/files/lammps-python3-r1.patch b/sci-physics/lammps/files/lammps-python3-r1.patch new file mode 100644 index 000000000000..2dc2bd744fa9 --- /dev/null +++ b/sci-physics/lammps/files/lammps-python3-r1.patch @@ -0,0 +1,11 @@ +--- lammps-4Sep15-orig/python/lammps.py 2015-09-02 14:41:38.000000000 -0600 ++++ lammps-4Sep15/python/lammps.py 2015-09-08 05:59:16.000000000 -0600 +@@ -33,7 +33,7 @@ + except: + type,value,tb = sys.exc_info() + traceback.print_exception(type,value,tb) +- raise OSError,"Could not load LAMMPS dynamic library from %s" % modpath ++ raise OSError("Could not load LAMMPS dynamic library from %s" % modpath) + + # if no ptr provided, create an instance of LAMMPS + # don't know how to pass an MPI communicator from PyPar diff --git a/sci-physics/lammps/files/lammps-python3-r2.patch b/sci-physics/lammps/files/lammps-python3-r2.patch new file mode 100644 index 000000000000..a447c4b3a303 --- /dev/null +++ b/sci-physics/lammps/files/lammps-python3-r2.patch @@ -0,0 +1,11 @@ +--- lammps-23Mar16/python/lammps.py (original) ++++ lammps-23Mar16/python/lammps.py (refactored) +@@ -208,7 +208,7 @@ + result = (c_double*nlocal)() + self.lib.lammps_extract_variable.restype = POINTER(c_double) + ptr = self.lib.lammps_extract_variable(self.lmp,name,group) +- for i in xrange(nlocal): result[i] = ptr[i] ++ for i in range(nlocal): result[i] = ptr[i] + self.lib.lammps_free(ptr) + return result + return None diff --git a/sci-physics/lammps/files/lammps-python3.patch b/sci-physics/lammps/files/lammps-python3.patch new file mode 100644 index 000000000000..1937881c9339 --- /dev/null +++ b/sci-physics/lammps/files/lammps-python3.patch @@ -0,0 +1,11 @@ +--- lammps-11Apr15/python/lammps.py 2015-03-13 16:06:20.000000000 -0600 ++++ lammps-11Apr15-new/python/lammps.py 2015-04-13 09:40:43.000000000 -0600 +@@ -28,7 +28,7 @@ + except: + type,value,tb = sys.exc_info() + traceback.print_exception(type,value,tb) +- raise OSError,"Could not load LAMMPS dynamic library" ++ raise OSError("Could not load LAMMPS dynamic library") + + # if no ptr provided, create an instance of LAMMPS + # don't know how to pass an MPI communicator from PyPar diff --git a/sci-physics/lammps/files/python-shebang.patch b/sci-physics/lammps/files/python-shebang.patch new file mode 100644 index 000000000000..7dd45797d4ad --- /dev/null +++ b/sci-physics/lammps/files/python-shebang.patch @@ -0,0 +1,7 @@ +--- lammps-25Mar15/python/lammps.py 2015-03-13 16:06:20.000000000 -0600 ++++ lammps-25Mar15-new/python/lammps.py 2015-04-10 15:31:14.000000000 -0600 +@@ -1,3 +1,4 @@ ++#!/usr/bin/env python + # ---------------------------------------------------------------------- + # LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator + # http://lammps.sandia.gov, Sandia National Laboratories |