Dear Wolfgang,

Since I use Newton method and I want to apply boundary displacement as 
constraint, I should apply constraint only in zero Newton iteration. So I 
can not do so in setup_system but after assembly. I followed step-44 for 
that. 

Thanks,

On Tuesday, November 8, 2016 at 6:28:17 PM UTC-6, Wolfgang Bangerth wrote:
>
> On 11/08/2016 05:19 PM, Hamed Babaei wrote: 
> > 
> > 
> > DoFTools::make_sparsity_pattern 
> > <
> http://dealii.org/8.4.1/doxygen/deal.II/group__constraints.html#ga38d88a1a559e9fc65d60f3e168921ba5>(dof_handler,
>  
>
> > sp, 
> > constraints, false, 
> > Utilities::MPI::this_mpi_process 
> > <
> http://dealii.org/8.4.1/doxygen/deal.II/namespaceUtilities_1_1MPI.html#a895dcd8223a0ee6f0e6a80b80e2d5982>(mpi_communicator));
>  
>
> > 
> > and I do not want to apply constraints in setup_system step but later. 
> So I 
> > need to pass fist two arguments and the last one as well but avoid 
> passing the 
> > third and fourth arguments.I got syntax error when I just write it in 
> this way: 
> > 
> > DoFTools::make_sparsity_pattern 
> > <
> http://dealii.org/8.4.1/doxygen/deal.II/group__constraints.html#ga38d88a1a559e9fc65d60f3e168921ba5>(dof_handler,
>  
>
> > sp, 
> > Utilities::MPI::this_mpi_process 
> > <
> http://dealii.org/8.4.1/doxygen/deal.II/namespaceUtilities_1_1MPI.html#a895dcd8223a0ee6f0e6a80b80e2d5982>(mpi_communicator));
>  
>
> > 
> > It would be appreciated if you could let me know what to do. 
>
> Yes, it is not correct C++ syntax to just omit arguments you don't like 
> :-) 
>
> My question would be why you want to not apply constraints in 
> setup_system? 
>
> 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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to