Blender V2.61 - r43446
|
00001 00005 // same as grid loop_end + barrier 00006 00007 } // i 00008 int i=0; //dummy 00009 ADVANCE_POINTERS(2*gridLoopBound); 00010 } // j 00011 00012 # if COMPRESSGRIDS==1 00013 # if PARALLEL==1 00014 //frintf(stderr," (id=%d k=%d) ",id,k); 00015 #pragma omp barrier 00016 # endif // PARALLEL==1 00017 # else // COMPRESSGRIDS==1 00018 int i=0; //dummy 00019 ADVANCE_POINTERS(mLevel[lev].lSizex*2); 00020 # endif // COMPRESSGRIDS==1 00021 00022 } // all cell loop k,j,i 00023 00024 #pragma omp critical 00025 { 00026 if(doReduce) { 00027 // synchronize global vars 00028 for(size_t j=0; j<calcListFull.size() ; j++) mListFull.push_back( calcListFull[j] ); 00029 for(size_t j=0; j<calcListEmpty.size(); j++) mListEmpty.push_back( calcListEmpty[j] ); 00030 for(size_t j=0; j<calcListParts.size(); j++) mpParticles->addFullParticle( calcListParts[j] ); 00031 if(calcMaxVlen>mMaxVlen) { 00032 mMxvx = calcMxvx; 00033 mMxvy = calcMxvy; 00034 mMxvz = calcMxvz; 00035 mMaxVlen = calcMaxVlen; 00036 } 00037 if(0) {debMsgStd("OMP_CRIT",DM_MSG, "reduce id"<<id<<" curr: "<<mMaxVlen<<"|"<<mMxvx<<","<<mMxvy<<","<<mMxvz<< 00038 " calc[ "<<calcMaxVlen<<"|"<<calcMxvx<<","<<calcMxvy<<","<<calcMxvz<<"] " ,4 ); } 00039 } 00040 } // critical 00041 00042 00043 } /* main_region */ 00044 //?lobOutstrForce = true; 00045