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), |
663 |
|
the_atoms[i]->setMass( currentAtomType->mass ); |
664 |
|
the_atoms[i]->setIdent( currentAtomType->ident ); |
665 |
|
|
666 |
+ |
if (currentAtomType->isLJ) entry_plug->useLennardJones = 1; |
667 |
+ |
if (currentAtomType->isCharge) entry_plug->useCharges = 1; |
668 |
+ |
if (currentAtomType->isDirectional) { |
669 |
+ |
if (currentDirectionalType->isDipole) entry_plug->useDipoles = 1; |
670 |
+ |
if (currentDirectionalType->isSticky) entry_plug->useSticky = 1; |
671 |
+ |
} |
672 |
+ |
|
673 |
|
if( bigSigma < currentAtomType->sigma ) bigSigma = currentAtomType->sigma; |
674 |
|
|
675 |
|
the_atoms[i]->setHasCharge(currentAtomType->isCharge); |