Configurable number of amg cycles in preconditioning