#include /*!\file \brief Implementation of Fsmear class. $Id: f_smear.C,v 1.5 2006/02/01 16:46:08 chulwoo Exp $ */ //-------------------------------------------------------------------- // CVS keywords // // $Author: chulwoo $ // $Date: 2006/02/01 16:46:08 $ // $Header: /space/cvs/cps/cps++/src/util/lattice/f_smear/f_smear.C,v 1.5 2006/02/01 16:46:08 chulwoo Exp $ // $Id: f_smear.C,v 1.5 2006/02/01 16:46:08 chulwoo Exp $ // $Name: v5_0_16_hantao_io_test_v7 $ // $Locker: $ // $Revision: 1.5 $ // $Source: /space/cvs/cps/cps++/src/util/lattice/f_smear/f_smear.C,v $ // $State: Exp $ // //-------------------------------------------------------------------- //------------------------------------------------------------------ // // f_smear.C // // Fsmear is derived from Lattice and is relevant to the // fermion actions with smeared/improved links // //------------------------------------------------------------------ #include #include #include #include CPS_START_NAMESPACE /*! \param n_smear The number of smeared fields. */ Fsmear::Fsmear(int n_smear){ cname = "Fsmear"; const char *fname = "Fsmear"; VRB.Func(cname,fname); n_fields = n_smear; fields = (Matrix **)smalloc(n_smear * sizeof(Matrix *)); int size = GJP.VolNodeSites()*4; for(int i = 0;inth smeared field. */ Matrix *Fsmear::Fields(int n){ const char *fname = "Fields"; if(n >= n_fields) ERR.General(cname, fname,"n(%d) is larger than the number of fields (%d)\n",n,n_fields); return fields[n]; } CPS_END_NAMESPACE