nmfs-ost / ss3-source-code

The source code for Stock Synthesis (SS3).
https://nmfs-ost.github.io/ss3-website/
Creative Commons Zero v1.0 Universal
36 stars 16 forks source link

[Refactor]: create function for t=f(y,s) #578

Open Rick-Methot-NOAA opened 5 months ago

Rick-Methot-NOAA commented 5 months ago

Refactor request

This equation is used repeatedly. Useful to turn it into a function. t = styr + (y - styr) * nseas + s - 1;

e.g. t = get_t(yr,s) FUNCTION int get_t(yr,s)

Expected behavior

more concise code