source: anuga_work/development/anugavis/src/sww_file.cc @ 5488

Last change on this file since 5488 was 5488, checked in by jack, 14 years ago

netcdf_file.* -> sww_file.*

File size: 339 bytes
Line 
1#include <string>
2#include <netcdf.h>
3#include "sww_file.hh"
4
5using std::string;
6
7SWWFile::SWWFile(const string &file_name){
8  int ncstatus;
9  if((ncstatus = nc_open(file_name.c_str(),
10                         NC_SHARE, &this->netcdf_id)) != NC_NOERR)
11    throw nc_strerror(ncstatus);
12}
13
14SWWFile::~SWWFile(void){
15  nc_close(this->netcdf_id);
16}
Note: See TracBrowser for help on using the repository browser.