Skip to content

Initialize Ocean_state pointer to null() in access drivers.#76

Merged
dougiesquire merged 1 commit intomasterfrom
gcc
Feb 26, 2026
Merged

Initialize Ocean_state pointer to null() in access drivers.#76
dougiesquire merged 1 commit intomasterfrom
gcc

Conversation

@dougiesquire
Copy link
Copy Markdown
Collaborator

This PR initializes the Ocean_state pointers to null() in the access drivers. This ensures the pointer has a defined association status on declaration, avoiding undefined behavior when using GCC.

@dougiesquire dougiesquire self-assigned this Feb 24, 2026
This ensures the pointer has a defined association status on declaration, avoiding undefined behavior when using GCC.
@dougiesquire
Copy link
Copy Markdown
Collaborator Author

@anton-seaice could please review.

This allows building and running ACCESS-OM2 with GCC (see here) and doesn't change answers with oneapi (see here)

@dougiesquire dougiesquire merged commit 995fe49 into master Feb 26, 2026
6 checks passed
@dougiesquire dougiesquire deleted the gcc branch February 26, 2026 10:56
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.

2 participants