MatMgnt3d * MatMgnt3d::getmmptr Kernel3d  ,
int 
[static]
 

Definition at line 463 of file matmgnt3d.cpp.

References _mmvec, knl(), np(), and setup().

00464 {
00465   for(int i=0; i<_mmvec.size(); i++)
00466          if(_mmvec[i].knl()==knl && _mmvec[i].np()==np)
00467                 return &(_mmvec[i]);
00468   
00469   _mmvec.push_back( MatMgnt3d() );
00470   int last = _mmvec.size()-1;
00471   MatMgnt3d* tmp = &(_mmvec[last]); //get the last one
00472   tmp->knl() = knl;  tmp->np() = np;
00473   tmp->setup();
00474   return tmp;
00475 }


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