Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

mdp_partitionings.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 int default_partitioning0(int *x, 
00014                           int ndim, 
00015                           int *nx) {
00016   float tpp1=(float) nx[0]/Nproc;
00017   int   tpp2=(int)   tpp1;
00018   if(tpp1-tpp2>0) tpp2+=1;
00019   return x[0]/tpp2;
00020 }
00021 
00022 template<int dim>
00023 int default_partitioning(int *x, 
00024                          int ndim, 
00025                          int *nx) {
00026   float tpp1=(float) nx[dim]/Nproc;
00027   int   tpp2=(int)   tpp1;
00028   if(tpp1-tpp2>0) tpp2+=1;
00029   return x[dim]/tpp2;
00030 }

Generated on Sun Feb 27 15:12:21 2005 by  doxygen 1.4.1