34 #include <boost/filesystem.hpp> 35 #include "Utils/clusterspecifier.h" 83 MPI_Offset startPointT, startPointZ, startPointY, startPointX;
85 int volumeY = Parallel::latticeFullSize()[0] * volumeX;
86 int volumeZ = Parallel::latticeFullSize()[1] * volumeY;
87 int volumeT = Parallel::latticeFullSize()[2] * volumeZ;
91 sprintf(fileName,
"%s/conf%04d.bin",
m_outputDir.c_str(), confNum);
94 for(
int t = 0; t < Parallel::latticeSubSize()[3]; t++){
95 startPointT = volumeT * ( Parallel::rankCoord()[3]*Parallel::latticeSubSize()[3] + t);
96 for(
int z = 0; z < Parallel::latticeSubSize()[2]; z++){
97 startPointZ = startPointT + volumeZ * ( Parallel::rankCoord()[2]*Parallel::latticeSubSize()[2] + z);
98 for(
int y = 0; y < Parallel::latticeSubSize()[1]; y++){
99 startPointY = startPointZ + volumeY * ( Parallel::rankCoord()[1]*Parallel::latticeSubSize()[1] + y);
100 for(
int x = 0; x < Parallel::latticeSubSize()[0]; x++){
101 startPointX = startPointY + volumeX * ( Parallel::rankCoord()[0]*Parallel::latticeSubSize()[0] + x);
Contains the definition of the Lattice class.
static void setOutputDir(std::string outputDir)
Sets the output directory path.
Class that represents the QCD field as an array of 4 SU3 lattices.
static int m_linkSize
Contains the size in bytes of a 4 links on a lattice site.
static std::string m_outputDir
The path of the output directory.
Contains classes for saving lattices to binary files.
Utilities for parallelization.
static void closeFile(MPI_File &file)
closes a file with MPI
static void writeConf(GluonField &lattice, int confNum)
Saves the given GluonField object to the ouput directory.
static void openFile(MPI_File &file, const char *fileName)
opens a file with MPI