45 #include <boost/mpi.hpp>
46 #include <netcdfcpp.h>
49 #include "RepastProcess.h"
50 #include "TDataSource.h"
51 #include "NCReducibleDataSource.h"
56 class NCDataSetBuilder;
69 std::vector<NCDataSource*> dataSources;
70 std::vector<double> ticks;
110 template<
typename Op>
130 template<
typename Op>
131 NCDataSource* createNCDataSource(std::string name, TDataSource<double>* doubleDataSource, Op op) {
132 return new NCReducibleDataSource<Op, double> (name, doubleDataSource, op);
Interface for class that act as datasoures for DataSets.
Definition: TDataSource.h:53
Source of data and a reduction operation.
Definition: NCReducibleDataSource.h:59
Data source used internally by NCDataSets.
Definition: NCDataSource.h:49
Used to build NCDataSets to record data in NetCDF format.
Definition: NCDataSetBuilder.h:62
The simulation schedule queue.
Definition: Schedule.h:173
void record()
Records the data.
Definition: NCDataSet.cpp:96
void close()
Closes the dataset, after which it must be recreated to be used.
Definition: NCDataSet.cpp:81
void write()
Writes the data.
Definition: NCDataSet.cpp:108
Interface for recording and writing data.
Definition: DataSet.h:49
Provides data recording and writing into a single file in NetCDF format.
Definition: NCDataSet.h:64