Page 1 of 1

Problem with calculating polaron equation

Posted: Tue Nov 14, 2023 9:06 pm
by pkarna
Hello,
I was trying to run the example to calculate the polaron from the recent example section. However while trying to run the second epw code for calculating the polaron, I ran into a problem. The crash file reads
task # 68
from polaron_prepare : error # 1
Illegal nhblock_plrn, should between 1 and nkf * nbnd_plrn

While I have not changed any lines from the given code, the only difference is the number of nodes used for the calculation. I dont know if that would create the problem.
Thanks in advance for the suggestion.
Pravin

Re: Problem with calculating polaron equation

Posted: Mon Nov 20, 2023 1:30 am
by stiwari
Dear Pravin,

This problem occurs when you have more number of cores than k-points. As you said you have changed the number of nodes, how many nodes/cores you are using? Try to reduce the number of k-points and check if that works.
Otherwise, attach your input files.

Best,
Sabya.

Re: Problem with calculating polaron equation

Posted: Mon Nov 20, 2023 4:03 pm
by pkarna
Hello Sabya,
Thank you for your response. Currently I am using 1 node with 36 cores and get the problem. I had initially tried with 2 nodes with 72 cores and got the same error file. I preempted the number of cores might be the problem. I think I need to increase the number of k-points as I am only using 6 6 6 k points unless you suggest otherwise.
Thanks
Pravin

Re: Problem with calculating polaron equation

Posted: Fri Nov 24, 2023 1:46 pm
by jlb
Dear Pravin,

I agree with Sabya, this error occurs when the number of MPI processes is larger than the number of k-points in the fine grid (where the matrix elements will be interpolated and the polaron equations solved).

In the school example (lif.epw2.in), nkf1=nkf2=nk3=4, so the fine grid contains 4x4x4=64 k-points and you can use 64 cores at most; anything above that will trigger this error. Try running with less processes or, alternatively, increase the number of points in the fine grid.

Best,
Jon Lafuente-Bartolome