XIOS error in the case of determination of new output variable

Dear All!

I can’t output a new my field (dicec, an increment for ice concentration) in XIOS. The error message is:

In file “nc4_data_output.cpp”, function “void xios::CNc4DataOutput::writeFieldData_(xios::CField *)”, line 2687 → On writing field data: dicec In the context : nemo_server Error when calling function ncPutVaraType(ncid, varId, start, count, data) NetCDF: Numeric conversion not representable Unable to write data given the location id: 1703936 and the variable whose id: 19 and name: dicec

The field itself is calculated correctly.

The icewri.F90 module now has an operator: if (iom_use(‘dicec’)) call iom_put(‘dicec’, dicec * zmsk00)

Into the field_def_nemo-ice.xml file I put the string:

In the file file_def_nemo-ice.xm, along with other fields there is:

The definition of the new field is in the ice.F90 module as PUBLIC, ALLOCATABLE, SAVE DIMENSION(:,:slight_smile: and is allocated as ALLOCATE(dicec(jpi,jpj))

Nemo 4.23, XIOS 2.0

What could be the problem? Thank you.