]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simplified a bit of code in AMG preconditioner init.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Nov 2008 13:55:29 +0000 (13:55 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Nov 2008 13:55:29 +0000 (13:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@17643 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/trilinos_precondition.cc

index ffc68d79b2eb9091749ad4413308fbbbe3f96560..cdf1e1e9146c33900057ca7fe79865a276f35f2a 100755 (executable)
@@ -513,18 +513,16 @@ namespace TrilinosWrappers
       {
        ML_Epetra::SetDefaults("SA",parameter_list);
        parameter_list.set("smoother: type", "Chebyshev");
-       parameter_list.set("smoother: sweeps", 
-                          (int)additional_data.smoother_sweeps);
       }
     else
       {
        ML_Epetra::SetDefaults("NSSA",parameter_list);
        parameter_list.set("aggregation: type", "Uncoupled");
        parameter_list.set("aggregation: block scaling", true);
-       parameter_list.set("smoother: sweeps",
-                          (int)additional_data.smoother_sweeps);
       }
   
+    parameter_list.set("smoother: sweeps", 
+                      (int)additional_data.smoother_sweeps);
     parameter_list.set("smoother: ifpack overlap", 
                       (int)additional_data.smoother_overlap);
     parameter_list.set("aggregation: threshold", 

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.