forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Diag decimation prototype, fixing memory leaks
- The design of decimating subroutines with pointer manipulations was bad and causing memory leak. Using "allocatable" arrays instead is not as elegant but avoids memory leaks at the cost of bringing a few lines of code fo allocating temporary arrays outside the decimating subroutines. The FORTRAN garbage collection takes care of deallocating the "allocatable"s when their scope ends (unlike pointers).
- Loading branch information
1 parent
8802dd2
commit 7e3d368
Showing
1 changed file
with
89 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters