asqtad_fermact_params_s.cc

Go to the documentation of this file.
00001 // $Id: asqtad_fermact_params_s.cc,v 3.1 2006/11/16 19:49:33 kostas Exp $
00002 /*! \file
00003  *  \brief Asqtad fermion action parameters
00004  */
00005 
00006 #include "chromabase.h"
00007 #include "actions/ferm/fermacts/asqtad_fermact_params_s.h"
00008 
00009 #include "io/param_io.h"
00010 
00011 namespace Chroma
00012 {
00013   //! Default constructor
00014   AsqtadFermActParams::AsqtadFermActParams()
00015   {
00016     Mass = 0.0;
00017     u0  = 1.0;
00018   }
00019 
00020 
00021   //! Read parameters
00022   AsqtadFermActParams::AsqtadFermActParams(XMLReader& xml, const string& path)
00023   {
00024     XMLReader paramtop(xml, path);
00025 
00026     // Read the stuff for the action
00027     read(paramtop, "Mass", Mass);
00028     read(paramtop, "u0", u0);
00029     
00030     //  Read optional anisoParam.
00031   }
00032 
00033   //! Read parameters
00034   void read(XMLReader& xml, const string& path, AsqtadFermActParams& param)
00035   {
00036     AsqtadFermActParams tmp(xml, path);
00037     param = tmp;
00038   }
00039 
00040   //! Writer parameters
00041   void write(XMLWriter& xml, const string& path, const AsqtadFermActParams& param)
00042   {
00043     push(xml, path);
00044 
00045     write(xml, "Mass", param.Mass);
00046     write(xml, "u0", param.u0);
00047     pop(xml);
00048   }
00049 }

Generated on Sat Nov 21 04:28:48 2009 for CHROMA by  doxygen 1.4.7