| 1 |
2008-02-21 Charlie Zender <[email protected]> |
| 2 |
|
| 3 |
* Transplant chunks of nco_typ.h into nco_utl.hh to make |
| 4 |
libnco_c++ forward-backward compatible with netCDF3/netCDF4. |
| 5 |
Mainly this was done because of need for opaque types--- |
| 6 |
links to C-version of netCDF functions were not necessary. |
| 7 |
Now libnco_c++ can use nco_byte, nco_ubyte, NC_UINT, NCO_UBYTE_SNG |
| 8 |
fearlessly in same manner as NCO. |
| 9 |
|
| 10 |
2006-05-16 Charlie Zender <[email protected]> |
| 11 |
|
| 12 |
* Add rcd_opt test to tst.cc. rcd_opt test seems to work in tst. |
| 13 |
Not sure why errors with mie on other machines. |
| 14 |
|
| 15 |
* Found bug in libnco_c++: library does incorrectly initializes |
| 16 |
function parameters which default to CPP macros, e.g., NC_NOERR. |
| 17 |
These parameters cannot be over-ridden by non-default values. |
| 18 |
Same problems occurs whether passing rcd_opt as reference or not. |
| 19 |
Attempting to fix bug by creating named constant with global |
| 20 |
library visibility. |
| 21 |
|
| 22 |
2005-01-09 Charlie Zender <[email protected]> |
| 23 |
|
| 24 |
* cvs tag -c nco_c++-0_1_8 mie c++ nco/src/nco_c++ |
| 25 |
Changes since nco_c++-0_1_7: default to gcc/g++ 3.4, netCDF 3.6 |
| 26 |
|
| 27 |
* Sundry tweaks to fix NCO, mie, c++ code to all work with gcc/g++ |
| 28 |
3.4 and netCDF 3.6 and netCDF 2.9.9+ and AMD64. Everything appears |
| 29 |
to work again with these new defaults on i686, Opteron, and AIX. |
| 30 |
|
| 31 |
* Added redundant prototypes of nco_inq_varid() to two overloaded |
| 32 |
nco_get_att() functions in nco_att.hh in order to satisfy new, |
| 33 |
more finicky g++-3.4 complaints about declarations of |
| 34 |
non-templated functions. |
| 35 |
|
| 36 |
This appears to do no harm but is worrisome because I do not like |
| 37 |
proliferation of redundant function prototypes, yet can see no |
| 38 |
other solution except for increasing number of .hh headers to |
| 39 |
eliminate circular references. TODO #14 and #15. |
| 40 |
|
| 41 |
2004-09-20 Charlie Zender <[email protected]> |
| 42 |
|
| 43 |
* cvs tag -c nco_c++-0_1_7 mie c++ nco/src/nco_c++ |
| 44 |
Changes since nco_c++-0_1_6: nco_put_vara_crd() interface, compiler tweaks |
| 45 |
|
| 46 |
2004-09-17 Charlie Zender <[email protected]> |
| 47 |
|
| 48 |
* Added nco_put_vara_crd() to handle writing coordinates |
| 49 |
Coordinates should always be written with this routine |
| 50 |
|
| 51 |
* Begin adding overloaded definitions for nco_put_vara() functions |
| 52 |
nco_put_vara_float() and nco_put_vara_double() are now covered with |
| 53 |
functions that pass valarrays or size_t vectors, and may be |
| 54 |
referenced either by variable ID or by variable name string. |
| 55 |
|
| 56 |
2004-07-07 Charlie Zender <[email protected]> |
| 57 |
|
| 58 |
* nco_att.cc: Manually NUL-terminate retrieved text attributes in |
| 59 |
nco_get_att() so that non-NUL-terminated attributes get correctly |
| 60 |
copied into returned string value. |
| 61 |
|
| 62 |
2004-07-05 Charlie Zender <[email protected]> |
| 63 |
|
| 64 |
* Added nco_wrn_prn() to standardize printing warnings |
| 65 |
|
| 66 |
2004-06-27 Charlie Zender <[email protected]> |
| 67 |
|
| 68 |
* Makefile.old: MY_*_DIRS now check environment first to allow for |
| 69 |
completely relocatable builds |
| 70 |
|
| 71 |
* Makefile.old: Update AIX compiler flags, fix -spill=2048 option |
| 72 |
|
| 73 |
* Working toward compiling on AIX with -qtemplateregistry option |
| 74 |
to fix ld duplicate symbol warnings |
| 75 |
|
| 76 |
2004-06-25 Charlie Zender <[email protected]> |
| 77 |
|
| 78 |
* Compiling libnco_c++ standalone from rest of NCO: |
| 79 |
Check out nco_c++ source code alone: |
| 80 |
cvs -z3 -d:pserver:[email protected]:/cvsroot/nco co -kk -d nco_c++ nco/src/nco_c++ |
| 81 |
cd nco_c++ |
| 82 |
bash # Create new shell to sandbox environment changes |
| 83 |
alias make='gmake' |
| 84 |
make -f Makefile.old dst_cln |
| 85 |
export MY_BIN_DIR='.' |
| 86 |
export MY_BLD_DIR='.' |
| 87 |
export MY_LIB_DIR='.' |
| 88 |
export MY_OBJ_DIR='.' |
| 89 |
export MY_DAT_DIR='~/nco/data' |
| 90 |
export MY_DOC_DIR='.' |
| 91 |
export MY_DPN_DIR='.' |
| 92 |
export MY_INC_DIR='.' |
| 93 |
make -f Makefile.old |
| 94 |
make -f Makefile.old test |
| 95 |
exit # exit new shell |
| 96 |
|
| 97 |
2004-06-20 Charlie Zender <[email protected]> |
| 98 |
|
| 99 |
* cvs tag -c nco_c++-0_1_6 mie c++ nco/src/nco_c++ |
| 100 |
Changes since nco_c++-0_1_5: Support more put_att attribute types |
| 101 |
|
| 102 |
* Fix ambiguity in nco_put_att<float &> |
| 103 |
|
| 104 |
2004-06-19 Charlie Zender <[email protected]> |
| 105 |
|
| 106 |
* Add nco_put_att<int,short,long> functions |
| 107 |
|
| 108 |
2004-03-11 Charlie Zender <[email protected]> |
| 109 |
|
| 110 |
* Print variable names when writes fail |
| 111 |
|
| 112 |
2002-09-16 Charlie Zender <[email protected]> |
| 113 |
|
| 114 |
* Implement HAVE_CSTDLIB check to get around lack of SGI CC <cstdlib> |
| 115 |
|
| 116 |
2002-09-04 Charlie Zender <[email protected]> |
| 117 |
|
| 118 |
* tst.cc (main): Cast c-strings in trigraph initializers to |
| 119 |
std::strings to make Sun CC happy that both options are same type |
| 120 |
|
| 121 |
2002-09-02 Charlie Zender <[email protected]> |
| 122 |
|
| 123 |
* cvs tag -c nco_c++-0_1_5 |
| 124 |
Changes since nco_c++-0_1_4: Comeau support, type-consistent |
| 125 |
initialization |
| 126 |
|
| 127 |
* libnco_cxx and tst build and execute correctly with Comeau |
| 128 |
compiler |
| 129 |
|
| 130 |
2002-09-01 Charlie Zender <[email protected]> |
| 131 |
|
| 132 |
* Fix errors flagged by Comeau como compiler: |
| 133 |
1. Include cstdlib to get std::exit, std::abort |
| 134 |
2. Initialize size_t *, int * with real pointers not NULL |
| 135 |
|
| 136 |
2002-08-23 Charlie Zender <[email protected]> |
| 137 |
|
| 138 |
* SGI IRIX CC does not support std::exit nor have cstdlib, so |
| 139 |
must workaround that. |
| 140 |
|
| 141 |
2002-08-10 Charlie Zender <[email protected]> |
| 142 |
|
| 143 |
* cvs tag -c nco_c++-0_1_4 |
| 144 |
Changes since nco_c++-0_1_3: Long double support in get/put routines |
| 145 |
|
| 146 |
* Added long double type to nco_get/put_var routines and to tst. |
| 147 |
Appears to work |
| 148 |
|
| 149 |
2002-02-11 Charlie Zender <[email protected]> |
| 150 |
|
| 151 |
* Added GPL copyright statements to all files |
| 152 |
|
| 153 |
2002-02-05 Charlie Zender <[email protected]> |
| 154 |
|
| 155 |
* nco_var.hh (file): Added <short> and <short *> types to |
| 156 |
nco_put_var() based on entirely <long> and <int> functions. |
| 157 |
zfm, which uses shorts, now compiles. |
| 158 |
|
| 159 |
2002-01-26 Charlie Zender <[email protected]> |
| 160 |
|
| 161 |
* Built and tested with Linux icc |
| 162 |
|
| 163 |
2002-01-11 Charlie Zender <[email protected]> |
| 164 |
|
| 165 |
* Announce on netcdf list |
| 166 |
|
| 167 |
* cvs tag -c nco_c++-0_1_3 |
| 168 |
|
| 169 |
* Remove now duplicated in.cdl and modify Makefile paths to know |
| 170 |
about NCO directory structure |
| 171 |
|
| 172 |
* Moved nco_c++ to nco/src/nco_c++ subdirectory of Sourceforge NCO |
| 173 |
module |
| 174 |
|
| 175 |
2001-11-04 Charlie Zender <[email protected]> |
| 176 |
|
| 177 |
* cvs tag -c nco_c++-0_1_2 nco_c++ c++ mie |
| 178 |
|
| 179 |
* Compilation and linking is now successful on AIX. |
| 180 |
Test program completes successful so this the first "port" of |
| 181 |
the library to non-Linux system has been accomplished. |
| 182 |
|
| 183 |
* nco_var.hh: Using "typename" instead of "class" solved some, but |
| 184 |
not all AIX compiler warnings. Prefixing typename to std::valarray |
| 185 |
in parameter lists solved the remaining "typename" warnings. |
| 186 |
I am not sure if this is ISO standard requirement or what as |
| 187 |
most books are sketchy on when to use "typename". |
| 188 |
|
| 189 |
2001-11-02 Charlie Zender <[email protected]> |
| 190 |
|
| 191 |
* nco_var.hh: AIX xlC compiler requires use of "typename" |
| 192 |
instead of "class" for template dependent names that are |
| 193 |
types, such as valarrays in nco_put_var(). GCC will work |
| 194 |
with either "typename" or "class". So we use typename. |
| 195 |
Not sure what ISO standard says. |
| 196 |
|
| 197 |
2001-10-29 Charlie Zender <[email protected]> |
| 198 |
|
| 199 |
* nco_var.hh: Removed redundant template prototypes |
| 200 |
|
| 201 |
2001-10-18 Charlie Zender <[email protected]> |
| 202 |
|
| 203 |
* cvs tag -c nco_c++-0_1_1 nco_c++ c++ mie |
| 204 |
Changes since nco_c++-0_1: Self-contained code. |
| 205 |
Distribution is now in alpha state and ready for outside |
| 206 |
participation. |
| 207 |
|
| 208 |
* tst.cc: Pared out all non-netCDF junk and dependencies |
| 209 |
so test file should now build on most systems |
| 210 |
|
| 211 |
* Makefile (MY_DAT_DIR): Hacked to build in.cdl and tst |
| 212 |
|
| 213 |
2001-10-17 Charlie Zender <[email protected]> |
| 214 |
|
| 215 |
* cvs tag -c nco_c++-0_1 nco_c++ c++ mie |
| 216 |
Changes since mie-2_5_7: Migrated from c++ directory, |
| 217 |
new module stuff |
| 218 |
|
| 219 |
* Makefile: Stripped down c++ Makefile to build libnco_c++ only |
| 220 |
|
| 221 |
* Created README, TODO, moved all libnco_c++ sources into |
| 222 |
own directory and created CVS module nco_c++ which will continue |
| 223 |
to be co-tagged with modules c++ and mie |
| 224 |
|
| 225 |
2001-10-15 Charlie Zender <[email protected]> |
| 226 |
|
| 227 |
* nco.cc: Call nco_inq_dimid() not nco_inq_dimlen() |
| 228 |
|
| 229 |
2001-10-14 Charlie Zender <[email protected]> |
| 230 |
|
| 231 |
* cvs tag -c mie-2_5_8 c++ mie |
| 232 |
Changes since mie-2_5_7: new netCDF I/O library replacement |
| 233 |
appears to be working, and complete for all current programs. |
| 234 |
get_vara, put_vara, get_varm, put_varm are not yet implemented. |
| 235 |
|
| 236 |
* Moved libcsm_c++ to before libnco_c++ in linking (placing leaves |
| 237 |
at end) |
| 238 |
|
| 239 |
* nco_var_dfn now calls nco_redef() safely |
| 240 |
|
| 241 |
* nco_hgh.cc: created nco_hgh.cc for high level utilities |
| 242 |
Put nco_var_dfn there so that programs like slr_spc can use |
| 243 |
the var_mtd_sct infrastructure without linking to libcsm_c++ |
| 244 |
|
| 245 |
* nco_var.hh (attributes): Templatized another slew of put_var |
| 246 |
functions. |
| 247 |
|
| 248 |
* nco_dmn.cc: Fixed about 6 overloads that return rcd instead of |
| 249 |
values like dmn_nbr, var_val, att_nbr. |
| 250 |
|
| 251 |
* Makefile (CPP_TKN): Added -DNO_NETCDF_2 |
| 252 |
|
| 253 |
* Implement abort() on netCDF errors with -DABORT_ON_ERROR |
| 254 |
|
| 255 |
* Output var,dmn,att name for failed, fatal inquires |
| 256 |
|
| 257 |
2001-10-13 Charlie Zender <[email protected]> |
| 258 |
|
| 259 |
* nco_var.cc: Fixed bug where starting corner was 1,1,...1 not 0,0,..0 |
| 260 |
|
| 261 |
* Makefile (CPPFLAGS): Added VRS_SNG and VERSION features |
| 262 |
|
| 263 |
* cvs tag -c mie-2_5_7 c++ mie |
| 264 |
Changes since mie-2_5_6: More attribute overloads |
| 265 |
Fixed namespace usage in libnco_c++ so compilation is cleaner, but |
| 266 |
still unsuccessful, on AIX and ALPHA. |
| 267 |
|
| 268 |
* nco_att.cc: Having difficult problems with nco_put_att() |
| 269 |
overloads for single element attributes. Not sure why. |
| 270 |
|
| 271 |
* Makefile (CFLAGS): Added -Wno-unused to disable warnings for |
| 272 |
unused variables |
| 273 |
|
| 274 |
2001-10-12 Charlie Zender <[email protected]> |
| 275 |
|
| 276 |
* Added optional att_typ to put_att functions |
| 277 |
|
| 278 |
* Added most overloaded inq_att() and inq_var() functions |
| 279 |
|
| 280 |
* Moved all template functions into .hh files |
| 281 |
|
| 282 |
2001-10-11 Charlie Zender <[email protected]> |
| 283 |
|
| 284 |
* Marathon session of adding almost every conceivable overload |
| 285 |
needed for working libnco. Translated all old C++ interface to |
| 286 |
new interface in all C++ code. Removed libnetcdf_c++ linking and |
| 287 |
dependencies. Just need to write a few get_att() functions and |
| 288 |
ready to compile. |
| 289 |
|
| 290 |
2001-10-10 Charlie Zender <[email protected]> |
| 291 |
|
| 292 |
* cvs tag -c mie-2_5_6 c++ mie |
| 293 |
Changes since mie-2_5_5: More diagnostic utility functions |
| 294 |
|
| 295 |
* nco_utl.cc: Added NCO utilties nco_typ_lng(), nco_typ_sng(), |
| 296 |
nco_c_typ_sng(), nco_ftn_typ_sng() |
| 297 |
|
| 298 |
* cvs tag -c mie-2_5_5 c++ mie |
| 299 |
Changes since mie-2_5_4: New C++ netCDF interface for input file |
| 300 |
|
| 301 |
* Re-coded input of in.nc to use new interface, appears to work |
| 302 |
|
| 303 |
* Finally, tied it all together by implementing one line routines |
| 304 |
to return entire variables based on single line string name input. |
| 305 |
This keeps the code required by my C++ interface to about the same |
| 306 |
size as that required by the old, standard, Unidata C++ interface. |
| 307 |
|
| 308 |
* Wrote a number of super-convenience routines to return values |
| 309 |
based on string inputs. This allows things like dimension lengths |
| 310 |
to be returned as const based on dimension name in just one line. |
| 311 |
|
| 312 |
* Wrote a number of convenience routines to return values rather |
| 313 |
than error codes. This enables simple, one-line, definitions of |
| 314 |
things like dimension IDs, file IDs, dimension lengths, as const |
| 315 |
variables. |
| 316 |
|
| 317 |
2001-10-09 Charlie Zender <[email protected]> |
| 318 |
|
| 319 |
* cvs tag -c mie-2_5_4 c++ mie |
| 320 |
mie-2_5_4 is a synchronization checkin of the last working version |
| 321 |
before adopting new overloaded C++ interface to netCDF 3.X API |
| 322 |
|
| 323 |
* nco_var.hh (file): Added 4 get_var() overloads, and |
| 324 |
nco_get_var_sz() to compute sizes of variables. |
| 325 |
Rudimentary ability now exists to define, inquire, read and write |
| 326 |
datasets. |
| 327 |
|
| 328 |
* cvs tag -c mie-2_5_3 c++ mie |
| 329 |
Changes since mie-2_5_2: No user-visible changes |
| 330 |
|
| 331 |
2001-10-08 Charlie Zender <[email protected]> |
| 332 |
|
| 333 |
* Created libnco_c++.hh to contain the nco_???.hh files |
| 334 |
|
| 335 |
* Broke nco_att.cc into nco_utl.cc, nco_fl.cc, nco_dmn.cc, |
| 336 |
nco_var.cc, and nco_att.cc |
| 337 |
|
| 338 |
* nco_att.cc: Added 2 overloaded def_var() functions |
| 339 |
|
| 340 |
* cvs tag -c mie-2_5_2 c++ mie |
| 341 |
Changes since mie-2_5_1: No user-visible changes |
| 342 |
|
| 343 |
* Makefile: Modify for libnco_c++.a |
| 344 |
|
| 345 |
* nco_att.cc: nco_att has 3 nearly working overloaded put_att functions |
| 346 |
|
| 347 |
* nco_att.hh (file): Added nco_att.hh and nco_att.cc to handle |
| 348 |
C++ wrappers for netCDF3.X C-interface. |
| 349 |
|
| 350 |
2001-09-06 Charlie Zender <[email protected]> |
| 351 |
|
| 352 |
* ccc.cc (main): Using prc_cmp==double appears to work except for |
| 353 |
netCDF I/O issues, may need to write own overloaded class, or use |
| 354 |
alternate C++ implementation based on netCDF 3 with automatic type |
| 355 |
conversion for both input and output (as does Fortran90 interface!) |