Dune reported error: GridError: You have requested to enter a tetrahedron, but you have provided 5 vertices!

This is within the DUneuro code.
From the image you shared, it seems that you are using the volume grid.
The option force within the Brain is not supported for volume (yet).

So it seems that you have some source outside of the brain volume.
One possible option is to review the grid location for some subjects.

A quick solution is to shrink the cortex surface slightly and regenerate the grid for these subjects.
The process is as follows:

  • copy and past the cortex (duplicate the surface cortex)
  • shrink slightly the duplicated cortex (right click, align on ... and then use the shrink option)
  • Set the duplicated cortex as the default cortex (right click and set as cortex=> green color)
  • Redo the computation of the head model. (forward computation)

Let me know how it goes.

Best,
Takfarinas