int MatMgnt3d::samDen2RegDen const DblNumVec &  ,
DblNumVec & 
 

Definition at line 255 of file matmgnt3d.cpp.

References _np, np(), and srcDOF().

Referenced by plnDen2EffDen().

00256 {
00257   int np = _np;
00258   int rgnum = 2*np;
00259   int srcDOF = this->srcDOF();
00260   int cnt=0;
00261   //the order of iterating is the same as SampleGrid
00262   for(int i=0; i<np; i++)
00263          for(int j=0; j<np; j++)
00264                 for(int k=0; k<np; k++) {
00265                   if(i==0 || i==np-1 || j==0 || j==np-1 || k==0 || k==np-1) {
00266                          //the position is fortran style
00267                          int rgoff = (k+np/2)*rgnum*rgnum + (j+np/2)*rgnum + (i+np/2);
00268                          for(int f=0; f<srcDOF; f++) {
00269                                 regDen(srcDOF*rgoff + f) += samDen(srcDOF*cnt + f);
00270                          }
00271                          cnt++;
00272                   }
00273                 }  //iC( PetscLogFlops(np*np*np*dof) );
00274   return 0;
00275 }


Generated on Sun Dec 4 19:24:41 2005 for fmm3d by  doxygen 1.4.5