CHROMA
readcern.h
Go to the documentation of this file.
1 
2 /*! \file
3  * \brief Read in a configuration written in CERN format.
4  */
5 
6 #ifndef __readcern_h__
7 #define __readcern_h__
8 
9 #include "io/cern_io.h"
10 
11 namespace Chroma {
12 
13  // Read gauge field in CERN format into "u".
14  // Details about CERN format:
15  // - little endian, ints are 4 bytes, doubles are 8 bytes
16  // - 4 ints NT,NX,NY,NZ
17  // - 1 double for average plaquette
18  // - links as SU3 matrices (row major, double precision complex)
19  // in the following order:
20  // - the 8 links in directions +0,-0,...,+3,-3 at the first
21  // odd point, the second odd point, and so on.
22  // - The order of the point (x0,x1,x2,x3) with
23  // Cartesian coordinates in the range
24  // 0<=x0<N0,...,0<=x3<N3 is determined by the index
25  // ix=x3+N3*x2+N2*N3*x1+N1*N2*N3*x0,
26  // where N0,N1,N2,N3 are the global lattice sizes
27 
28 
29 void readCERN(multi1d<LatticeColorMatrix>& u, const std::string& cfg_file);
30 
31 
32 } // end namespace Chroma
33 
34 #endif
CPPACS gauge format routines.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
static multi1d< LatticeColorMatrix > u
void readCERN(multi1d< LatticeColorMatrix > &, const std::string &)
Definition: readcern.cc:223
::std::string string
Definition: gtest.h:1979