Hi, Jean-Paul,

Do you mean the Dirichlet boundary condition? I applied the boundary 
condition after I form the right-hand side vector. I don't think the 
boundary condition will lead to different solutions because the right-hand 
side vector has been different before I add the boundary conditions. 

Best,

Xiang

On Tuesday, 7 April 2020 13:27:17 UTC-7, Jean-Paul Pelteret wrote:
>
> Hi Xiang, 
>
> You’ve also not mentioned whether you’re comparing vectors before or after 
> you’ve distributed the constraints. Perhaps you get the same result if you 
> call constraints.distribute() on both of your vectors? 
>
> Best, 
> Jean-Paul 
>
> > On 07 Apr 2020, at 22:22, Wolfgang Bangerth <bang...@colostate.edu 
> <javascript:>> wrote: 
> > 
> > On 4/5/20 12:32 AM, Xiang Sun wrote: 
> >> For correction, the right code for the second method is 
> > > [...] 
> > 
> > Are you saying that you solved your own problem? Or are you still 
> unclear what is happening? 
> > 
> > Best 
> > W. 
> > 
> > 
> > -- 
> > ------------------------------------------------------------------------ 
> > Wolfgang Bangerth          email:                 bang...@colostate.edu 
> <javascript:> 
> >                           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 dea...@googlegroups.com <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/77b269f1-b91b-1dc3-2145-b023242ba43c%40colostate.edu.
>  
>
>
>

-- 
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/dbbae2fe-3a1d-4120-9922-c24463ff5e93%40googlegroups.com.

Reply via email to