On 07/05/2016 10:08 AM, Ehsan Esfahani wrote:

thanks for your response. the problem is in preconditioner. I find out
that my code is running on my friend's machine but I get the error
related to SEGV. I have changed preconditioner to Jacobi and it's
running but with more iterations than AMG. Also, it's not running on my
computer and the problem on my computer remained the same as before :-(

Ehsan,
then let us come back to my original suggestion: when you run a program in a debugger and it crashes, the backtrace will show where this happens. If the problem was really in the line
  solver.solve (system_matrix, completely_distributed_solution_update,
                system_rhs, preconditioner);
then that would mean that in creating one of the arguments to this call, the program did something illegal. For example, it could be that one of the arguments is a reference that is not bound to anything. You should be able to see this by looking at the various arguments in the debugger.

More likely, however, is that the program actually crashed *inside* the `solver.solve` function, or one of the functions that it calls. You can see this too in the backtrace, by seeing which functions are being called. Once you find out which function creates the problem, you can again look at the arguments and local variables and see what is happening.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth               email:            bange...@math.tamu.edu
                                www: http://www.math.tamu.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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to