NOAA-GFDL / SIS2

NOAA-GFDL's Sea Ice Simulator version 2
Other
16 stars 43 forks source link

Issue compiling: src/SIS_sum_output.F90 #167

Closed uramirez8707 closed 2 years ago

uramirez8707 commented 2 years ago

I get the following compile error when trying to compile the dev/gfdl branch of SIS2:

src/SIS_sum_output.F90(174): error #6460: This is not a field name that is defined in the encompassing structure.   [WATER_CELL_PREV]
    allocate(CS%water_cell_prev(G%isd:G%ied, G%jsd:G%jed), source=0.0)

and similar errors for CS%heat_cell_prev and CS%salt_cell_prev.

CS is type(SIS_sum_out_CS https://github.com/NOAA-GFDL/SIS2/blob/87ff9e51982f8c930db9720274b88cec6d4a2b39/src/SIS_sum_output.F90#L104-L105

Which does not have the water_cell_prev heat_cell_prev and salt_cell_prev defined. https://github.com/NOAA-GFDL/SIS2/blob/dev/gfdl/src/SIS_sum_output.F90#L47-L93

Renaming *_col_prev to *_cell_prev in the derived type solves the issue, but I don't know if that is the right thing to do.

marshallward commented 2 years ago

I've reproduced this error. I'll chat with the others and get back to you soon.