[MOAB-dev] netcdf nc_max_dims exceeded
Rajeev Jain
jain at mcs.anl.gov
Tue Nov 12 17:53:57 CST 2013
NetCDF has a limit of 1024 for NC_MAX_DIMS.
Why is this limit set at 1024?
Are there problems if I increase this limit?
Some background:
An h5m file can be successfully created by CoreGen program in MeshKit that has 300 + sidesets,
converting this .h5m file to exodus fails*, because it hits this limit while creating dist factors for sidesets (1859).
// sideset distribution factors
1855 int num_df_ss = -1;
1856 INS_ID(wname, "num_df_ss%d", index);
1857 if (nc_def_dim(ncFile, wname, (size_t)side_set.ss_dist_factors.size(), &num_df_ss) != NC_NOERR)
1858 {
1859 mWriteIface->report_error("WriteNCDF: failed to define number of dist factors in side set %d",
1860 side_set.id);
1861 return(MB_FAILURE); /* exit define mode and return */
1862 }
*mbconvert doesn't give an error and writes a files that seems to be of correct size. I get to see this error only in the debugger.
https://trac.mcs.anl.gov/projects/ITAPS/ticket/286
Rajeev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20131112/3872f26f/attachment-0001.html>
More information about the moab-dev
mailing list