Commit b001f0d
Fix loc_violations gaining implicit SAVE attribute
Initializing a local variable in its declaration gives it the SAVE
attribute in Fortran, meaning it would not reset to zero on subsequent
calls. Move the initialization to an executable assignment so the
variable is properly zeroed each time the subroutine is entered.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6954e91 commit b001f0d
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
| 479 | + | |
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| 486 | + | |
| 487 | + | |
486 | 488 | | |
487 | 489 | | |
488 | 490 | | |
| |||
0 commit comments