Skip to content

Conversation

@foxtran
Copy link
Contributor

@foxtran foxtran commented Oct 1, 2025

Description
In this PR I've replaced all cray pointers in exchange/xgrid.f90 to Fortran pointers that is possible with Fortran 2008 features. Actually, Fortran 2008 compiler is required for compiling FMS, so, there is no problem to use a bit more Fortran 2008 features.

Related to #54

How Has This Been Tested?
I have raised compiler errors by excluding -fcray-pointer flag during compilation of module. Then, in semi-automatic manner, I fixed all of them. No actual tests were running (I will let CI do it).

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

@foxtran foxtran changed the title Split 1/remove cray pointers Remove cray pointers from exchange/xgrid.f90 Oct 1, 2025
Copy link
Contributor

@uramirez8707 uramirez8707 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update @foxtran. Looks good to me.

@vithikashah001 vithikashah001 merged commit 301b4fd into NOAA-GFDL:main Nov 20, 2025
28 of 29 checks passed
@foxtran foxtran deleted the split-1/remove-cray-pointers branch November 20, 2025 19:43
@foxtran
Copy link
Contributor Author

foxtran commented Nov 20, 2025

Looks like somehow this PR broke xgrid test with autotools... But I do not see where; stacktraces are also not helpful.

@foxtran
Copy link
Contributor Author

foxtran commented Nov 21, 2025

Fix is available in #1795.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants