[cig-commits] r11637 - short/3D/PyLith/trunk/libsrc/meshio

brad at geodynamics.org brad at geodynamics.org
Sun Mar 30 12:24:44 PDT 2008


Author: brad
Date: 2008-03-30 12:24:43 -0700 (Sun, 30 Mar 2008)
New Revision: 11637

Modified:
   short/3D/PyLith/trunk/libsrc/meshio/CellFilterAvg.cc
   short/3D/PyLith/trunk/libsrc/meshio/VertexFilterVecNorm.cc
Log:
Added flop tally.

Modified: short/3D/PyLith/trunk/libsrc/meshio/CellFilterAvg.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/CellFilterAvg.cc	2008-03-30 03:25:44 UTC (rev 11636)
+++ short/3D/PyLith/trunk/libsrc/meshio/CellFilterAvg.cc	2008-03-30 19:24:43 UTC (rev 11637)
@@ -98,6 +98,7 @@
 	fieldAvgCell[i] += wts[iQuad] / scalar * values[iQuad*fiberDim+i];
 
     _fieldAvg->updatePoint(*c_iter, &fieldAvgCell[0]);
+    PetscLogFlopsNoCheck( numQuadPts*fiberDim*3 );
   } // for
 
   return _fieldAvg;

Modified: short/3D/PyLith/trunk/libsrc/meshio/VertexFilterVecNorm.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/VertexFilterVecNorm.cc	2008-03-30 03:25:44 UTC (rev 11636)
+++ short/3D/PyLith/trunk/libsrc/meshio/VertexFilterVecNorm.cc	2008-03-30 19:24:43 UTC (rev 11637)
@@ -81,6 +81,7 @@
     norm = sqrt(norm);
 
     _fieldVecNorm->updatePoint(*v_iter, &norm);
+    PetscLogFlopsNoCheck( 1 + fiberDim*2 );
   } // for
 
   return _fieldVecNorm;



More information about the cig-commits mailing list