This function updates a stock spawning recruitment parameters, but only if the stock is set to spawn (i.e., doesspawn is set to 1 in the model). All spawning recruitment functions are supported. However, it is the user responsibility to give the correct parameters that correspond to the stock's spawning recruitment functions. See the gadget user guide for the detailed information about the different functions and their parameters

updateSpawningRec(stockName, ...)

Arguments

stockName

a string of the stock name

...

the collection of parameters (e.g., if the recruitment function is "fecundity", a vector of 5 parameters are required)

Value

a vector of numeric error codes (0 is success, otherwise is error)