I was getting segmentation faults randomly with AED turned on. There are three places that I have isolated the issues. They all have to do with how the code "looks" up and down the benthic zones. In all cases they are referencing indices of vectors that have not been initialized so the numbers used in the calculations are whatever was in memory previously. Please review to see if my solutions work based on your understanding of how the indexing works in GLM.
I was getting segmentation faults randomly with AED turned on. There are three places that I have isolated the issues. They all have to do with how the code "looks" up and down the benthic zones. In all cases they are referencing indices of vectors that have not been initialized so the numbers used in the calculations are whatever was in memory previously. Please review to see if my solutions work based on your understanding of how the indexing works in GLM.