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

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

netcdf_file.* -> sww_file.*

File size: 339 bytes
RevLine 
[5487]1#include <string>
2#include <netcdf.h>
[5488]3#include "sww_file.hh"
[5487]4
5using std::string;
6
[5488]7SWWFile::SWWFile(const string &file_name){
[5487]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
[5488]14SWWFile::~SWWFile(void){
[5487]15  nc_close(this->netcdf_id);
16}
Note: See TracBrowser for help on using the repository browser.