302 |
|
dsq = dx*dx + dy*dy + dz*dz; |
303 |
|
boxL[2] = sqrt( dsq ); |
304 |
|
if( (0.5 * boxL[2]) < maxCutoff ) maxCutoff = 0.5 * boxL[2]; |
305 |
+ |
|
306 |
+ |
checkCutOffs(); |
307 |
|
|
308 |
|
} |
309 |
|
|
470 |
|
|
471 |
|
int cutChanged = 0; |
472 |
|
|
473 |
+ |
|
474 |
+ |
|
475 |
|
if( boxIsInit ){ |
476 |
|
|
477 |
|
//we need to check cutOffs against the box |
478 |
< |
|
479 |
< |
if( maxCutoff > rCut ){ |
478 |
> |
|
479 |
> |
if(( maxCutoff > rCut )&&(usePBC)){ |
480 |
|
if( rCut < origRcut ){ |
481 |
|
rCut = origRcut; |
482 |
|
if (rCut > maxCutoff) rCut = maxCutoff; |
505 |
|
} |
506 |
|
|
507 |
|
|
508 |
< |
if (rCut > maxCutoff) { |
508 |
> |
if ((rCut > maxCutoff)&&(usePBC)) { |
509 |
|
sprintf( painCave.errMsg, |
510 |
|
"New Box size is setting the long range cutoff radius " |
511 |
|
"to %lf\n", |