Welcome to mirror list, hosted at ThFree Co, Russian Federation.

paraloopend.h « intern « elbeem « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: de315c5a6e1af089c544992a617e82dc086134ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// same as grid loop_end + barrier

			} // i
		int i=0; //dummy
		ADVANCE_POINTERS(2*gridLoopBound);
	} // j

#	if COMPRESSGRIDS==1
#	if PARALLEL==1
	//frintf(stderr," (id=%d k=%d) ",id,k);
#pragma omp barrier
#	endif // PARALLEL==1
#	else // COMPRESSGRIDS==1
	int i=0; //dummy
	ADVANCE_POINTERS(mLevel[lev].lSizex*2);
#	endif // COMPRESSGRIDS==1

} // all cell loop k,j,i

#pragma omp critical
{
	if(doReduce) {
		// synchronize global vars
		for(unsigned int j=0; j<calcListFull.size() ; j++) mListFull.push_back( calcListFull[j] ); 
		for(unsigned int j=0; j<calcListEmpty.size(); j++) mListEmpty.push_back( calcListEmpty[j] ); 
		for(unsigned int j=0; j<calcListParts.size(); j++) mpParticles->addFullParticle( calcListParts[j] );
		if(calcMaxVlen>mMaxVlen) {  
			mMxvx = calcMxvx;  
			mMxvy = calcMxvy;  
			mMxvz = calcMxvz;  
			mMaxVlen = calcMaxVlen;  
		}  
		if(0) {debMsgStd("OMP_CRIT",DM_MSG,	"reduce id"<<id<<" curr: "<<mMaxVlen<<"|"<<mMxvx<<","<<mMxvy<<","<<mMxvz<< 
																				"      calc[ "<<calcMaxVlen<<"|"<<calcMxvx<<","<<calcMxvy<<","<<calcMxvz<<"]  " ,4 ); }
	}
} // critical


} /* main_region */  
	//?lobOutstrForce = true;