00001 // -*- C++ -*- 00002 // $Id: aniso_io.h,v 3.1 2008/01/21 20:41:23 edwards Exp $ 00003 /*! \file 00004 * \brief Anisotropy parameters 00005 */ 00006 00007 #ifndef __aniso_io_h__ 00008 #define __aniso_io_h__ 00009 00010 #include "chromabase.h" 00011 00012 namespace Chroma 00013 { 00014 00015 /*! 00016 * Types and structures 00017 * 00018 * \ingroup io 00019 * 00020 * @{ 00021 */ 00022 00023 //! Parameters for anisotropy 00024 struct AnisoParam_t 00025 { 00026 AnisoParam_t(); // default constructor 00027 ~AnisoParam_t() {} 00028 00029 bool anisoP; 00030 int t_dir; 00031 Real xi_0; 00032 Real nu; 00033 }; 00034 00035 //! Read a anisotropy param struct 00036 void read(XMLReader& xml, const string& path, AnisoParam_t& param); 00037 00038 //! Write a anisotropy param struct 00039 void write(XMLWriter& xml, const string& path, const AnisoParam_t& param); 00040 00041 //! Make fermion coefficients 00042 multi1d<Real> makeFermCoeffs(const AnisoParam_t& aniso); 00043 00044 /*! @} */ // end of group io 00045 00046 } //end namespace chroma 00047 #endif
1.4.7