#self.log_msg += (f"E_true: {[a.get_potential_energy() for a in a_add]}\n")
self.log_msg+=(f"Energy of population:\n{array_to_string([a.get_potential_energy()forainself.population.pop],unit='eV')}\n")
self.log_msg+=(f"Max force of ML-relaxed population:\n{array_to_string([(a.get_forces()**2).sum(axis=1).max()**0.5forainself.population.pop_MLrelaxed],unit='eV/A')}\n")
self.log()
self.steps+=1
defget_dualpoint(self,a,lmax=0.10,Fmax_flat=5):
...
...
@@ -315,11 +341,6 @@ class GOFEE():
a_dp.set_positions(pos_dp)
returna_dp
defprint_master(self,*args):
self.comm.barrier()
ifself.master:
print(*args,flush=True)
defget_surrogate_relaxed_candidates(self):
""" Method supplying a number of surrogate-relaxed new
candidates. The method combines the generation of new