Skip to content

Commit 728ade9

Browse files
committed
Merge branch 'CMS_v5.4.4.3'
2 parents a961d10 + 81dcaf4 commit 728ade9

File tree

6 files changed

+22
-13
lines changed

6 files changed

+22
-13
lines changed

Intel_vs2022/CMS2D_V5.4.vfproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@
3333
</Filter>
3434
<Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
3535
<File RelativePath="..\source\CMakeLists.txt"/>
36-
<File RelativePath="..\source\logsheet.txt">
37-
</File>
36+
<File RelativePath="..\source\logsheet.txt"/>
3837
<File RelativePath="..\source\readme.txt"/>
39-
<File RelativePath="..\docs\user\whatsnew.rst">
40-
</File>
38+
<File RelativePath="..\docs\user\whatsnew.rst"/>
4139
</Filter>
4240
<Filter Name="Source Files" Filter="f90;for;f;fpp;ftn;def;odl;idl">
4341
<Filter Name="Explicit Scheme">

docs/user/whatsnew.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
What's New
22
==========
33

4-
v5.4.4.2 (09 April 2025)
4+
v5.4.4.3 (21 April 2025)
55
-------------------------
66

77
Changes
@@ -13,6 +13,7 @@ Changes
1313
* Added allocation for Observation and Nest points when using the newest format.
1414
* (5.4.4.1) Bug fix for mixing layer thickness error.
1515
* (5.4.4.2) Handles a '--non-interactive' flag as final argument to avoid the "Press any key to continue" message after errors.
16+
* (5.4.4.3) Bug fix for array out of bounds when nesting is used.
1617

1718

1819
v5.4.3 (18 March 2025)

source/logsheet.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
== Version 5.4.4 (04/07/2025) ==
1+
== Version 5.4.4 (04/21/2025) ==
22
* Minor changes to wave code to initialize a few variables.
33
* Added test to ensure initial mixing layer thickness is always less than thicknesses for bed layers.
44
* Added test for met station wind data import.
55
* Test fix for divide by zero in SHEARLUND routine.
66
* Added allocation for Observation and Nest points when using the newest format.
77
* (5.4.4.1) Bug fix for mixing layer thickness error.
88
* (5.4.4.2) Handles a '--non-interactive' flag as final argument to avoid the "Press any key to continue" message after errors.
9+
* (5.4.4.3) Bug fix for array out of bounds when nesting is used.
910

1011
== Version 5.4.3 (03/20/2025) ==
1112
* Optimized ADAK and ADBK dot product routines

source/main/CMS2D_main.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ character(len=20) function Int2Str(k)
4848
!NOTE: Change variables below to update CMS header information
4949
version = 5.4 ! CMS version !For interim version
5050
revision = 4 ! Revision number
51-
bugfix = 2 ! Bugfix number
52-
rdate = '04/09/2025'
51+
bugfix = 3 ! Bugfix number
52+
rdate = '04/21/2025'
5353

5454
!Manipulate to get major and minor versions - MEB 09/15/20
5555
call split_real_to_integers (version, 2, major_version, minor_version) !Convert version to two integer portions before and after the decimal considering 2 digits of precision.

source/waves/CMS-Wave_v3.4W_Jan2025.f90

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,11 @@ Subroutine CMS_Wave_inline !(noptset,nsteer) !Wu
11601160

11611161
npf=nff+1 !Wu
11621162
mpd=mdd+1
1163+
1164+
!Added by MBrown, 04/21/2025. This was never assigned a value but then used to allocate space in some arrays.
1165+
! Previous versions had MPD = 50 and MPD2 = 75. I am just assigning (MPD + 1) to MPD2 for now just in case it needs to be larger than mpd.
1166+
mpd2 = mpd + 1
1167+
11631168
allocate( ffcn(npf),dsfd(npf,mpd) )
11641169

11651170
READ(8,*) (FFCN(NN),NN=1,NFF)
@@ -1330,12 +1335,15 @@ Subroutine CMS_Wave_inline !(noptset,nsteer) !Wu
13301335
allocate( df(npf),dfinp(npf),pl1e(npf),pl1t(npf) )
13311336
allocate( scp(jgpx,mpd),si(jgpx,npf,mpd) )
13321337
allocate( simax(jgpx,npf,mpd),sjj(jgpx) )
1333-
allocate( sop(koutnest,npf,mpd2),sr(2*ipmx,npf,mpd) )
1334-
!allocate( sop(komx,npf,mpd2),sr(2*ipmx,npf,mpd) )
1338+
allocate( sop(koutnest,npf,mpd2) )
13351339
allocate( sj(jgpx),sjf(jgpx,npf),fjf(jgpx) )
1336-
allocate( aa(5,mpmx),ia(5,mpmx),b(mpmx),x(mpmx) )
13371340
allocate( sgma0(jgpx,mpd),sgma1(jgpx,mpd) )
13381341
allocate( cwk(jpmx,2,mpd),cgk(jpmx,2,mpd) )
1342+
1343+
allocate ( sr(2*ipmx,npf,mpd),ia(5,mpmx) )
1344+
allocate ( aa(5,mpmx) )
1345+
allocate ( b(mpmx) )
1346+
allocate ( x(mpmx) )
13391347
!End adding by Wu, Nov. 2024
13401348

13411349
itms = 0 + n !N is number of times that were skipped during hot start or 0 if cold start.

source/waves/wave_def_Jan2025.f90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ module wave_def
9696
real(ikind),allocatable :: SIMAX(:,:,:),SJJ(:)
9797
real(ikind),allocatable :: SOP(:,:,:),SR(:,:,:)
9898
real(ikind),allocatable :: SJ(:),SJF(:,:),FJF(:)
99-
real(ikind),allocatable :: AA(:,:),B(:),X(:)
99+
real(ikind),allocatable :: AA(:,:),B(:),X(:)
100100
real(ikind),allocatable :: sgma0(:,:),sgma1(:,:)
101101
real(ikind),allocatable :: cwk(:,:,:),cgk(:,:,:)
102-
real(ikind),allocatable :: ex(:,:),ey(:,:)
102+
real(ikind),allocatable :: ex(:,:),ey(:,:)
103+
103104

104105
integer,allocatable :: IJB(:,:)
105106
integer,allocatable :: KR(:,:)

0 commit comments

Comments
 (0)