Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Bug]: crash when do_recdev = 0 is combined with SRR option 7 (but work-around is available)

Đang mở
#560 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@Rick-Methot-NOAA đang làm issue này rồi.

Từ ngày 1/2/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

recruitment
Describe the bug

@quang-huynh reported an issue with combining SRR option 7 with the setting do_recdev = 0, which leads to the following error:

Finished calculating benchmarks
array bound exceeded -- index too high in prevariable::operator()

The error does not occur when the Beverton-Holt stock-recruit option is used.
This is a low priority to fix because the recdevs can be turned off via negative phase instead of do_recdevs, but good to have reported here anyway so we have a record of the problem if it happens to anyone else.

If a fix isn't easy to find, we could add a warning saying to use negative phase instead of do_recdevs when working with SRR option 7.

To Reproduce

Within Spinydogfish_2011 in test-models, change do_recdevs from 1 to 0 on this line and run with a recent SS3 executable
https://github.com/nmfs-ost/ss3-test-models/blob/main/models/Spinydogfish_2011/Spiny_Dogfish.CTL#L128.

Expected behavior

@quang-huynh says that the combination of SRR option 7 and do_recdev = 0 worked in SS version 3.30.16.

Screenshots

No response

Which OS are you seeing the problem on?

Windows

Which version of SS3 are you seeing the problem on?

3.30.22.1

Additional Context

No response

Ngôn ngữ chính
C++
Star
46
Fork
20
Merge trung bình
2 ngày 6 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nmfs-ost/ss3-source-code

Tất cả issue của nmfs-ost/ss3-source-code

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.