From 0359d405802f295b933a93da9515a73eb9c17897 Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Wed, 14 Sep 2022 16:11:43 -0500 Subject: [PATCH] Added interpolation timing for the cpu version --- src/AMOEBA/amoeba_induce.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/AMOEBA/amoeba_induce.cpp b/src/AMOEBA/amoeba_induce.cpp index 01491a8708..90a52ca402 100644 --- a/src/AMOEBA/amoeba_induce.cpp +++ b/src/AMOEBA/amoeba_induce.cpp @@ -940,9 +940,16 @@ void PairAmoeba::umutual1(double **field, double **fieldp) double ****gridpost = (double ****) ic_kspace->post_convolution(); // get potential + double time0, time1; + + MPI_Barrier(world); + time0 = MPI_Wtime(); fphi_uind(gridpost,fdip_phi1,fdip_phi2,fdip_sum_phi); + time1 = MPI_Wtime(); + time_fphi_uind += (time1 - time0); + // store fractional reciprocal potentials for OPT method if (poltyp == OPT) {