ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/mpi_implementation/mpiSimulation.cpp
(Generate patch)

Comparing trunk/mdtools/mpi_implementation/mpiSimulation.cpp (file contents):
Revision 122 by chuckv, Mon Sep 30 19:36:20 2002 UTC vs.
Revision 132 by chuckv, Wed Oct 9 22:56:09 2002 UTC

# Line 1 | Line 1
1 < #include <mpi++.h>
1 > #include <mpi.h>
2   #include <mpiSimulation.hpp>
3  
4   mpiSimulation::mpiSimulation()
# Line 12 | Line 12 | mpiSimulation::mpiInitSimulation(SimInfo* entry_plug)
12    MPI::Get_processor_name(processorName,&processorNameLen);
13   }
14  
15 mpiSimulation::mpiInitSimulation(SimInfo* entry_plug)
16 {
15  
18  // need to get nmol here......
19
20
21
22  myMolStart = nint(float(node)/numberProcessors*entry_plug->n_mol);
23  myMolEnd   = nint(float(node + 1)/numberProcessors*entry_plug->n_mol;);
24  nMolLocal  = myMolEnd - myMolStart + 1
25 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines