| 61 |
|
enum OutputDataType { |
| 62 |
|
odtReal, |
| 63 |
|
odtVector3, |
| 64 |
+ |
odtArray2d, |
| 65 |
|
odtUnknownDataType |
| 66 |
|
}; |
| 67 |
|
|
| 78 |
|
OutputDataType dataType; |
| 79 |
|
OutputDataHandling dataHandling; |
| 80 |
|
vector<BaseAccumulator*> accumulator; |
| 81 |
+ |
vector<vector<BaseAccumulator*> > accumulatorArray2d; |
| 82 |
|
}; |
| 83 |
< |
|
| 83 |
> |
|
| 84 |
|
class SpatialStatistics : public StaticAnalyser { |
| 85 |
|
|
| 86 |
|
public: |
| 98 |
|
OutputData* beginOutputData(vector<OutputData*>::iterator& i); |
| 99 |
|
OutputData* nextOutputData(vector<OutputData*>::iterator& i); |
| 100 |
|
void writeData(ostream& os, OutputData* dat, unsigned int bin); |
| 101 |
< |
void writeStdDev(ostream& os, OutputData* dat, unsigned int bin); |
| 101 |
> |
void writeErrorBars(ostream& os, OutputData* dat, unsigned int bin); |
| 102 |
|
|
| 103 |
|
Snapshot* currentSnapshot_; |
| 104 |
|
int nProcessed_; |
| 109 |
|
OutputData* counts_; |
| 110 |
|
vector<OutputData*> data_; |
| 111 |
|
}; |
| 112 |
< |
|
| 112 |
> |
|
| 113 |
|
class SlabStatistics : public SpatialStatistics { |
| 114 |
|
public: |
| 115 |
|
SlabStatistics(SimInfo* info, const string& filename, const string& sele, int nbins); |