7 |
|
!! |
8 |
|
!! @author Charles F. Vardeman II |
9 |
|
!! @author Matthew Meineke |
10 |
< |
!! @version $Id: mpiSimulation_module.F90,v 1.1 2004-10-05 19:37:38 tim Exp $, $Date: 2004-10-05 19:37:38 $, $Name: not supported by cvs2svn $, $Revision: 1.1 $ |
10 |
> |
!! @version $Id: mpiSimulation_module.F90,v 1.2 2004-10-19 20:44:31 chuckv Exp $, $Date: 2004-10-19 20:44:31 $, $Name: not supported by cvs2svn $, $Revision: 1.2 $ |
11 |
|
|
12 |
|
module mpiSimulation |
13 |
|
use definitions |
853 |
|
#endif // is_mpi |
854 |
|
end module mpiSimulation |
855 |
|
|
856 |
+ |
#ifdef IS_MPI |
857 |
+ |
subroutine setFortranMPI(thisComponentPlan, nAtomTags, atomTags, & |
858 |
+ |
nGroupTags, groupTags, status) |
859 |
+ |
use mpiSimulation |
860 |
+ |
|
861 |
+ |
!! Passed Arguments |
862 |
+ |
!! mpiComponentPlan struct from C |
863 |
+ |
type (mpiComponentPlan), intent(inout) :: thisComponentPlan |
864 |
+ |
!! Number of tags passed |
865 |
+ |
integer, intent(in) :: nAtomTags, nGroupTags |
866 |
+ |
!! Result status, 0 = normal, -1 = error |
867 |
+ |
integer, intent(out) :: status |
868 |
+ |
integer :: localStatus |
869 |
+ |
!! Global reference tag for local particles |
870 |
+ |
integer, dimension(nAtomTags), intent(inout) :: atomTags |
871 |
+ |
integer, dimension(nGroupTags), intent(inout) :: groupTags |
872 |
+ |
|
873 |
+ |
call setupSimParallel(thisComponentPlan, nAtomTags, atomTags, & |
874 |
+ |
nGroupTags, groupTags, status) |
875 |
|
|
876 |
+ |
|
877 |
+ |
end subroutine |
878 |
+ |
|
879 |
+ |
#endif |
880 |
+ |
|
881 |
+ |
|