]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix Zoltan debug output 5708/head
authorDenis Davydov <davydden@gmail.com>
Mon, 8 Jan 2018 21:25:17 +0000 (22:25 +0100)
committerDenis Davydov <davydden@gmail.com>
Mon, 8 Jan 2018 21:25:17 +0000 (22:25 +0100)
source/lac/sparsity_tools.cc

index 82e5f194d5bcf8aa31106fac6860417d3eb76fbd..5bf24eb8a27fee7996e5c4c462cc8af41305bc6a 100644 (file)
@@ -240,8 +240,9 @@ namespace SparsityTools
       std::unique_ptr<Zoltan> zz = std_cxx14::make_unique<Zoltan>(MPI_COMM_SELF);
 
       //General parameters
-      zz->Set_Param( "LB_METHOD", "GRAPH" );  //graph based partition method (LB-load balancing)
+      // DEBUG_LEVEL call must precede the call to LB_METHOD
       zz->Set_Param( "DEBUG_LEVEL", "0" );   //set level of debug info
+      zz->Set_Param( "LB_METHOD", "GRAPH" );  //graph based partition method (LB-load balancing)
       zz->Set_Param( "NUM_LOCAL_PARTS", std::to_string(n_partitions) ); //set number of partitions
 
       //Need a non-const object equal to sparsity_pattern
@@ -346,12 +347,13 @@ namespace SparsityTools
     std::unique_ptr<Zoltan> zz = std_cxx14::make_unique<Zoltan> (MPI_COMM_SELF);
 
     //Coloring parameters
+    // DEBUG_LEVEL must precede all other calls
+    zz->Set_Param ("DEBUG_LEVEL", "0" );     //level of debug info
     zz->Set_Param ("COLORING_PROBLEM", "DISTANCE-1");  //Standard coloring
     zz->Set_Param ("NUM_GID_ENTRIES", "1");  // 1 entry represents global ID
     zz->Set_Param ("NUM_LID_ENTRIES", "1");  // 1 entry represents local ID
     zz->Set_Param ("OBJ_WEIGHT_DIM", "0");   // object weights not used
     zz->Set_Param ("RECOLORING_NUM_OF_ITERATIONS", "0");
-    zz->Set_Param ("DEBUG_LEVEL", "0" );     //level of debug info
 
     //Zoltan::Color function requires a non-const SparsityPattern object
     SparsityPattern graph;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.