NOAA-GFDL / FMS

GFDL's Flexible Modeling System
Other
92 stars 134 forks source link

dmUpdate: fixes for gcc #1486

Closed rem1776 closed 5 months ago

rem1776 commented 5 months ago

Description Fixes failures in a bunch of unit tests when compiling with gcc and runtime checks enabled.

The majority of these fixes are related to derived type assignments. There seems to be a compiler bug that breaks assignments with certain derived types (in this case its diagYamlFiles_type and diagYamlObject_type), so the workaround is to just point to the objects instead of doing a full copy.

How Has This Been Tested? Tested on amd box with gcc 13 + -g -O0 -fbacktrace -fcheck=all and also with oneapi

Checklist: