Changeset 5502 for anuga_work
- Timestamp:
- Jul 15, 2008, 3:02:41 PM (17 years ago)
- Location:
- anuga_work/development/anugavis/src
- Files:
-
- 2 added
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/anugavis/src/Makefile.am
r5488 r5502 13 13 globals.c \ 14 14 globals.h \ 15 height_quantity .c \15 height_quantity_c.c \ 16 16 height_quantity.h \ 17 17 init.c \ … … 25 25 libanugavis_cxx_a_SOURCES = anugavis.cc \ 26 26 anugavis.hh \ 27 height_quantity.cc \ 28 height_quantity.hh \ 27 29 output.cc \ 28 30 output.hh \ -
anuga_work/development/anugavis/src/sww_file.cc
r5493 r5502 38 38 } 39 39 40 41 int SWWFile::nc_inq_varndims_by_name(const string &name) const{ 42 int ncstatus; 43 int dimid; 44 int ndims; 45 if(((ncstatus = nc_inq_dimid(this->netcdf_id, 46 name.c_str(), &dimid)) != NC_NOERR) || 47 ((ncstatus = nc_inq_varndims(this->netcdf_id, 48 dimid, &ndims)) != NC_NOERR)) 49 throw nc_strerror(ncstatus); 50 return ndims; 51 } 52 40 53 void SWWFile::compute_extents(void){ 41 54 this->minX = this->x[0]; … … 51 64 } 52 65 53 void SWWFile::nc_get_var_float_by_name(const string &name, float array[]) {66 void SWWFile::nc_get_var_float_by_name(const string &name, float array[]) const{ 54 67 int ncstatus; 55 68 int varid; … … 61 74 } 62 75 63 void SWWFile::nc_get_var_int_by_name(const string &name, int array[]) {76 void SWWFile::nc_get_var_int_by_name(const string &name, int array[]) const{ 64 77 int ncstatus; 65 78 int varid; … … 71 84 } 72 85 73 size_t SWWFile::nc_inq_dimlen_by_name(const string &name) {86 size_t SWWFile::nc_inq_dimlen_by_name(const string &name) const{ 74 87 int ncstatus; 75 88 int dimid; -
anuga_work/development/anugavis/src/sww_file.hh
r5493 r5502 21 21 SWWFile(const string &file_name); 22 22 ~SWWFile(void); 23 int nc_inq_varndims_by_name(const string &name) const; 23 24 private: 25 void nc_get_var_float_by_name(const string &name, float array[]) const; 26 void nc_get_var_int_by_name(const string &name, int array[]) const; 27 size_t nc_inq_dimlen_by_name(const string &name) const; 24 28 void compute_extents(void); 25 void nc_get_var_float_by_name(const string &name, float array[]);26 void nc_get_var_int_by_name(const string &name, int array[]);27 size_t nc_inq_dimlen_by_name(const string &name);28 29 int netcdf_id; 29 30 int number_of_points;
Note: See TracChangeset
for help on using the changeset viewer.