FreePOOMA  2.4.1
Classes
DiskLayout.h File Reference

DiskLayout<Dim> manages the reading of the .layout file in a DiskField fileset and the communication between contexts necessary for each reading process to have full "layout" information. More...

#include "Domain/Interval.h"
#include <fstream>
#include <vector>
#include <string>
Include dependency graph for DiskLayout.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  DiskNode< Dim >
 Simple struct containing a context + domain, and a constructor that can construct these from an array of 6*Dim ints. More...
class  DiskLayout< Dim >
 Class encapsulating the reading of a "DiscField" .layout file. More...

Detailed Description

DiskLayout<Dim> manages the reading of the .layout file in a DiskField fileset and the communication between contexts necessary for each reading process to have full "layout" information.

The information in the .layout file is actually redundant and thus writing is handled by the same code that writes the .offset file.

NOTE: The current version assumes a single file-set being read from context 0. It is mostly coded for the general case, but we do not do the communication of the localNodes in order to calculate the allNodes set and we also need to broadcast some bools when things fail.

The file format is the same as that used by the POOMA r1 DiscField .layout file, designed by Bill Humphrey.