Opt Executable Segfaults with Adaptive Mesh and User-Defined Material Model #31949
Replies: 1 comment 7 replies
-
|
Hello
What do you mean by segmentation fault here? The error message looks like a regular error message, not a crash by segmentation fault.
It is peculiar indeed, as the code is essentially the same in the two versions, with additional checks in debug and less optimization. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Check these boxes if you have followed the posting rules.
Question
Hi MOOSE Team,
I am using a user-defined material model in my MOOSE application.
With initial mesh adaptivity, my input file contains:
When I enable mesh adaptivity, my opt executable encounters an error during the initial residual calculation and prints:
However, the dbg executable runs successfully and solves the problem.
Additionally, when I use uniform refinement via the -r option, both the opt and dbg executables work perfectly.
This problem appears only with this specific user-defined material model; all other material models run without any errors.
I do use
_state_var[_qp]in my material model, but I only update these variables when_t_step > 0. Therefore, I don’t think the segmentation fault is coming from state variable initialization.I’m unable to understand why mesh adaptivity causes the opt version to crash during initial evaluation, while the dbg build runs fine.
If anyone has insights or suggestions, please help.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions