On 4/26/19 1:59 AM, 'Maxi Miller' via deal.II User Group wrote: > I tried to reduce it as much as possible while still being able to run, > the result is attached. It still has ~600 lines, but I am not sure if I > should remove things like the output-function? Furthermore the NOX-logic > takes quite a lot of lines, and I would like to keep the program as > usable as possible while removing unneccessary lines. Is that example > usable?
Remove everything you can. If you get an error at one point, no output will be created -- so remove the output function. If the error happens before the linear system is solved, remove the code that computes the entries of the matrix. Then remove the matrix object itself. If you are currently solving a linear system before the error happens, try what happens if you just comment out the solution step -- and if the error still happens (because it probably doesn't depend on the actual values of the vector), then remove the solution step and the assembly of the matrix and the matrix. If you need a DoFHandler to set up the vector, output the index sets and sizes you use for the processors involved and build these index sets by hand instead -- then remove the DoFHandler and the finite element and everything else related to this. Continue this style of work until you really do have a small testcase :-) Cheers W. -- ------------------------------------------------------------------------ Wolfgang Bangerth email: [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
