| 2 |
|
|
| 3 |
|
#ifdef IS_MPI |
| 4 |
|
#include <mpi.h> |
| 5 |
+ |
#include <mpi++.h> |
| 6 |
|
#endif // is_mpi |
| 7 |
|
|
| 8 |
|
|
| 21 |
|
|
| 22 |
|
//calc rCut and rList |
| 23 |
|
|
| 24 |
< |
entry_plug->rCut = 2.5 bigSigma; |
| 24 |
> |
entry_plug->rCut = 2.5 * bigSigma; |
| 25 |
|
if(entry_plug->rCut > (entry_plug->box_x / 2.0)) |
| 26 |
|
entry_plug->rCut = entry_plug->box_x / 2.0; |
| 27 |
|
if(entry_plug->rCut > (entry_plug->box_y / 2.0)) |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
for(i=0; i<entry_plug->n_mol; i++ ){ |
| 57 |
< |
entry_plug->molecules[i]->calc_forces(); |
| 57 |
> |
entry_plug->molecules[i].calcForces(); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
frc = Atom::getFrcArray(); |
| 62 |
|
trq = Atom::getTrqArray(); |
| 63 |
|
A = Atom::getAmatArray(); |
| 64 |
|
u_l = Atom::getUlArray(); |
| 64 |
– |
|
| 65 |
|
tau = entry_plug->tau; |
| 66 |
< |
|
| 66 |
> |
|
| 67 |
> |
|
| 68 |
|
isError = 0; |
| 69 |
|
entry_plug->lrPot = 0.0; |
| 70 |
|
|