Table<2,DoFTools::Coupling> cell_coupling (fe.n_components(),
fe.n_components());
Table<2,DoFTools::Coupling> face_coupling (fe.n_components(),
fe.n_components());
for (unsigned int c=0; c<=n_comp; ++c)
{
for (unsigned int d=0; d<=n_comp; ++d)
{
if (c==d || c==d+1 || c==d-1)
{
cell_coupling[c][d] = DoFTools::always;
face_coupling[c][d] = DoFTools::always;
}
else
{
cell_coupling[c][d] = DoFTools::none;
face_coupling[c][d] = DoFTools::none;
}
}
}
Update: Unfortunately, while this should be fixed (and I am a little surprised that I have not yet run into this problem in my own DG codes), since deal.II does not handle faces in 1D in quite the same way as it does in 2D and 3D it will require a bit of work. I have solved a similar problem to this in the past and I know how to do this, but it may take me a few days to get around to it.
On Tuesday, March 1, 2016 at 8:38:23 PM UTC-5, David Wells wrote:Hi Weixiong,
This is most likely a problem with deal.II; thank you for bringing this up so we can fix it :) The culprit seems to be
https://github.com/dealii/dealii/blob/master/source/dofs/dof_tools_sparsity.inst.in#L186
where we do not, for reasons I cannot determine, actually create a version of this function in 1D (but we do in 2D and 3D).
The function you are using is defined as a template in a source file (dof_tools_sparsity.cc), but we only ever instantiate it for dimensions 2 and 3 (which is done in the file I linked to above).
I will try to fix this. I will post something here when I see whether or not it makes sense to use this function in 1D.
Thanks,
David Wells
--
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 a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/7C9fBrkkZrE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Weixiong,
Thanks,David Wells