Smoother (level 2) : IFPACK, type=`ILU',
Smoother (level 2) : post,overlap=1
Smoother (level 2) : level-of-fill=0,rel. threshold=1,abs. threshold=0
Smoother (level 2) : Setup time : 0.00463979 (s)
Coarse solve (level 3) : IFPACK, type=`ILU',
Coarse solve (level 3) : post,overlap=1
Coarse solve (level 3) : level-of-fill=0,rel. threshold=1,abs. threshold=0
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
// Still need to figure out the syntax for the additional_parameters
Teuchos::ParameterList additional_parameter("smoother: params");
To unsubscribe from this group and stop receiving emails from it, send an email to dea...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
TrilinosWrappers::PreconditionAMG preconditioner;
std::vector<std::vector<bool> > constant_modes;
std::vector<bool> velocity_components (dim+1,true);
DoFTools::extract_constant_modes (dof_handler, velocity_components,
constant_modes);
TrilinosWrappers::PreconditionAMG::AdditionalData amg_data;
amg_data.constant_modes = constant_modes;
const bool elliptic=false;
const bool higher_order_elements = false;
const unsigned int n_cycles = 2;
const bool w_cycle = true;
const double aggregation_threshold = 1e-10;
const unsigned int smoother_sweeps = 2;
const unsigned int smoother_overlap = 1;
const bool output_details = false;
const char * smoother_type = "ILU";
const char * coarse_type = "ILU";
TrilinosWrappers::PreconditionAMG::AdditionalData preconditionerOptions(
elliptic,
higher_order_elements,
n_cycles,
w_cycle,
aggregation_threshold,
constant_modes,
smoother_sweeps,
smoother_overlap,
output_details,
smoother_type,
coarse_type
);
Teuchos::ParameterList parameter_ml;
std::unique_ptr< Epetra_MultiVector > distributed_constant_modes;
preconditionerOptions.set_parameters(parameter_ml, distributed_constant_modes, system_matrix);
const double ilu_fill=linearSolverParameters.ilut_fill;
const double ilu_atol=linearSolverParameters.ilut_atol ;
const double ilu_rtol=linearSolverParameters.ilut_rtol;
parameter_ml.set("smoother: ifpack level-of-fill",ilu_fill);
parameter_ml.set("smoother: ifpack absolute threshold",ilu_atol);
parameter_ml.set("coarse: ifpack level-of-fill",ilu_fill);
parameter_ml.set("coarse: ifpack absolute threshold",ilu_atol);
preconditioner.initialize(system_matrix,parameter_ml);
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.