unit_check.cc

Go to the documentation of this file.
00001 // $Id: unit_check.cc,v 3.1 2006/08/25 23:46:37 edwards Exp $
00002 
00003 /*! \file
00004  *  \brief Test a gauge field is unitarized
00005  */
00006 
00007 #include "chromabase.h"
00008 #include "util/gauge/reunit.h"
00009 #include "util/gauge/unit_check.h"
00010 
00011 
00012 namespace Chroma 
00013 {
00014 
00015   //! Check the unitarity of color matrix in SU(N)
00016   /*!
00017    * \ingroup gauge
00018    *
00019    * \param  u  The LatticeColorMatrix to be tested
00020    */
00021   void unitarityCheck(const multi1d<LatticeColorMatrix>& u)
00022   {
00023     START_CODE();
00024 
00025     int numbad;
00026 
00027     for (int mu=0; mu < Nd; ++mu)
00028     {
00029       LatticeColorMatrix u_tmp = u[mu];
00030       reunit(u_tmp, numbad, REUNITARIZE_ERROR);
00031     }
00032     
00033     END_CODE();
00034   }
00035 
00036 }
00037 

Generated on Sun Nov 22 04:37:56 2009 for CHROMA by  doxygen 1.4.7