557 |
|
} |
558 |
|
|
559 |
|
if (currentAtomType->isDirectional) { |
560 |
< |
if (currentDirectionalType->isSticky) { |
560 |
> |
if (currentDirectionalType->isDipole) { |
561 |
|
((DirectionalAtomType*)at)->setDipole(); |
562 |
– |
entry_plug->useDipoles = 1; |
562 |
|
} |
563 |
|
|
564 |
|
if (currentDirectionalType->isSticky) { |
565 |
|
((DirectionalAtomType*)at)->setSticky(); |
567 |
– |
entry_plug->useSticky = 1; |
566 |
|
} |
567 |
|
} |
568 |
|
|
578 |
|
|
579 |
|
while( currentAtomType != NULL ){ |
580 |
|
|
581 |
+ |
currentDirectionalType = headDirectionalType->find(currentAtomType->name); |
582 |
+ |
|
583 |
|
if( currentAtomType->isLJ ){ |
584 |
|
isError = 0; |
585 |
|
newLJtype( &(currentAtomType->ident), &(currentAtomType->sigma), |
660 |
|
painCave.isFatal = 1; |
661 |
|
simError(); |
662 |
|
} |
663 |
– |
the_atoms[i]->setMass( currentAtomType->mass ); |
664 |
– |
the_atoms[i]->setIdent( currentAtomType->ident ); |
663 |
|
|
666 |
– |
if( bigSigma < currentAtomType->sigma ) bigSigma = currentAtomType->sigma; |
667 |
– |
|
668 |
– |
the_atoms[i]->setHasCharge(currentAtomType->isCharge); |
669 |
– |
|
664 |
|
if( currentAtomType->isDirectional ){ |
665 |
|
currentDirectionalType = |
666 |
|
headDirectionalType->find( the_atoms[i]->getType() ); |
671 |
|
painCave.isFatal = 1; |
672 |
|
simError(); |
673 |
|
} |
674 |
+ |
|
675 |
+ |
the_atoms[i]->setMass( currentAtomType->mass ); |
676 |
+ |
the_atoms[i]->setIdent( currentAtomType->ident ); |
677 |
|
|
678 |
+ |
if (currentAtomType->isLJ) entry_plug->useLennardJones = 1; |
679 |
+ |
if (currentAtomType->isCharge) entry_plug->useCharges = 1; |
680 |
+ |
if (currentAtomType->isDirectional) { |
681 |
+ |
if (currentDirectionalType->isDipole) entry_plug->useDipoles = 1; |
682 |
+ |
if (currentDirectionalType->isSticky) entry_plug->useSticky = 1; |
683 |
+ |
} |
684 |
+ |
|
685 |
+ |
if( bigSigma < currentAtomType->sigma ) bigSigma = currentAtomType->sigma; |
686 |
+ |
|
687 |
+ |
the_atoms[i]->setHasCharge(currentAtomType->isCharge); |
688 |
+ |
|
689 |
+ |
|
690 |
+ |
|
691 |
|
// zero out the moments of inertia matrix |
692 |
|
for( j=0; j<3; j++ ) |
693 |
|
for( k=0; k<3; k++ ) |