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

Comparing trunk/OOPSE/libmdtools/mdProfile.cpp (file contents):
Revision 1198 by tim, Thu May 27 00:48:12 2004 UTC vs.
Revision 1203 by gezelter, Thu May 27 18:59:17 2004 UTC

# Line 170 | Line 170 | void writeProfiles( void ){
170  
171    if( worldRank == 0 ){
172      
173 <    double *nodeTots = new double[mpiSim->getNprocessors()];
174 <    double *nodePercentTots = new double[mpiSim->getNprocessors()];
173 >    double *nodeTots = new double[mpiSim->getNProcessors()];
174 >    double *nodePercentTots = new double[mpiSim->getNProcessors()];
175      
176      totalTime = 0.0;
177      for(i=0;i<N_PROFILES;i++)
# Line 236 | Line 236 | void writeProfiles( void ){
236        globalAccum[i] = accumTime[i];
237      
238      
239 <    for(j=1;j<mpiSim->getNprocessors();j++){
239 >    for(j=1;j<mpiSim->getNProcessors();j++){
240        
241        nodeTime = 0.0;
242      
# Line 309 | Line 309 | void writeProfiles( void ){
309  
310      // print out the totals
311      
312 <    for(j=0;j<mpiSim->getNprocessors();j++)
312 >    for(j=0;j<mpiSim->getNProcessors();j++)
313        nodePercentTots[j] = nodeTots[j] / globalTime;
314      
315      for(i=0;i<N_PROFILES;i++)
# Line 335 | Line 335 | void writeProfiles( void ){
335              "\n"
336              "\n" );
337      
338 <    for(j=0;j<mpiSim->getNprocessors();j++){
338 >    for(j=0;j<mpiSim->getNProcessors();j++){
339        
340        fprintf(stdout,
341                " %12G    %14G     node %d\n",
# Line 374 | Line 374 | void writeProfiles( void ){
374  
375    else{
376  
377 <    for(j=1;j<mpiSim->getNprocessors();j++){
377 >    for(j=1;j<mpiSim->getNProcessors();j++){
378        
379        if( worldRank == j ){
380          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines