problem with the example of the quantum espresso calculator for Gold #143
-
|
Dear Developers of SSCHA, When I do a simulation in the NVT ensemble using the script from sscha_and_dft example, I am facing the below error message: The input is as follows: import sscha, sscha.Ensemble, sscha.SchaMinimizer, sscha.Relax, sscha.Utilities input_data = { kpts = (1,1,1) command = 'mpirun -np 24 pw.x -npool 1 -i PREFIX.pwi > PREFIX.pwo' calculator = Espresso(input_data = input_data, TEMPERATURE = 300 gold_dyn = CC.Phonons.Phonons(START_DYN, NQIRR) ensemble = sscha.Ensemble.Ensemble(gold_dyn, TEMPERATURE) minim = sscha.SchaMinimizer.SSCHA_Minimizer(ensemble) relax = sscha.Relax.SSCHA(minim, calculator, N_configs = N_CONFIGS, ioinfo = sscha.Utilities.IOInfo() relax.relax(get_stress = True) relax.minim.finalize() Best wishes. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi, your espresso calculator is not printing the forces in output, which are required for the SSCHA minimization. I hope this solves the problem, P.S. |
Beta Was this translation helpful? Give feedback.
Hi, your espresso calculator is not printing the forces in output, which are required for the SSCHA minimization.
Try to add the forces (and maybe also the stresses if you later want to do a variable cell relaxation) by adding them to the control key of the espresso input data:
I hope this solves the problem,
Bests,
Lorenzo
P.S.
Thanks for spotting the error in the example. Probably it was working with an older version of ASE. I have updated and in will be merged soon