gadget-framework / gadget3

TMB-based gadget implemtation
GNU General Public License v2.0
8 stars 6 forks source link

g3a_predate_catchability_quotafleet issue #105

Closed willbutler42 closed 1 year ago

willbutler42 commented 1 year ago

g3a_predate_fleet seems to produce an error if you pass a list of multiple stocks to the sum_stocks argument in g3a_predate_catchability_quotafleet. Seems that the second stock object is not found:

Error in get(as.character(stock_var), envir = orig_env) : object 'red_mat' not found

A simple illustation is attached quotafleet_issue.zip

lentinj commented 1 year ago

Does the above help? The example works, but I've not tested it further yet.

willbutler42 commented 1 year ago

Thanks, this works : )