printgeom.cc

Go to the documentation of this file.
00001 //  $Id: printgeom.cc,v 3.0 2006/04/03 04:59:13 edwards Exp $
00002 /*! \file
00003  *  \brief Print out machine geometry and problem size info
00004  */
00005 
00006 #include "chromabase.h"
00007 #include "util/info/printgeom.h"
00008 
00009 namespace Chroma {
00010 
00011 //! Print out machine geometry and problem size info
00012 /*!
00013  * \ingroup info
00014  *
00015  * Arguments:
00016  *
00017  *  \param xml          The xml stream to write the info
00018  */
00019 
00020 void printgeom(XMLWriter& xml)
00021 {
00022   START_CODE();
00023 
00024   push(xml,"Setgeom");
00025   write(xml,"latt_size",Layout::lattSize());
00026   write(xml,"logical_size",Layout::logicalSize());
00027   write(xml,"subgrid_size",Layout::subgridLattSize());
00028   write(xml,"total_volume",Layout::vol());
00029   write(xml,"subgrid_volume",Layout::sitesOnNode());
00030   pop(xml);
00031 
00032   END_CODE();
00033 }
00034 
00035 }  // end namespace Chroma

Generated on Sun Mar 14 04:33:49 2010 for CHROMA by  doxygen 1.4.7