From ad1bd10ef532ec8e13dcd693dc798d57de701b68 Mon Sep 17 00:00:00 2001 From: HanswithCMY <167949665+HanswithCMY@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:42:29 +0800 Subject: [PATCH 1/4] Update pppm_dplr.h Add access method for fele vector in pppm/dplr Signed-off-by: HanswithCMY <167949665+HanswithCMY@users.noreply.github.com> --- source/lmp/pppm_dplr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/lmp/pppm_dplr.h b/source/lmp/pppm_dplr.h index 1484a16e72..64ca367a76 100644 --- a/source/lmp/pppm_dplr.h +++ b/source/lmp/pppm_dplr.h @@ -28,6 +28,7 @@ class PPPMDPLR : public PPPM { ~PPPMDPLR() override {}; void init() override; const std::vector &get_fele() const { return fele; }; + void set_fele(const std::vector &new_fele) { fele = new_fele; } protected: void compute(int, int) override; From 66ec1a767f5b564c297c5025844e208510af44fb Mon Sep 17 00:00:00 2001 From: HanswithCMY <167949665+HanswithCMY@users.noreply.github.com> Date: Tue, 3 Dec 2024 17:01:25 +0800 Subject: [PATCH 2/4] Update pppm_dplr.h Signed-off-by: HanswithCMY <167949665+HanswithCMY@users.noreply.github.com> --- source/lmp/pppm_dplr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lmp/pppm_dplr.h b/source/lmp/pppm_dplr.h index 64ca367a76..5928613f9b 100644 --- a/source/lmp/pppm_dplr.h +++ b/source/lmp/pppm_dplr.h @@ -28,7 +28,7 @@ class PPPMDPLR : public PPPM { ~PPPMDPLR() override {}; void init() override; const std::vector &get_fele() const { return fele; }; - void set_fele(const std::vector &new_fele) { fele = new_fele; } + std::vector* get_fele_pointer() {return &fele;} protected: void compute(int, int) override; From 764995369e81b2ab4d397bb4907a19f128fe50af Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 09:06:44 +0000 Subject: [PATCH 3/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- source/lmp/pppm_dplr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lmp/pppm_dplr.h b/source/lmp/pppm_dplr.h index 5928613f9b..be16baf880 100644 --- a/source/lmp/pppm_dplr.h +++ b/source/lmp/pppm_dplr.h @@ -28,7 +28,7 @@ class PPPMDPLR : public PPPM { ~PPPMDPLR() override {}; void init() override; const std::vector &get_fele() const { return fele; }; - std::vector* get_fele_pointer() {return &fele;} + std::vector *get_fele_pointer() { return &fele; } protected: void compute(int, int) override; From f11e22fbcd0014ee76f42992ad6b8cfb17f1a0eb Mon Sep 17 00:00:00 2001 From: HanswithCMY <167949665+HanswithCMY@users.noreply.github.com> Date: Wed, 4 Dec 2024 21:09:35 +0800 Subject: [PATCH 4/4] Update source/lmp/pppm_dplr.h Co-authored-by: Han Wang <92130845+wanghan-iapcm@users.noreply.github.com> Signed-off-by: HanswithCMY <167949665+HanswithCMY@users.noreply.github.com> --- source/lmp/pppm_dplr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lmp/pppm_dplr.h b/source/lmp/pppm_dplr.h index be16baf880..b7e221c686 100644 --- a/source/lmp/pppm_dplr.h +++ b/source/lmp/pppm_dplr.h @@ -28,7 +28,7 @@ class PPPMDPLR : public PPPM { ~PPPMDPLR() override {}; void init() override; const std::vector &get_fele() const { return fele; }; - std::vector *get_fele_pointer() { return &fele; } + std::vector &get_fele() { return fele; } protected: void compute(int, int) override;