Repository navigation
Conversation
The Windows CI reads the 1-row netCDF grid with a collapsed y range. See #9261. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
This is ready to be approved. |
|
I'm not sure I like the idea of hiding the problem. Again, I don't see this problem in my local build. |
|
I ran the Windows CI with MSVC toolset 14.44 (same |
|
I just updated my MSVC and have 14.51.36231 (maybe I already had it) and gmt grdmath -R-1.2/1.2/-0.2/0.2 -I0.4 -r 0.5 X ADD X X MUL ADD X 3 POW ADD = row.grd still works fine for me. |
|
This is an MSVC 14.51 optimiser bug, and it's already reported to Microsoft: https://developercommunity.visualstudio.com/t/MSVC-1951-x64-O2-and-O1-omit-a-call-t/11169239 In Reading the range into its own array avoids it. With this change GMT built with 14.51 reads the grid correctly, and an extract of the function gives the right answer with 14.43, 14.50, 14.51, and 14.52: - has_range = (!nc_get_att_double (ncid, ids[HH->xy_dim[1]], "actual_range", dummy));
+ { /* gmt#9261: MSVC 14.51 and 14.52 skip this call when has_vector is false (MSVC DevCom 11169239) */
+ double range[2];
+ has_range = (!nc_get_att_double (ncid, ids[HH->xy_dim[1]], "actual_range", range));
+ if (has_range) dummy[0] = range[0], dummy[1] = range[1];
+ } |
The test fails only in the Windows CI, so mark it with
GMT_KNOWN_FAILURE_WINDOWS.Closes #9261.