Dear Daniele,
thanks a lot, the ncdump utility is exactly what I needed.
It seems that in my case the problem lies in the ns.kb_pp_pwscf anf ns.kb_pp_pwscf_fragment_1 databases.
On the machine, where I have the NaN problem, the contents of the ns.kb_pp_pwscf_fragment_1 database seem to be random -- they change from one run of p2y to the next (all based on the same pwscf data).
One time the data in the PP_KB_K1 variable looks like this
Code: Select all
PP_KB_K1 =
0, 3.865156e-15, 3.863288e-15, 3.861117e-15, 3.861117e-15, 3.858642e-15,
3.85461e-15, 3.85461e-15, 3.853764e-15, 3.851597e-15, 3.851597e-15,
3.85119e-15, 3.849736e-15, 3.849736e-15, 3.849024e-15, 3.849024e-15,
3.847809e-15, 3.847572e-15, 3.847572e-15, 3.847572e-15, 3.847572e-15,
...
the next time like this
Code: Select all
PP_KB_K1 =
0, 1.839352e-08, 1.838463e-08, 1.83743e-08, 1.83743e-08, 1.836252e-08,
1.834333e-08, 1.834333e-08, 1.833931e-08, 1.8329e-08, 1.8329e-08,
1.832706e-08, 1.832014e-08, 1.832014e-08, 1.831675e-08, 1.831675e-08,
1.831097e-08, 1.830984e-08, 1.830984e-08, 1.830984e-08, 1.830984e-08,
...
and another time like this
Code: Select all
PP_KB_K1 =
0, 3.993321e+16, 3.991392e+16, 3.989148e+16, 3.989148e+16, 3.986591e+16,
3.982426e+16, 3.982426e+16, 3.981551e+16, 3.979313e+16, 3.979313e+16,
3.978892e+16, 3.97739e+16, 3.97739e+16, 3.976655e+16, 3.976655e+16,
3.975399e+16, 3.975154e+16, 3.975154e+16, 3.975154e+16, 3.975154e+16,
...
The p2y on this machine was compiled with the intel compiler, while the one on the machine without problems was compiled with gfortran
(for the gfortran executable I also checked that the p2y results are completely reproducible).
I will look further into this..
Best,
Leo