mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-03 21:44:33 +00:00 
			
		
		
		
	QedFVol: pass arbitrary input values to photon constructor in UnitEm
This commit is contained in:
		@@ -61,7 +61,7 @@ void TUnitEm::setup(void)
 | 
				
			|||||||
// execution ///////////////////////////////////////////////////////////////////
 | 
					// execution ///////////////////////////////////////////////////////////////////
 | 
				
			||||||
void TUnitEm::execute(void)
 | 
					void TUnitEm::execute(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    PhotonR photon();
 | 
					    PhotonR photon(0, 0); // Just chose arbitrary input values here
 | 
				
			||||||
    EmField &a = *env().createLattice<EmField>(getName());
 | 
					    EmField &a = *env().createLattice<EmField>(getName());
 | 
				
			||||||
    LOG(Message) << "Generating unit EM potential..." << std::endl;
 | 
					    LOG(Message) << "Generating unit EM potential..." << std::endl;
 | 
				
			||||||
    photon.UnitField(a);
 | 
					    photon.UnitField(a);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user