Hi,

I have a model that I'm trying to parallelize. In this section, I run the same function four times on four independent sets, each time the function outputs three tables of reaction probabilities. I struggled using parfor to parallelize because it behaves strangely with indexing order and I don't understand it. Can anyone chime in with advice about how they would parallelize this task?

[HF,HA,HS] = reactions(H,1,Hprobs); [OF,OA,OS] = reactions(O,16,Oprobs); [U25F,U25A,U25S] = reactions(U25,235,U25probs); [U28F,U28A,U28S] = reactions(U28,238,U28probs);