ESCOMP / CISM

Community Ice Sheet Model
GNU Lesser General Public License v3.0
6 stars 11 forks source link

writestats.c fails with intel/2023.0.0 icx compiler #54

Closed jedwards4b closed 1 year ago

jedwards4b commented 1 year ago

The following error was encountered when compiling writestats.c, adding header file as suggested solves the problem.

/glade/work/jedwards/sandboxes/cesm2_x_alpha/components/cism/source_cism/libglimmer/writestats.c:70:10: error: call to undeclared library function 'isalnum' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  while (isalnum(resfname[i]) && i < CFG_LEN) i++;
         ^
/glade/work/jedwards/sandboxes/cesm2_x_alpha/components/cism/source_cism/libglimmer/writestats.c:70:10: note: include the header <ctype.h> or explicitly provide a declaration for 'isalnum'
1 error generated.
jedwards4b commented 1 year ago

This change is needed for the port to NCAR's new derecho system. Is anyone monitoring this repo?