1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-17 07:17:06 +01:00

More on smearing routines, writing APEsmear (dev)

This commit is contained in:
neo
2016-02-19 17:15:27 +09:00
parent 771235017d
commit c1b1b89d17
5 changed files with 294 additions and 4 deletions

View File

@ -77,11 +77,15 @@ namespace Grid {
void set_GaugeField(){ fill_smearedSet(); }
void smeared_force(GaugeField&) const;
GaugeField& get_current_conf() const;
GaugeField& select_conf(bool smeared) const {
GaugeField* get_SmearedU() const{
return const_cast<GaugeField*>(&(SmearedSet[smearingLevels-1]));
}
GaugeField* get_U(bool smeared=false) const {
// get the config, thin links by default
if (smeared){
if (smearingLevels) return get_current_conf();
else return ThinLinks;
if (smearingLevels) return get_SmearedU();
else return ThinLinks;
}
else return ThinLinks;
}
@ -93,4 +97,8 @@ namespace Grid {
}
#endif