ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/SimInfo.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/SimInfo.cpp (file contents):
Revision 483 by gezelter, Wed Apr 9 04:06:43 2003 UTC vs.
Revision 490 by gezelter, Fri Apr 11 15:16:59 2003 UTC

# Line 9 | Line 9 | SimInfo* currentInfo;
9  
10   #include "fortranWrappers.hpp"
11  
12 + #ifdef IS_MPI
13 + #include "mpiSimulation.hpp"
14 + #endif
15 +
16   SimInfo* currentInfo;
17  
18   SimInfo::SimInfo(){
# Line 128 | Line 132 | void SimInfo::refreshSim(){
132  
133    simtype fInfo;
134    int isError;
135 +  int n_global;
136    int* excl;
137    
138    fInfo.rrf = 0.0;
# Line 161 | Line 166 | void SimInfo::refreshSim(){
166  
167    excl = Exclude::getArray();
168  
169 + #ifdef IS_MPI
170 +  n_global = mpiSim->getTotAtoms();
171 + #else
172 +  n_global = n_atoms;
173 + #endif
174 +
175    isError = 0;
176  
177 <  setFsimulation( &fInfo, &n_atoms, identArray, &n_exclude, excl,
177 >  setFsimulation( &fInfo, &n_global, &n_atoms, identArray, &n_exclude, excl,
178                    &nGlobalExcludes, globalExcludes, molMembershipArray,
179                    &isError );
180  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines