<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>So it seems that in newer releases, they removed this limit<br>https://bugtracking.unidata.ucar.edu/browse/NCF-71<br>This limit is removed in c based netcdf version 4.3.0; right now, we are configuring with 4.0.1 :) too old<br>We can either change the limits before recompiling netcdf or move to a newer version of netcdf.<br><br>During our configuration of moab , we test if netcdf library supports more than 65536 dimensions in a file. the configure answer is no :).<br><br>....<br>configure:29995: $? = 0<br>configure:29995: result: yes<br>configure:29995: checking for netcdf.h<br>configure:29995: result: yes<br>configure:30006: checking if NC_MAX_DIMS is at least 65536<br>....<br>|    int FC_DUMMY_MAIN() { return 1; }<br>| #endif<br>| #endif<br>| int<br>| main ()<br>| {<br>| int arr[1 + (int)(NC_MAX_DIMS) - (int)(65536)];<br>|   ;<br>|   return 0;<br>| }<br>configure:30031: result: no<br><br>in configure.ac, we have a special paragraph and warning for this problem:<br><br>*************************************************************************])<br>elif test "xno" = "x$NETCDF_SUFFICIENT_DIMS_VARS"; then<br>  AC_MSG_WARN([<br>*************************************************************************<br>*  The configured NetCDF library does not have sufficient constant limits<br>*  to support reading of ExodusII with large numbers of blocks or sidesets<br>*  or nodesets.  Please consider re-compiling your NetCDF library after<br>*  increasing the constants NC_MAX_DIMS and NC_MAX_VARS in netcdf.h to<br>*  65536 and 524288, respectively.  See:<br>*  http://cubit.sandia.gov/help-version11.1/finite_element_model/export/exporting_exodus2_file.htm<br><br><br><br><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><span style="background-color: transparent; font-size: 10pt;">NetCDF has a limit of 1024 for NC_MAX_DIMS. </span></div><div style="color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent; font-size: 10pt;">Why is this limit set at 1024?</span></div><div style="color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent; font-size: 10pt;">Are there problems if I increase this limit?</span></div><div style="color: rgb(0, 0, 0); font-size: 10pt; font-family:
 HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent; font-size: 10pt;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Some background:</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">An h5m file can be successfully created by CoreGen program in MeshKit that has 300 + sidesets, </div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">converting this .h5m file to exodus fails*,
 because it hits this limit while creating dist factors for sidesets (1859).</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">  //  sideset distribution factors</div><div>1855       int num_df_ss = -1;</div><div>1856       INS_ID(wname, "num_df_ss%d", index);</div><div>1857       if (nc_def_dim(ncFile, wname, (size_t)side_set.ss_dist_factors.size(), &num_df_ss) != NC_NOERR)</div><div>1858       {</div><div>1859         mWriteIface->report_error("WriteNCDF: failed to define number of dist factors in side set %d",</div><div>1860                                   side_set.id);</div><div>1861    
     return(MB_FAILURE);          /* exit define mode and return */</div><div>1862       }</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">*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.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><a href="https://trac.mcs.anl.gov/projects/ITAPS/ticket/286" target="_blank">https://trac.mcs.anl.gov/projects/ITAPS/ticket/286</a><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
 background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Rajeev</div></div></blockquote><br></div></body></html>