# User Element Troubleshooting

**URL:** <https://calculix.discourse.group/t/user-element-troubleshooting/2468>\
**Category:** Advanced features\
**Created:** [November 7, 2024, 12:42am UTC](https://calculix.discourse.group/t/user-element-troubleshooting/2468 "2024-11-07T00:42:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![James\_G](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@James\_G](https://calculix.discourse.group/u/James_G)\
**Post date:** [May 27, 2025, 11:57pm UTC](https://calculix.discourse.group/t/user-element-troubleshooting/2468/4 "2025-05-27T23:57:13Z")

</div>

There has now been partial success. After switching solvers from spooles to pastix, I was able to get the unit tests to converge. Given the results from [this thread](https://calculix.discourse.group/t/pastix-solver-performance/2525/14) and that, in general, cohesive-zone model calculations are inherently non-linear, I wondered whether or not I would need to switch to a better numerical solver.

What I was not expecting, however, is that the pastix solver only solves the unit tests when [valgrind](https://valgrind.org/) is analyzing the calculation. Obviously, it is unreasonable to have calculations slowed down orders of magnitude because “debug” mode is required and memory leaks are being tracked. Therefore, unfortunately, the user element is not yet production ready, and I need to continue digging more into the code to see what might be going on within my user element/ccx to cause these problems.

---

_[View the full topic](https://calculix.discourse.group/t/user-element-troubleshooting/2468)._
