Skip to content

Commit

Permalink
Fix NREL#10847 - allocate right sized arrays
Browse files Browse the repository at this point in the history
ZFACE is -35:100, positive indicates Below ground (NZBG).
A, B, C,R and X are used in the 1 to NZBG range, so they should be 100 elements not 50 (Note: they are 1-indexed)
  • Loading branch information
jmarrec committed Dec 10, 2024
1 parent 33cecf6 commit 8c6410a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Basement/3DBasementHT.f90
Original file line number Diff line number Diff line change
Expand Up @@ -9641,7 +9641,7 @@ SUBROUTINE CalcTearth(IEXT,JEXT,DZ,DZP,TG,CVG)


!*** DECLARATIONS:
REAL(r64) A(50), B(50), C(50), R(50), X(50), ALB, ALBEDO(2), &
REAL(r64) A(100), B(100), C(100), R(100), X(100), ALB, ALBEDO(2), &
& AVGWND, CG, CONST(0:100,2), CPA, DH, DODPG, DW, &
& DZ(-35:100), DZP(-35:100), ELEV, EPS, EPSLN(2), &
& GOFT, GOLD, HRAT(24), IEXT, JEXT, LAT, LONG, MSTD, PBAR(24), &
Expand Down

0 comments on commit 8c6410a

Please sign in to comment.