| 55 |
|
usePBC = 0; |
| 56 |
|
useLJ = 0; |
| 57 |
|
useSticky = 0; |
| 58 |
< |
useDipole = 0; |
| 58 |
> |
useCharges = 0; |
| 59 |
> |
useDipoles = 0; |
| 60 |
|
useReactionField = 0; |
| 61 |
|
useGB = 0; |
| 62 |
|
useEAM = 0; |
| 63 |
|
|
| 64 |
|
myConfiguration = new SimState(); |
| 65 |
|
|
| 66 |
+ |
has_minimizer = false; |
| 67 |
+ |
the_minimizer =NULL; |
| 68 |
+ |
|
| 69 |
|
wrapMeSimInfo( this ); |
| 70 |
|
} |
| 71 |
|
|
| 183 |
|
|
| 184 |
|
if( orthoRhombic ){ |
| 185 |
|
sprintf( painCave.errMsg, |
| 186 |
< |
"Hmat is switching from Non-Orthorhombic to OrthoRhombic\n" |
| 187 |
< |
" If this is a bad thing, change the orthoBoxTolerance( currently %G ).\n", |
| 186 |
> |
"Hmat is switching from Non-Orthorhombic to Orthorhombic Box.\n" |
| 187 |
> |
"\tIf this is a bad thing, change the orthoBoxTolerance\n" |
| 188 |
> |
"\tvariable ( currently set to %G ).\n", |
| 189 |
|
orthoTolerance); |
| 190 |
|
simError(); |
| 191 |
|
} |
| 192 |
|
else { |
| 193 |
|
sprintf( painCave.errMsg, |
| 194 |
< |
"Hmat is switching from Orthorhombic to Non-OrthoRhombic\n" |
| 195 |
< |
" If this is a bad thing, change the orthoBoxTolerance( currently %G ).\n", |
| 194 |
> |
"Hmat is switching from Orthorhombic to Non-Orthorhombic Box.\n" |
| 195 |
> |
"\tIf this is a bad thing, change the orthoBoxTolerance\n" |
| 196 |
> |
"\tvariable ( currently set to %G ).\n", |
| 197 |
|
orthoTolerance); |
| 198 |
|
simError(); |
| 199 |
|
} |
| 486 |
|
|
| 487 |
|
fInfo.dielect = 0.0; |
| 488 |
|
|
| 489 |
< |
if( useDipole ){ |
| 489 |
> |
if( useDipoles ){ |
| 490 |
|
if( useReactionField )fInfo.dielect = dielectric; |
| 491 |
|
} |
| 492 |
|
|
| 495 |
|
fInfo.SIM_uses_LJ = useLJ; |
| 496 |
|
fInfo.SIM_uses_sticky = useSticky; |
| 497 |
|
//fInfo.SIM_uses_sticky = 0; |
| 498 |
< |
fInfo.SIM_uses_dipoles = useDipole; |
| 498 |
> |
fInfo.SIM_uses_charges = useCharges; |
| 499 |
> |
fInfo.SIM_uses_dipoles = useDipoles; |
| 500 |
|
//fInfo.SIM_uses_dipoles = 0; |
| 501 |
< |
//fInfo.SIM_uses_RF = useReactionField; |
| 502 |
< |
fInfo.SIM_uses_RF = 0; |
| 501 |
> |
fInfo.SIM_uses_RF = useReactionField; |
| 502 |
> |
//fInfo.SIM_uses_RF = 0; |
| 503 |
|
fInfo.SIM_uses_GB = useGB; |
| 504 |
|
fInfo.SIM_uses_EAM = useEAM; |
| 505 |
|
|
| 572 |
|
if( rCut > maxCutoff ){ |
| 573 |
|
sprintf( painCave.errMsg, |
| 574 |
|
"Box size is too small for the long range cutoff radius, " |
| 575 |
< |
"%lf, at time %lf\n", |
| 576 |
< |
rCut, currentTime ); |
| 575 |
> |
"%G, at time %G\n" |
| 576 |
> |
"\t[ %G %G %G ]\n" |
| 577 |
> |
"\t[ %G %G %G ]\n" |
| 578 |
> |
"\t[ %G %G %G ]\n", |
| 579 |
> |
rCut, currentTime, |
| 580 |
> |
Hmat[0][0], Hmat[0][1], Hmat[0][2], |
| 581 |
> |
Hmat[1][0], Hmat[1][1], Hmat[1][2], |
| 582 |
> |
Hmat[2][0], Hmat[2][1], Hmat[2][2]); |
| 583 |
|
painCave.isFatal = 1; |
| 584 |
|
simError(); |
| 585 |
|
} |
| 588 |
|
if( ecr > maxCutoff ){ |
| 589 |
|
sprintf( painCave.errMsg, |
| 590 |
|
"Box size is too small for the electrostatic cutoff radius, " |
| 591 |
< |
"%lf, at time %lf\n", |
| 592 |
< |
ecr, currentTime ); |
| 591 |
> |
"%G, at time %G\n" |
| 592 |
> |
"\t[ %G %G %G ]\n" |
| 593 |
> |
"\t[ %G %G %G ]\n" |
| 594 |
> |
"\t[ %G %G %G ]\n", |
| 595 |
> |
ecr, currentTime, |
| 596 |
> |
Hmat[0][0], Hmat[0][1], Hmat[0][2], |
| 597 |
> |
Hmat[1][0], Hmat[1][1], Hmat[1][2], |
| 598 |
> |
Hmat[2][0], Hmat[2][1], Hmat[2][2]); |
| 599 |
|
painCave.isFatal = 1; |
| 600 |
|
simError(); |
| 601 |
|
} |
| 603 |
|
} else { |
| 604 |
|
// initialize this stuff before using it, OK? |
| 605 |
|
sprintf( painCave.errMsg, |
| 606 |
< |
"Trying to check cutoffs without a box. Be smarter.\n" ); |
| 606 |
> |
"Trying to check cutoffs without a box.\n" |
| 607 |
> |
"\tOOPSE should have better programmers than that.\n" ); |
| 608 |
|
painCave.isFatal = 1; |
| 609 |
|
simError(); |
| 610 |
|
} |