ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
vnl_pw.cpp File Reference

Core resource management for pseudopot_cell_vnl. More...

Include dependency graph for vnl_pw.cpp:

Detailed Description

Core resource management for pseudopot_cell_vnl.

This file now keeps only the central lifecycle and accessor glue:

  • ctor / dtor / release_memory(): device buffer cleanup
  • init(): allocate and wire vkb, tab, tab_at, deeq, qq_nt/qq_so, nhtol etc.
  • print_vnl(): dump tab to stream
  • rescale_vnl(): rescale tab/tab_dq/tab_at/qrad when the cell volume changes
  • get_*_data<T>() template specializations for CPU/GPU typed pointer access

Heavy logic (getvnl, init_vnl, qrad, deeq, alpha channel) lives in: vnl_pw_getvnl.cpp, vnl_pw_init_vnl.cpp, vnl_pw_qrad.cpp, vnl_pw_deeq.cpp, vnl_pw_alpha.cpp, vnl_pw_grad.cpp