On 4/11/23 02:40, Tom Li wrote:
        I write a function in my programm named "get_element_cache", this function is mainly for setting the user_data of every active_cell, it looks like the file "get_element_cache.cc".And when I want to assemble_rhs, I need some information in the UserData,But I got the wrong information..The file assemble_rhs.cc includes my code.For example, one of the parameter of the UserData is seed_index1, It can only be -1, 0,1,2 and I try to print the number I got 1626017872.That is obviously wrong.So I am confused where something went wrong.

Tom: We don't have the resources to debug these problems for everyone on the mailing list (or indeed for *anyone* on the mailing list). But in your case, at least you know *what* goes wrong (namely, you get a wrong number, and later you get a segmentation fault). These are both problems that are relatively easy to figure out if you run your program in a debugger. I would first try to understand where and why you get the segmentation fault because the debugger will stop at the location where you are accessing invalid memory.

Separately, it looks like you are running the program with multiple MPI processes. Does the problem also happen when you run with only one process? That may be a case that's easier to debug.

Best
 W.


--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/c4c48f62-8f57-be89-180a-b83e488d7a9d%40colostate.edu.

Reply via email to