string ferm_type_str; if (param == FERM_TYPE_WILSON) ferm_type_str = "WILSON"; else if (param == FERM_TYPE_STAGGERED) ferm_type_str = "STAGGERED";
string src_type_str; if (param == SRC_TYPE_POINT_SOURCE) src_type_str = "POINT_SOURCE"; else if (param == SRC_TYPE_WALL_SOURCE) src_type_str = "WALL_SOURCE"; else if (param == SRC_TYPE_SHELL_SOURCE) src_type_str = "SHELL_SOURCE"; else if (param == SRC_TYPE_BNDST_SOURCE) src_type_str = "BNDST_SOURCE";
void write(XMLWriter& xml, const string& path, FermType param){  string ferm_type_str;  if (param == FERM_TYPE_WILSON)    ferm_type_str = "WILSON";  else if (param == FERM_TYPE_STAGGERED)    ferm_type_str = "STAGGERED";  else   {    QDPIO::cerr << "Unsupported fermion type" << endl;    QDP_abort(1);  }  write(xml, path, ferm_type_str);}