Пример #1
0
// ------------------------ INTERFACE ------------------------------------------
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
void LapH::OperatorsForMesons::create_operators(const std::string& filename, 
                                            const LapH::RandomVector& rnd_vec) {
  is_vdaggerv_set = false;
  build_vdaggerv(filename);
  build_rvdaggerv(rnd_vec);
  build_rvdaggervr(rnd_vec);
}
Пример #2
0
// ------------------------ INTERFACE ------------------------------------------
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
void LapH::OperatorsForMesons::create_operators(const std::string& filename, 
                                            const LapH::RandomVector& rnd_vec,
                                            const int config) {
  is_vdaggerv_set = false;
  if(handling_vdaggerv == "write" || handling_vdaggerv == "build")
    build_vdaggerv(filename, config);
  else if(handling_vdaggerv == "read")
    read_vdaggerv(config);
  else if(handling_vdaggerv == "liuming")
    read_vdaggerv_liuming(config);
  else{
    std::cout << "\n\tThe flag handling_vdaggerv in input file is wrong!!\n\n"
              << std::endl;
    exit(0);
  }
  build_rvdaggerv(rnd_vec);
  build_rvdaggervr(rnd_vec);
}