--- trunk/OOPSE/libmdtools/mdProfile.cpp 2004/05/27 00:48:12 1198 +++ trunk/OOPSE/libmdtools/mdProfile.cpp 2004/05/27 18:59:17 1203 @@ -170,8 +170,8 @@ void writeProfiles( void ){ if( worldRank == 0 ){ - double *nodeTots = new double[mpiSim->getNprocessors()]; - double *nodePercentTots = new double[mpiSim->getNprocessors()]; + double *nodeTots = new double[mpiSim->getNProcessors()]; + double *nodePercentTots = new double[mpiSim->getNProcessors()]; totalTime = 0.0; for(i=0;igetNprocessors();j++){ + for(j=1;jgetNProcessors();j++){ nodeTime = 0.0; @@ -309,7 +309,7 @@ void writeProfiles( void ){ // print out the totals - for(j=0;jgetNprocessors();j++) + for(j=0;jgetNProcessors();j++) nodePercentTots[j] = nodeTots[j] / globalTime; for(i=0;igetNprocessors();j++){ + for(j=0;jgetNProcessors();j++){ fprintf(stdout, " %12G %14G node %d\n", @@ -374,7 +374,7 @@ void writeProfiles( void ){ else{ - for(j=1;jgetNprocessors();j++){ + for(j=1;jgetNProcessors();j++){ if( worldRank == j ){