Skip to content

Implicit deallocation in RtmMod.F90 for qSend #651

Description

@ekluzek

There's a missing deallocation for qSend in RtmMod.F90. It allocates it each time route_ini is called and doesn't deallocate it. It should deallcate at the end of route_run, or do the allocation in route_ini, and don't worry about deallocating.

Note, I was able to use "git grep allocate" to show this in route/build/cpl, as other instances showed a matching deallocate, or the allocates in RunoffMod.F90 and rof_import_export.F90 didn't have a matching deallocate -- but they are only done at initialization. So those ones are OK.

Since it's a local allocatable array, the compiler will deallocate when it goes out of scope. So there is an implicit deallocation going on. But, that makes it harder to match deallocates with allocates and know that's being properaly handled.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcesm-couplingFor cesm couplinginfrastructureissues or code changes related to code organization, data structure, refactoringno answer changechange does not change any simulation result - should be bit-to-bit identical

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions