| 1 |
– |
#ifdef IS_MPI |
| 1 |
|
|
| 2 |
+ |
|
| 3 |
|
!! MPI support for long range forces using force decomposition |
| 4 |
|
!! on a square grid of processors. |
| 5 |
|
!! Corresponds to mpiSimunation.cpp for C++ |
| 7 |
|
!! |
| 8 |
|
!! @author Charles F. Vardeman II |
| 9 |
|
!! @author Matthew Meineke |
| 10 |
< |
!! @version $Id: mpiSimulation_module.F90,v 1.3 2003-03-27 23:33:40 chuckv Exp $, $Date: 2003-03-27 23:33:40 $, $Name: not supported by cvs2svn $, $Revision: 1.3 $ |
| 10 |
> |
!! @version $Id: mpiSimulation_module.F90,v 1.5 2003-07-17 19:25:51 chuckv Exp $, $Date: 2003-07-17 19:25:51 $, $Name: not supported by cvs2svn $, $Revision: 1.5 $ |
| 11 |
|
|
| 12 |
|
module mpiSimulation |
| 13 |
|
use definitions |
| 14 |
+ |
#ifdef IS_MPI |
| 15 |
|
use mpi |
| 16 |
|
implicit none |
| 17 |
|
PRIVATE |
| 137 |
|
integer :: localStatus |
| 138 |
|
!! Global reference tag for local particles |
| 139 |
|
integer, dimension(ntags),intent(inout) :: tags |
| 140 |
+ |
|
| 141 |
+ |
write(*,*) 'mpiSim_mod thinks node', thisComponentPlan%myNode, ' has tags(1) = ', tags(1) |
| 142 |
|
|
| 143 |
|
|
| 144 |
+ |
|
| 145 |
|
status = 0 |
| 146 |
|
if (componentPlanSet) then |
| 147 |
|
return |
| 689 |
|
myNode = mpiSim%myNode |
| 690 |
|
end function getMyNode |
| 691 |
|
|
| 692 |
< |
|
| 692 |
> |
#endif // is_mpi |
| 693 |
|
end module mpiSimulation |
| 694 |
|
|
| 695 |
< |
#endif // is_mpi |
| 695 |
> |
|