void testInterpKernelDEC_2D(const string& filename1, const string& meshname1,
const string& filename2, const string& meshname2,
- int nproc_source, double epsilon, bool tri, bool all);
+ int nproc_source, double epsilon, bool tri, bool all,
+ bool dbb);
void get_time( float *telps, float *tuser, float *tsys, float *tcpu );
int main(int argc, char *argv[])
int count=0;
bool tri=false;
bool all=false;
+ bool dbb=false;
MPI_Init(&argc,&argv);
else if( strcmp(argv[i],"-all") == 0 ){
all = true;
}
+ else if( strcmp(argv[i],"-dbb") == 0 ){
+ dbb = true;
+ }
}
if( count != 4 ){
}
MPI_Comm_rank(MPI_COMM_WORLD,&rank);
- testInterpKernelDEC_2D(filename1,meshname1,filename2,meshname2,nproc_source,epsilon,tri,all);
+ testInterpKernelDEC_2D(filename1,meshname1,filename2,meshname2,nproc_source,epsilon,tri,all,dbb);
MPI_Finalize();
}
void testInterpKernelDEC_2D(const string& filename_xml1, const string& meshname1,
const string& filename_xml2, const string& meshname2,
- int nproc_source, double epsilon, bool tri, bool all)
+ int nproc_source, double epsilon, bool tri, bool all,
+ bool dbb)
{
float tcpu, tcpu_u, tcpu_s, telps;
int size;
else
dec.setIntersectionType(INTERP_KERNEL::Convex);
+ dec.setUseDirectedBoundingBox(dbb);
+
ParaMEDMEM::MEDCouplingUMesh* mesh;
ParaMEDMEM::ParaMESH* paramesh;
ParaMEDMEM::ParaFIELD* parafield;
ParaMEDMEM::ComponentTopology comptopo;
parafield = new ParaFIELD(ON_CELLS, NO_TIME, paramesh, comptopo);
+ parafield->getField()->setNature( Integral );
int nb_local=mesh->getNumberOfCells();
double *value=parafield->getField()->getArray()->getPointer();
paramesh=new ParaMESH (mesh,*target_group,"target mesh");
ParaMEDMEM::ComponentTopology comptopo;
parafield = new ParaFIELD(ON_CELLS,NO_TIME,paramesh, comptopo);
+ parafield->getField()->setNature( Integral );
int nb_local=mesh->getNumberOfCells();
double *value=parafield->getField()->getArray()->getPointer();