MAXNC (i.e. the maximum number of data descriptors within Section 3 of a BUFR message) is one of the few remaining global variables that is fixed at compile time as a parameter in modules_vars.F90, rather than being configurable at run time via a call to isetprm().
This should probably be changed to make it configurable at run time. Since MAXNC is also used within the C portion of the library, then the similar global variables MAXCD and NFILES would provide a good example of how to do this.
MAXNC (i.e. the maximum number of data descriptors within Section 3 of a BUFR message) is one of the few remaining global variables that is fixed at compile time as a parameter in modules_vars.F90, rather than being configurable at run time via a call to isetprm().
This should probably be changed to make it configurable at run time. Since MAXNC is also used within the C portion of the library, then the similar global variables MAXCD and NFILES would provide a good example of how to do this.