| 267 |
|
|
| 268 |
|
void EAM_FF::calcRcut( void ){ |
| 269 |
|
|
| 270 |
< |
#ifdef IS_MPI |
| 270 |
> |
#ifdef IS_MPI |
| 271 |
|
double tempEamRcut = eamRcut; |
| 272 |
|
MPI_Allreduce( &tempEamRcut, &eamRcut, 1, MPI_DOUBLE, MPI_MAX, |
| 273 |
|
MPI_COMM_WORLD); |
| 407 |
|
MPIcheckPoint(); |
| 408 |
|
|
| 409 |
|
headAtomType = new LinkedAtomType; |
| 410 |
< |
recieveFrcStruct( &info, mpiAtomStructType ); |
| 410 |
> |
receiveFrcStruct( &info, mpiAtomStructType ); |
| 411 |
|
|
| 412 |
|
while( !info.last ){ |
| 413 |
|
|
| 433 |
|
|
| 434 |
|
MPIcheckPoint(); |
| 435 |
|
|
| 436 |
< |
recieveFrcStruct( &info, mpiAtomStructType ); |
| 436 |
> |
receiveFrcStruct( &info, mpiAtomStructType ); |
| 437 |
|
|
| 438 |
|
|
| 439 |
|
} |
| 449 |
|
int isDipole = 0; |
| 450 |
|
int isSSD = 0; |
| 451 |
|
int isGB = 0; |
| 452 |
< |
int isEAM= 1; |
| 452 |
> |
int isEAM = 1; |
| 453 |
> |
int isCharge = 0; |
| 454 |
|
double dipole = 0.0; |
| 455 |
+ |
double charge = 0.0; |
| 456 |
|
double eamSigma = 0.0; |
| 457 |
|
double eamEpslon = 0.0; |
| 458 |
|
|
| 467 |
|
&isDipole, |
| 468 |
|
&isGB, |
| 469 |
|
&isEAM, |
| 470 |
+ |
&isCharge, |
| 471 |
|
&eamEpslon, |
| 472 |
|
&eamSigma, |
| 473 |
+ |
&charge, |
| 474 |
|
&dipole, |
| 475 |
|
&isError ); |
| 476 |
|
if( isError ){ |
| 548 |
|
|
| 549 |
|
the_atoms[i]->setMass( currentAtomType->mass ); |
| 550 |
|
the_atoms[i]->setIdent( currentAtomType->ident ); |
| 547 |
– |
the_atoms[i]->setEAM(); |
| 548 |
– |
the_atoms[i]->setEamRcut( currentAtomType->eam_rcut); |
| 551 |
|
|
| 552 |
|
if (eamRcut < currentAtomType->eam_rcut) eamRcut = currentAtomType->eam_rcut; |
| 553 |
< |
|
| 553 |
> |
|
| 554 |
|
} |
| 555 |
|
} |
| 556 |
|
|