My code for Assignment 7 compiles on the teach cluster, but when I run it I get the error:
terminate called after throwing an instance of 'netCDF::exceptions::NcHdfErr'
what(): NetCDF: HDF error
file: ncVar.cpp line:1468
Aborted
I has this error last week as well, but it stopped occurring without me changing my code, which makes me suspect there is something wrong with netcdf or hdf5 on my account in the teach cluster. Does anyone know what could be causing this? I am using "module load hdf5 netcdf" in the terminal, and-lnetcdf -lnetcdf_c++4 in my makefile.