Skip to content

Conversation

@allegroLeiden
Copy link
Contributor

  • In raythrucells.c:followRayThroughCells(), *chainOfCellIds and *cellExitIntcpts are now set to NULL before an exit with status==2. This fixes the seg fault.

  • In raythrucells.c:followRayThroughCells() the pointers are also now freed and set to NULL if none of the calls to buildRayCellChain() returned a zero-valued status.

  • In raythrucells.c:followRayThroughCells(), any kind of non-zero status will exit with *lenChainPtrs set to 0 and *entryIntcpt set to initial values.

  • Redundant arguments nSteps and oneOnNSteps deleted from the raytrace.c:traceray_smooth() interface.

  • In raytrace.c:raytrace(), oneOnNumActiveRaysMinus1 is now set = 1.0/(double)(numActiveRaysInternal-1) to make the raytace percentage go up to 100% again.

- In raythrucells.c:followRayThroughCells(), *chainOfCellIds and *cellExitIntcpts are now set to NULL before an exit with status==2. This fixes the seg fault.

- In raythrucells.c:followRayThroughCells() the pointers are also now freed and set to NULL if none of the calls to buildRayCellChain() returned a zero-valued status.

- In raythrucells.c:followRayThroughCells(), any kind of non-zero status will exit with *lenChainPtrs set to 0 and *entryIntcpt set to initial values.

- Redundant arguments nSteps and oneOnNSteps deleted from the raytrace.c:traceray_smooth() interface.

- In raytrace.c:raytrace(), oneOnNumActiveRaysMinus1 is now set = 1.0/(double)(numActiveRaysInternal-1) to make the raytace percentage go up to 100% again.
@allegroLeiden allegroLeiden merged commit 380a415 into lime-rt:master Jan 31, 2017
@allegroLeiden allegroLeiden deleted the fix_212 branch February 1, 2017 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants