[MMTK] Supress minimizer output

Konrad Hinsen research at khinsen.fastmail.net
Wed May 30 13:08:50 UTC 2012


Ramon Crehuet writes:

 > I'd like to silence MMTK minimizer to avoid printing lines such as:
 > 
 > Step 0
 > Potential energy: -16240.727082, Gradient norm: 3597.640768
 > 
 > I've tried something like the following, but I still get the step 0 line.
 > 
 > minimizer = ConjugateGradientMinimizer(universe,
 >                                        actions=[StandardLogOutput(10000)])

It's the StandardLogOutput action that prints those lines, so just get
rid of it completely:

  minimizer = ConjugateGradientMinimizer(universe)


Konrad.
-- 
---------------------------------------------------------------------
Konrad Hinsen
Centre de Biophysique Moléculaire, CNRS Orléans
Synchrotron Soleil - Division Expériences
Saint Aubin - BP 48
91192 Gif sur Yvette Cedex, France
Tel. +33-1 69 35 97 15
E-Mail: research AT khinsen DOT fastmail DOT net
http://dirac.cnrs-orleans.fr/~hinsen/
---------------------------------------------------------------------



More information about the mmtk mailing list