1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-17 15:27:06 +01:00

Performance metrics for the Scalar Action force term

This commit is contained in:
Guido Cossu
2017-11-14 10:01:48 +00:00
parent e0cae833da
commit 1f1d77b01a
3 changed files with 53 additions and 15 deletions

View File

@ -168,7 +168,11 @@ class ScalarImplTypes {
static inline void update_field(Field &P, Field &U, double ep)
{
#ifndef USE_FFT_ACCELERATION
double t0=usecond();
U += P * ep;
double t1=usecond();
double total_time = (t1-t0)/1e6;
std::cout << GridLogIntegrator << "Total time for updating field (s) : " << total_time << std::endl;
#else
// FFT transform P(x) -> P(p)
// divide by (M^2+p^2) M external parameter (how to pass?)