Commit Graph

11 Commits

Author SHA1 Message Date
Paolo Giannozzi c91a55416b [skip-CI] dylmr2_gpu and dylmr2 merged
Note that ylmr2 now calls ylmr2_gpu if __CUDA
2024-01-11 14:06:18 +01:00
Paolo Giannozzi 7001de08d6 [skip-CI] DY_lm for GPU moved to ACC 2024-01-11 12:53:36 +01:00
Paolo Giannozzi d6146e5517 Beta function interpolation routines encapsulated into module beta_mod.
Important: allocation moved from allocate_nlpot to init_tab_beta
2024-01-09 15:03:28 +01:00
Paolo Giannozzi 9560e64a51 [skip-CI] Interpolation of beta functions moved to a separate routine 2023-12-29 14:24:52 +01:00
Paolo Giannozzi e44da33695 Cleanup of code computing and using interpolation table "tab":
- tab renamed to tab_beta
- device variable tab_d deleted, replaced by ACC variable tab_beta
2023-12-04 21:12:40 +01:00
Victor Yu 595cda70ce Add KIND=DP to CMPLX 2023-05-21 17:48:55 -05:00
fabrizio22 70befc559b stress_acc - gen_us_dy_gpu removed 2022-08-08 12:52:05 +02:00
Paolo Giannozzi 164b9e86c8 Removal of spline interpolation
The need of the spline interpolation is anedoctical and lost in a distant past.
A few tests show minimal differences between ordinary and spline interpolation.
If spline interpolation turns out to be needed in some cases, it can be easily
re-implemented instead of the current interpolation (instead of in addition to)
2022-01-11 09:57:39 +01:00
Paolo Giannozzi e4abd824bb Cleanup of upflib
Get rid of a few special cases of questionable usefulness but very effective
in making the code more complex.
Case 1: nonlocal terms of  Goedecker-Teter-Hutter PPs can be computed on a
grid and interpolated like for all other cases
2022-01-09 21:45:15 +01:00
Paolo Giannozzi b60e0e3fb6 GTH pseudopotentials have a special treatment, which unfortunately was not
implemented in some parts of the code involving stress calculation and maybe
other cases as well. For the time being, I have added it to the cpu version
(but not in the GPU one, that stops with an error message). For the future:
I think that the more special cases we allow, the more we run into trouble.
In my opinion, GTH pseudopotentials should be treated on the same footing as
other pseudopotentials: computed on an interpolation table and interpolated.

Side remark: there is another special case, spline interpolation (as opposed to
the hand-made one). I think there should be just ONE type of interpolation.
2021-12-31 09:37:05 +01:00
Paolo Giannozzi 669d535042 Moved gen_us_d*f90 from PW/src into upflib 2021-12-29 22:05:39 +01:00