From: Martin Kronbichler Date: Wed, 20 May 2009 03:53:33 +0000 (+0000) Subject: Put some parenthesis in Stokes assembly in order to speed up things a bit. X-Git-Tag: v8.0.0~7669 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61a2b784aa4d6d714d6f476cb56cbff9528d4f39;p=dealii.git Put some parenthesis in Stokes assembly in order to speed up things a bit. git-svn-id: https://svn.dealii.org/trunk@18868 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index c92672ba87..1d233ad94b 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -659,8 +659,8 @@ class BoussinesqFlowProblem unsigned int timestep_number; std_cxx1x::shared_ptr Amg_preconditioner; - std_cxx1x::shared_ptr Mp_preconditioner; - std_cxx1x::shared_ptr T_preconditioner; + std_cxx1x::shared_ptr Mp_preconditioner; + std_cxx1x::shared_ptr T_preconditioner; bool rebuild_stokes_matrix; bool rebuild_stokes_preconditioner; @@ -1322,7 +1322,7 @@ local_assemble_stokes_system (const typename DoFHandler::active_cell_iterat for (unsigned int i=0; i::assemble_temperature_system (const double maxim if (rebuild_temperature_preconditioner == true) { - T_preconditioner = std_cxx1x::shared_ptr - (new TrilinosWrappers::PreconditionILU()); + T_preconditioner = std_cxx1x::shared_ptr + (new TrilinosWrappers::PreconditionIC()); T_preconditioner->initialize (temperature_matrix); rebuild_temperature_preconditioner = false; @@ -1794,7 +1794,7 @@ void BoussinesqFlowProblem::project_temperature_field () GrowingVectorMemory memory; SolverCG cg(control,memory); - TrilinosWrappers::PreconditionILU preconditioner_mass; + TrilinosWrappers::PreconditionIC preconditioner_mass; preconditioner_mass.initialize(temperature_mass_matrix); cg.solve (temperature_mass_matrix, sol, rhs, preconditioner_mass);