[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #PXO-118189]: Segmentation fault C++
- Subject: [netCDF #PXO-118189]: Segmentation fault C++
- Date: Wed, 13 Dec 2017 14:48:50 -0700
A couple of questions.
1. Are you using netcdf-3 or netcdf4?
2. Can you post your program here as an email attachment?
>
> I am using netCDF in C++. With relative small arrays everything works
> fine. But when I try to use an 4D array with 7*10^6 floats (it is also
> failing with a 1D array), I get segmentation fault error in that line,
> where I declared my array. I would like to allocate the array in the
> heap, but the function for writing the netcdf data in the array (e.g.,
> data->get(&dataIn[0][0], NX, NY) as in simple_xy_rd.cpp) is only working
> with "normal" arrays. Is there any way to do this with allocated arrays?
>
> Best regards,
> Lisa Mittelstaedt
>
>
=Dennis Heimbigner
Unidata
Ticket Details
===================
Ticket ID: PXO-118189
Department: Support netCDF
Priority: Normal
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata
inquiry tracking system and then made publicly available through the web. If
you do not want to have your interactions made available in this way, you must
let us know in each email you send to us.