RepastHPC
2.3.1
|
Used to build NCDataSets to record data in NetCDF format. More...
#include <NCDataSetBuilder.h>
Public Member Functions | |
NCDataSetBuilder (std::string file, const Schedule &schedule) | |
Creates an NCDataSetBuilder that will write to the specified file and get its tick counts from the specified schedule. More... | |
NCDataSetBuilder & | addDataSource (NCDataSource *source) |
Adds a NCDataSource to this NCDataSetBuilder. More... | |
NCDataSet * | createDataSet () |
Creates the NCDataSet defined by this NCDataSetBuilder. More... | |
Used to build NCDataSets to record data in NetCDF format.
Steps for use are:
repast::NCDataSetBuilder::NCDataSetBuilder | ( | std::string | file, |
const Schedule & | schedule | ||
) |
Creates an NCDataSetBuilder that will write to the specified file and get its tick counts from the specified schedule.
file | the name of the file to write to. Only rank 0 will actually write to this file. |
schedule | the schedule to get tick counts from |
NCDataSetBuilder & repast::NCDataSetBuilder::addDataSource | ( | NCDataSource * | source | ) |
Adds a NCDataSource to this NCDataSetBuilder.
The added NCDataSource defines a variable and where the data for that variable will be retrieved. Recording data on the NCDataSet produced by this builder will record this data for each variable.
NCDataSet * repast::NCDataSetBuilder::createDataSet | ( | ) |
Creates the NCDataSet defined by this NCDataSetBuilder.
The caller is responsible for properly deleting the returned pointer.