qmcpack icon indicating copy to clipboard operation
qmcpack copied to clipboard

Need to consolidate TWF/WFC::evalGradSource

Open ye-luo opened this issue 9 months ago • 4 comments

After the removal of finite difference https://github.com/QMCPACK/qmcpack/pull/5380, certain clean up can happen

  1. Removal of ions particle set passing as an argument. This was needed because each walker needed a separate ions to operate moves. Since it is no longer needed, each component that involves ions can use its internal const reference to ions.
  2. electron particleset should made possible if possible.
  3. There are two evalGradSource functions and preferably reduce to one.
  4. Remove all the clones of ions.

ye-luo avatar Apr 07 '25 18:04 ye-luo

@rcclay I had a hard time locating the per walker clone of ions and I'm wondering if the removed finite difference code actually worked properly in threaded runs. Do you remember where are the clones of ions?

ye-luo avatar Apr 07 '25 18:04 ye-luo

Hi @ye-luo I thought I had told you I had a huge PR with all these modifocation with the linking of the TW functions to the batch version of the code. You asked me to not do a PR for now and now you open one... am I understanding differently? Would you mind waiting for our PR or should we just keep separate branches?

anbenali avatar Apr 09 '25 13:04 anbenali

I don't have any PR prepared to address this issue which is mostly a TODO list I have in mind. A few of them was discussed when the finite difference derivatives in JeeI was first introduced. If your PR has already addressed part of it, that will be great.

ye-luo avatar Apr 09 '25 15:04 ye-luo

Great! Please give us the opportunity to submit the PR

anbenali avatar Apr 09 '25 15:04 anbenali