Merge remote-tracking branch 'lammps-ro/master' into lammps-icms

# Conflicts:
#	doc/Manual.html
#	doc/Manual.txt
#	python/install.py
#	python/lammps.py
#	src/read_restart.cpp
#	src/write_restart.cpp
This commit is contained in:
Axel Kohlmeyer
2015-07-03 07:37:10 -04:00
9 changed files with 33 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<HTML>
<HEAD>
<TITLE>LAMMPS-ICMS Users Manual</TITLE>
<META NAME="docnumber" CONTENT="1 Jul 2015 version">
<META NAME="docnumber" CONTENT="2 Jul 2015 version">
<META NAME="author" CONTENT="http://lammps.sandia.gov - Sandia National Laboratories">
<META NAME="copyright" CONTENT="Copyright (2003) Sandia Corporation. This software and manual is distributed under the GNU General Public License.">
</HEAD>
@ -22,7 +22,7 @@
<CENTER><H3>LAMMPS-ICMS Documentation
</H3></CENTER>
<CENTER><H4>1 Jul 2015 version
<CENTER><H4>2 Jul 2015 version
</H4></CENTER>
<H4>Version info:
</H4>

View File

@ -1,6 +1,6 @@
<HEAD>
<TITLE>LAMMPS-ICMS Users Manual</TITLE>
<META NAME="docnumber" CONTENT="1 Jul 2015 version">
<META NAME="docnumber" CONTENT="2 Jul 2015 version">
<META NAME="author" CONTENT="http://lammps.sandia.gov - Sandia National Laboratories">
<META NAME="copyright" CONTENT="Copyright (2003) Sandia Corporation. This software and manual is distributed under the GNU General Public License.">
</HEAD>
@ -18,7 +18,7 @@
<H1></H1>
LAMMPS-ICMS Documentation :c,h3
1 Jul 2015 version :c,h4
2 Jul 2015 version :c,h4
Version info: :h4

View File

@ -4,7 +4,8 @@
instructions = """
Syntax: python install.py [-h] [pydir]
pydir = target dir for lammps.py and liblammps.so, default = Python site-packages dir
pydir = target dir for lammps.py and liblammps.so
default = Python site-packages dir
"""
import sys,os,commands

View File

@ -16,12 +16,13 @@
import sys,traceback,types
from ctypes import *
from os.path import dirname,abspath,join
from inspect import getsourcefile
class lammps:
def __init__(self,name="",cmdargs=None,ptr=None):
# determine module location
modpath = dirname(abspath(__file__))
modpath = dirname(abspath(getsourcefile(lambda:0)))
# load liblammps.so by default
# if name = "g++", load liblammps_g++.so

View File

@ -72,6 +72,10 @@ Domain::Domain(LAMMPS *lmp) : Pointers(lmp)
boundary[1][0] = boundary[1][1] = 0;
boundary[2][0] = boundary[2][1] = 0;
minxlo = minxhi = 0.0;
minylo = minyhi = 0.0;
minzlo = minzhi = 0.0;
triclinic = 0;
tiltsmall = 1;

View File

@ -60,7 +60,7 @@ enum{VERSION,SMALLINT,TAGINT,BIGINT,
SPECIAL_LJ,SPECIAL_COUL,
MASS,PAIR,BOND,ANGLE,DIHEDRAL,IMPROPER,
MULTIPROC,MPIIO,PROCSPERFILE,PERPROC,
IMAGEINT,TIMESTEP,
IMAGEINT,BOUNDMIN,TIMESTEP,
ATOM_ID,ATOM_MAP_STYLE,ATOM_MAP_USER,ATOM_SORTFREQ,ATOM_SORTBIN,
COMM_MODE,COMM_CUTOFF,COMM_VEL};
@ -796,6 +796,14 @@ void ReadRestart::header(int incompatible)
domain->nonperiodic = 2;
}
} else if (flag == BOUNDMIN) {
double minbound[6];
read_int();
read_double_vec(6,minbound);
domain->minxlo = minbound[0]; domain->minxhi = minbound[1];
domain->minylo = minbound[2]; domain->minyhi = minbound[3];
domain->minzlo = minbound[4]; domain->minzhi = minbound[5];
// create new AtomVec class using any stored args
} else if (flag == ATOM_STYLE) {

View File

@ -141,7 +141,7 @@ void Update::set_units(const char *style)
force->hplanck = 95.306976368;
force->mvv2e = 48.88821291 * 48.88821291;
force->ftm2v = 1.0 / 48.88821291 / 48.88821291;
force->mv2d = 1.0 / 0.602214179;
force->mv2d = 1.0 / 0.602214129;
force->nktv2p = 68568.415;
force->qqr2e = 332.06371;
force->qe2f = 23.060549;
@ -162,7 +162,7 @@ void Update::set_units(const char *style)
force->hplanck = 4.135667403e-3;
force->mvv2e = 1.0364269e-4;
force->ftm2v = 1.0 / 1.0364269e-4;
force->mv2d = 1.0 / 0.602214179;
force->mv2d = 1.0 / 0.602214129;
force->nktv2p = 1.6021765e6;
force->qqr2e = 14.399645;
force->qe2f = 1.0;

View File

@ -1 +1 @@
#define LAMMPS_VERSION "1 Jul 2015"
#define LAMMPS_VERSION "2 Jul 2015"

View File

@ -59,7 +59,7 @@ enum{VERSION,SMALLINT,TAGINT,BIGINT,
SPECIAL_LJ,SPECIAL_COUL,
MASS,PAIR,BOND,ANGLE,DIHEDRAL,IMPROPER,
MULTIPROC,MPIIO,PROCSPERFILE,PERPROC,
IMAGEINT,TIMESTEP,
IMAGEINT,BOUNDMIN,TIMESTEP,
ATOM_ID,ATOM_MAP_STYLE,ATOM_MAP_USER,ATOM_SORTFREQ,ATOM_SORTBIN,
COMM_MODE,COMM_CUTOFF,COMM_VEL};
@ -456,6 +456,14 @@ void WriteRestart::header()
write_int(ZPERIODIC,domain->zperiodic);
write_int_vec(BOUNDARY,6,&domain->boundary[0][0]);
// added field for shrink-wrap boundaries with minimum - 2 Jul 2015
double minbound[6];
minbound[0] = domain->minxlo; minbound[1] = domain->minxhi;
minbound[2] = domain->minylo; minbound[3] = domain->minyhi;
minbound[4] = domain->minzlo; minbound[5] = domain->minzhi;
write_double_vec(BOUNDMIN,6,minbound);
// write atom_style and its args
write_string(ATOM_STYLE,atom->atom_style);