Re: [deal.II] FESystem and FEInterfaceValues: how to get component

2024-09-15 Thread Praveen C
It should look like this so it works in hp case. // This is available only after call to reinit. unsigned int FEInterfaceValues::get_component(const unsigned int interface_dof_index) const { const auto dof_pair = dofmap[interface_dof_index]; if(dof_pair[0] != numbers::invalid_unsigned_int)

Re: [deal.II] FESystem and FEInterfaceValues: how to get component

2024-09-15 Thread Praveen C
The simplest solution seems to be to add a function like this. // This is available only after call to reinit. unsigned int FEInterfaceValues::get_component(const unsigned int interface_dof_index) const { const auto dof_pair = dofmap[interface_dof_index]; if(dof_pair[0] != numbers::invalid_u

Re: [deal.II] Re: FESystem and FEInterfaceValues: how to get component

2024-09-15 Thread Wolfgang Bangerth
On 9/14/24 08:04, Praveen C wrote:          unsigned int ii = (i < n_cell_dofs) ? i : i - n_cell_dofs;          const auto c = fe_face_values.get_fe().system_to_component_index(ii).first; Praveen: this makes the assumption that you first have the DoFs from one side, and then the ones from t

Re: [deal.II] Re: Q&A: Issue with Adaptive Refinement for Higher-Order Elements Q_k+1

2024-09-15 Thread Wolfgang Bangerth
Najwa: I ran step-22 with Q2^d-Q1 and Q3^d-Q2, and I observed the same behavior. Additionally, I found that in my code, even when using Q2, these jumps also appear, though on a smaller scale and in fewer locations. This brings me to an updated question: * Is this behavior not significant

[deal.II] Re: Q&A: Issue with Adaptive Refinement for Higher-Order Elements Q_k+1

2024-09-15 Thread Najwa Alshehri
Dear all, I have an important update on the situation. I ran step-22 with Q2^d-Q1 and Q3^d-Q2, and I observed the same behavior. Additionally, I found that in my code, even when using Q2, these jumps also appear, though on a smaller scale and in fewer locations. This brings me to an updated