    printf("nit=%d\n",nit);
    for (;simState.iterationNum<nit; simState.iterationNum++) 
    {
+      printFreeMem();
 
       if(percentComplete < 100 &&
          static_cast<int>(simState.iterationNum / percentSize) > percentComplete)

#include "simulation_state.h"
#include "typedefs.h"

int main(int argc, char *argv[])
{
   // Create output directory if necessary


   // Init Device
   DeviceStats &ref(DeviceStats::getRef());
   printFreeMem();


   PrecisionTimer iterationTimer;
