I found that when i use a restart file, and also ask for a post file, ElmerSolver segfaults in the WritePostFile function of ModelDescription.f90., somwhere in the loop in the default statement of the "Count degrees of freedom to be saved" step.
Code: Select all
3326 CALL Info('debugging','dofs')
3327 DO k=1,Var % DOFs
3328 Var => Var % Next
3329 END DO
The full debugging output for the crash looks like this, the debugging statements are in the attached patch (it applies to the .f90 file... sorry)
Code: Select all
WriteToPost: Saving results in ElmerPost format to file ./case.ep
debugging: doing while associated
debugging: case statement :coordinate 1
debugging: next
debugging: case statement :coordinate 2
debugging: next
debugging: case statement :coordinate 3
debugging: next
debugging: case statement :potential grad 1
debugging: next
debugging: case statement :potential grad 2
debugging: next
debugging: case statement :grad
debugging: 1:trim
debugging: true
debugging: dofs
Segmentation fault
Whilst I am good to continue on, now that I know that taking out the restart file avoids the problem, i felt I should still report it, seeing as I spent the time tracking it down
Thanks.
If you need the .msh file too, I can upload it.