mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-10-27 18:19:34 +00:00 
			
		
		
		
	Fixed seg fault for observable modules
This commit is contained in:
		| @@ -62,11 +62,8 @@ int main(int argc, char **argv) { | ||||
|   TheHMC.Resources.SetRNGSeeds(RNGpar); | ||||
|  | ||||
|   // Construct observables | ||||
|   // here there is too much indirection  | ||||
|   PlaquetteObsParameters PlPar; | ||||
|   PlPar.output_prefix = "Plaquette"; | ||||
|   PlaquetteMod<HMCWrapper::ImplPolicy> PlaqModule(PlPar); | ||||
|   TheHMC.Resources.AddObservable(&PlaqModule); | ||||
|   typedef PlaquetteMod<HMCWrapper::ImplPolicy> PlaqObs; | ||||
|   TheHMC.Resources.AddObservable<PlaqObs>(); | ||||
|   ////////////////////////////////////////////// | ||||
|  | ||||
|   ///////////////////////////////////////////////////////////// | ||||
|   | ||||
		Reference in New Issue
	
	Block a user