@@ -340,15 +340,15 @@ int scorpio_write_var(e3sm_io_driver &driver,
340340#define PUT_ATTR_FILL (val ) { \
341341 if (varp->xType == NC_FLOAT) { \
342342 float buf = (float )val; \
343- err = driver.put_att (ncid,varp->vid ,_FillValue,varp->xType , 1 , &buf); \
343+ err = driver.put_att (ncid,varp->vid ," _FillValue" ,varp->xType ,1 , &buf); \
344344 } \
345345 else if (varp->xType == NC_INT) { \
346346 int buf = (int )val; \
347- err = driver.put_att (ncid,varp->vid ,_FillValue,varp->xType , 1 , &buf); \
347+ err = driver.put_att (ncid,varp->vid ," _FillValue" ,varp->xType ,1 , &buf); \
348348 } \
349349 else if (varp->xType == NC_DOUBLE) { \
350350 double buf = (double )val; \
351- err = driver.put_att (ncid,varp->vid ,_FillValue,varp->xType , 1 , &buf); \
351+ err = driver.put_att (ncid,varp->vid ," _FillValue" ,varp->xType ,1 , &buf); \
352352 } \
353353 CHECK_VAR_ERR (varp->_name ) \
354354 cmeta->num_attrs ++; \
@@ -487,16 +487,16 @@ int scorpio_write_var(e3sm_io_driver &driver,
487487}
488488#define GET_ATTR_FILL (val ) { \
489489 if (varp->xType == NC_FLOAT) { \
490- err = driver.get_att (ncid,varp->vid ,_FillValue,&val); \
490+ err = driver.get_att (ncid,varp->vid ," _FillValue" ,&val); \
491491 } \
492492 else if (varp->xType == NC_INT) { \
493493 int buf; \
494- err = driver.get_att (ncid,varp->vid ,_FillValue,&buf); \
494+ err = driver.get_att (ncid,varp->vid ," _FillValue" ,&buf); \
495495 val = (float )buf; \
496496 } \
497497 else if (varp->xType == NC_DOUBLE) { \
498498 double buf; \
499- err = driver.get_att (ncid,varp->vid ,_FillValue,&buf); \
499+ err = driver.get_att (ncid,varp->vid ," _FillValue" ,&buf); \
500500 val = (float )buf; \
501501 } \
502502 CHECK_VAR_ERR (varp->_name ) \
0 commit comments