Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 12cb1326 authored by FELŠÖCI Marek's avatar FELŠÖCI Marek
Browse files

Remove HMAT option for shuffle clustering

parent 35f37833
No related branches found
No related tags found
No related merge requests found
......@@ -45,12 +45,6 @@ extern ScalarType stype;
/*! \brief Wavelength (for oscillatory kernels). */
extern double lambda;
/*! \brief Flag to use Hmat shuffle clustering (default is 0).
It can be changed with --use_hmat_shuffle (read in readFlagsTestHMAT() in hmat.c)
*/
extern int use_hmat_shuffle;
/*! \brief Value of the Hmat shuffle clustering minimum divider (minimum number of children per box, default is 2)
It can be changed with "--hmat_divider_min" (read in readFlagsTestHMAT() in hmat.c)
......
......@@ -20,12 +20,6 @@ int init_hmat_interface() {
}
int readFlagsTestHMAT(int *argc, char ***argv) {
/* Flag to use Hmat shuffle clustering */
if (MpfArgHasName(argc, *argv, 1, "--use_hmat_shuffle")) {
use_hmat_shuffle=1;
printf("Using Hmat shuffle clustering\n") ;
}
/* Value of the Hmat shuffle clustering minimum divider (minimum number of children per box) */
if (MpfArgGetInt(argc, *argv, 1, "--hmat_divider_min", &divider_min)) {
printf("Reading Hmat shuffle clustering minimum divider = %d\n", divider_min) ;
......@@ -349,19 +343,13 @@ HMAT_desc_t *HMAT_generate_matrix( hmat_interface_t *hi ) {
hmat_clustering_algorithm_t *clustering = NULL;
hmat_cluster_tree_builder_t *ct_builder;
if (use_hmat_shuffle) {
clustering = hmat_create_shuffle_clustering( hmat_create_clustering_median(),
divider_min, divider_max );
ct_builder = hmat_create_cluster_tree_builder( clustering );
} else {
clustering = hmat_create_clustering_median();
if(mpf_hmat_settings.max_leaf_size > 0) {
printf("HMat maximum leaf size: %d\n", mpf_hmat_settings.max_leaf_size);
clustering = hmat_create_clustering_max_dof(clustering, mpf_hmat_settings.max_leaf_size);
}
hmat_set_clustering_divider(clustering, 2);
ct_builder = hmat_create_cluster_tree_builder( clustering );
clustering = hmat_create_clustering_median();
if(mpf_hmat_settings.max_leaf_size > 0) {
printf("HMat maximum leaf size: %d\n", mpf_hmat_settings.max_leaf_size);
clustering = hmat_create_clustering_max_dof(clustering, mpf_hmat_settings.max_leaf_size);
}
hmat_set_clustering_divider(clustering, 2);
ct_builder = hmat_create_cluster_tree_builder( clustering );
double *points = createCylinder();
hmat_cluster_tree_t *cluster_tree = hmat_create_cluster_tree_from_builder( points, 3, nbPts,
......
......@@ -19,7 +19,6 @@ int simplePrec = 0;
int complexALGO = 1;
ScalarType stype = DOUBLE_COMPLEX;
double lambda;
int use_hmat_shuffle = 0;
int divider_min = 2;
int divider_max = 4;
int use_hodlr = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment