3 #ifndef NETCDF_FILE_IO_HANDLER_H
4 #define NETCDF_FILE_IO_HANDLER_H
7 #include "RBGen_FileIOHandler.hpp"
8 #include "RBGen_ConfigDefs.h"
68 int num_nodes, num_nod_var, len_string;
70 string in_path, out_path;
74 void handle_error(
int status ) {
75 if (status != NC_NOERR) {
76 fprintf(stderr,
"%s\n", nc_strerror(status));
84 #endif // NETCDF_FILE_IO_HANDLER_H
bool isInitialized() const
Return initialized status of the handler.
FileIOHandler for reading an Epetra_MultiVector from a NetCDF file.
Teuchos::RCP< Epetra_MultiVector > Read(const std::vector< std::string > &filenames)
Method for reading multiple files and putting them into an Epetra_MultiVector.
NetCDFFileIOHandler()
Default constructor.
void Write(const Teuchos::RCP< const Epetra_MultiVector > &MV, const std::string &filename)
Method for writing one Epetra_MultiVector into a file.
Abstract base class for reading datasets from files.
virtual ~NetCDFFileIOHandler()
Destructor.
void Initialize(const Teuchos::RCP< Teuchos::ParameterList > ¶ms)
Initialize file reader using.