Skip to content

Comments

Check that self%perturbation is allocated before trying to apply perturbations#29

Open
dougiesquire wants to merge 1 commit intomasterfrom
gcc
Open

Check that self%perturbation is allocated before trying to apply perturbations#29
dougiesquire wants to merge 1 commit intomasterfrom
gcc

Conversation

@dougiesquire
Copy link
Collaborator

This PR adds a check to libforcing/src/forcing_field.F90::forcing_field_apply_perturbations to ensure that that self%perturbation is allocated before trying to apply perturbations.

This prevents errors like:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

when running with GCC-compiled binaries

…urbations

This prevents 'invalid memory reference.' errors when using GCC
@dougiesquire dougiesquire self-assigned this Feb 24, 2026
@dougiesquire dougiesquire changed the title Check that self%perturbation is allocated before trying to apply perturbations Check that self%perturbation is allocated before trying to apply perturbations Feb 24, 2026
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.

1 participant