Issue:
If I set the argument B to B = 1 in the BFDA.sim function and use multiple cores (e.g., cores = 4), the function crashes with the error "Error in { : task 1 failed - "subscript out of bounds" ".
Solution:
It can be resolved by manually setting cores = 1.
Action:
Automate this from within the code to make the function more stable.
Issue: If I set the argument B to B = 1 in the BFDA.sim function and use multiple cores (e.g., cores = 4), the function crashes with the error "Error in { : task 1 failed - "subscript out of bounds" ".
Solution: It can be resolved by manually setting cores = 1.
Action: Automate this from within the code to make the function more stable.