Thanks. This is definitely a bug, but very different from my understanding 
of what was reported (which is why one should always tell someone how to 
reproduce a problem in a bug report). It is because the PushFormat is done 
regardless of whether it is a new viewer or just the same viewer being set 
again.

   Absolutely needs to be fixed. I don't like the idea of cluttering up the 
object landscape of PETSc even more by adding new objects such as "viewer plus 
format" as was suggested.

   I need to think about a way to fix this that results in less cluttered code, 
nor more cluttered code. 

  Barry



> On Mar 16, 2016, at 2:18 PM, Lawrence Mitchell 
> <[email protected]> wrote:
> 
> 
> 
> On 16/03/16 18:56, Barry Smith wrote:
>> 
>>  Please send me a command line option and example (one in the repository?) 
>> where this problem happens.
> 
> I had slightly misread the code (MG setup doesn't call
> KSPSetFromOptions more than once even when PCSetUP_MG is called
> again), but here is an example:
> 
> cd src/ts/examples/tutorials
> make ex26
> ./ex26 -da_refine 1  -ts_max_steps 10 -ts_rtol 1e-3 -ts_atol 1e-3
> -ts_type beuler -pc_type asm -pc_asm_blocks 30 -sub_ksp_type
> richardson -sub_ksp_monitor
> 
> Cheers,
> 
> Lawrence
> 
> 

Reply via email to