MsmTimer Class Reference

List of all members.

Public Types

 ANTERP = 0
 INTERP
 RESTRICT
 PROLONGATE
 GRIDCUTOFF
 COMM
 MAX
enum  {
  ANTERP = 0, INTERP, RESTRICT, PROLONGATE,
  GRIDCUTOFF, COMM, MAX
}

Public Member Functions

 MsmTimer ()
void done (double tm[], int n)
void print ()

Public Attributes

double timing [MAX]

Detailed Description

Definition at line 292 of file ComputeMsm.C.


Member Enumeration Documentation

anonymous enum

Enumerator:
ANTERP 
INTERP 
RESTRICT 
PROLONGATE 
GRIDCUTOFF 
COMM 
MAX 

Definition at line 294 of file ComputeMsm.C.


Constructor & Destructor Documentation

MsmTimer::MsmTimer (  )  [inline]

Definition at line 296 of file ComputeMsm.C.

References MAX, and timing.

00296                {
00297       for (int i = 0;  i < MAX;  i++)  timing[i] = 0;
00298     }


Member Function Documentation

void MsmTimer::done ( double  tm[],
int  n 
) [inline]

Definition at line 299 of file ComputeMsm.C.

References MAX, print(), and timing.

00299                                   {
00300       for (int i = 0;  i < MAX;  i++)  timing[i] = tm[i];
00301       print();
00302     }

void MsmTimer::print (  )  [inline]

Definition at line 303 of file ComputeMsm.C.

References ANTERP, COMM, GRIDCUTOFF, INTERP, PROLONGATE, RESTRICT, and timing.

Referenced by done().

00303                  {
00304       CkPrintf("MSM timings:\n");
00305       CkPrintf("   anterpolation   %8.6f sec\n", timing[ANTERP]);
00306       CkPrintf("   interpolation   %8.6f sec\n", timing[INTERP]);
00307       CkPrintf("   restriction     %8.6f sec\n", timing[RESTRICT]);
00308       CkPrintf("   prolongation    %8.6f sec\n", timing[PROLONGATE]);
00309       CkPrintf("   grid cutoff     %8.6f sec\n", timing[GRIDCUTOFF]);
00310       CkPrintf("   communication   %8.6f sec\n", timing[COMM]);
00311     }


Member Data Documentation

double MsmTimer::timing[MAX]

Definition at line 313 of file ComputeMsm.C.

Referenced by done(), MsmTimer(), and print().


The documentation for this class was generated from the following file:
Generated on Thu Nov 23 01:17:19 2017 for NAMD by  doxygen 1.4.7