CHROMA
util_compute_8_vectors_s.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Wrapper code to compute staggered meson correlators.
3  *
4  * Spectrum calculations
5  */
6 
7 #include "handle.h"
8 //#include "actions/ferm/fermbcs/fermbcs.h"
10 #include "meas/hadron/hadron_s.h"
11 #include "meas/smear/fuzz_smear.h"
12 #include "meas/sources/srcfil.h"
13 #include "util/ferm/transf.h"
16 
17 
19 
20 namespace Chroma {
21 
22 
23  void compute_8_vectors(multi1d<LatticeStaggeredPropagator> & stag_prop,
24  const multi1d<LatticeColorMatrix> & u ,
25  bool gauge_shift, bool sym_shift,
26  XMLWriter & xml_out,
27  int j_decay, int t_length, int t_source,
28  bool binary_meson_dump, std::string binary_name){
29 
30  Stag_shift_option type_of_shift;
31 
32  if((gauge_shift) && (sym_shift)){
33  type_of_shift=SYM_GAUGE_INVAR;
34  }else{
35  if((gauge_shift) && (!sym_shift)){
36  type_of_shift=GAUGE_INVAR;
37  }else{
38  if((!gauge_shift) && (sym_shift)){
39  type_of_shift=SYM_NON_GAUGE_INVAR;
40  }else{
41  if((!gauge_shift) && (!sym_shift)){
42  type_of_shift=NON_GAUGE_INVAR ;
43  }
44  }
45  }
46  }
47 
48  vector_meson Vector(t_length, u, type_of_shift) ;
49 
50 
51 
52  // ---------- LL ----------
53  Vector.compute(stag_prop,j_decay);
54 
55  if(binary_meson_dump){
56 
57  std::string tagged_filename_base;
58  tagged_filename_base=binary_name+"VT.LL.";
59  Vector.binary_dump(t_source,tagged_filename_base);
60  }else{
61 
62  push(xml_out,"Vectors");
63  push(xml_out, "Lsink_Lsrc");
64  Vector.dump(t_source,xml_out);
65  pop(xml_out);
66  pop(xml_out); //Vectors
67  }
68 
69  // ------------------------
70 
71 
72  QDPIO::cout << "Computed 8 basic Vector mesons" << std::endl;
73 
74 }
75 
76 
77 
78 } // end of namespace
void binary_dump(int t_source, std::string start_name)
Definition: hadron_corr_s.h:64
void dump(int t_source, XMLWriter &xml_out)
Definition: hadron_corr_s.h:33
void compute(multi1d< LatticeStaggeredPropagator > &quark_props, int j_decay)
Fermion actions.
Fuzzed sources.
Hadronic observables.
Class for counted reference semantics.
int j_decay
Definition: meslate.cc:22
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static multi1d< LatticeColorMatrix > u
push(xml_out,"Condensates")
@ SYM_NON_GAUGE_INVAR
void compute_8_vectors(multi1d< LatticeStaggeredPropagator > &stag_prop, const multi1d< LatticeColorMatrix > &u, bool gauge_shift, bool sym_shift, XMLWriter &xml_out, int j_decay, int t_length, int t_source, bool binary_meson_dump, std::string binary_name)
pop(xml_out)
::std::string string
Definition: gtest.h:1979
Point source construction.
Compute staggered quark propagator.