Skip to content
Snippets Groups Projects
Commit c4771291 authored by Steven J. Plimpton's avatar Steven J. Plimpton
Browse files

real <-> metal unit conversion factors

parent d8b087ae
No related branches found
No related tags found
No related merge requests found
......@@ -64,13 +64,12 @@ FixClientMD::FixClientMD(LAMMPS *lmp, int narg, char **arg) :
// unit conversion factors for REAL
// otherwise not needed
// message received in METAL units, convert to local REAL units
fconvert = econvert = vconvert = 1.0;
if (units == REAL) {
// NOTE: still need to set these
fconvert = 1.0;
econvert = 1.0;
vconvert = 1.0;
fconvert = econvert = 23.06035;
vconvert = 0.986923;
}
}
......
......@@ -55,13 +55,12 @@ ServerMD::ServerMD(LAMMPS *lmp) : Pointers(lmp)
// unit conversion factors for REAL
// otherwise not needed
// local computation in REAL units, send message in METAL units
fconvert = econvert = vconvert = 1.0;
if (units == REAL) {
// NOTE: still need to set these
fconvert = 1.0;
econvert = 1.0;
vconvert = 1.0;
fconvert = econvert = 1.0 / 23.06035;
vconvert = 1.0 / 0.986923;
}
fcopy = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment