Replaced the Newton iteration non-convergence warning with an exception. Checked that this exception will be caught in the forward tool - it integrates within a try/catch statement. We throw an exception here because there is no point integrating a muscle velocity that is invalid. Nothing can be learned from allowing the simulation to proceed in terms of debugging a simulation -- and furthermore, it will produce invalid fiber lengths and cause misleading numerical problems down the track when trying to debug. The idea is to produce an exception and catch this early before it can wreak havoc with the simulation.
Replaced the Newton iteration non-convergence warning with an exception. Checked that this exception will be caught in the forward tool - it integrates within a try/catch statement.
We throw an exception here because there is no point integrating a muscle velocity that is invalid. Nothing can be learned from allowing the simulation to proceed in terms of debugging a simulation -- and furthermore, it will produce invalid fiber lengths and cause misleading numerical problems down the track when trying to debug. The idea is to produce an exception and catch this early before it can wreak havoc with the simulation.

Also converted tabs to spaces.

git-svn-id: 9e047e1e624cce0a2485e750063112e834f85522@8172 fc29be9c-2cb0-420d-b520-73dbd18add6e

opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core