Re: [deal.II] Re: get_function_value error with hp class

2017-06-16 Thread Wolfgang Bangerth
Physically, the problem is scalar per direction (radiation transport). So you are suggesting I don't need to use FE_Nothing in the FESystem? I don't think it's become completely clear what you are doing, but from what I infer is that your problem is *not* in fact scalar -- but a system of

Re: [deal.II] Re: get_function_value error with hp class

2017-06-15 Thread Weixiong Zheng
在 2017年6月14日星期三 UTC-7下午5:44:37,Wolfgang Bangerth写道: > > On 06/13/2017 06:16 PM, Weixiong Zheng wrote: > > | > > > > | > > > > As the problem is a scalar problem, fv.shape_value and shape_grad work > as they > > are supposed to, but not the get_function_values. > > It is a coincidence

Re: [deal.II] Re: get_function_value error with hp class

2017-06-14 Thread Wolfgang Bangerth
On 06/13/2017 06:16 PM, Weixiong Zheng wrote: | | As the problem is a scalar problem, fv.shape_value and shape_grad work as they are supposed to, but not the get_function_values. It is a coincidence that the former two work -- they return the one non-zero component of a vector valued

[deal.II] Re: get_function_value error with hp class

2017-06-13 Thread Weixiong Zheng
Thanks, Daniel, I used FESystem to wrap the scalar FiniteElement and the FE_Nothing together. Here are the hp-relevant variables: FESystem fe_continuous; FESystem fe_discontinuous; hp::FECollection fe_c; hp::QCollection q_c; hp::QCollection q_face_c; This is how I do initialization

[deal.II] Re: get_function_value error with hp class

2017-06-13 Thread Daniel Arndt
Weixiong, [...] > Then I got confused: > 1. I used hp class a year ago or so, fv.get_function_values works > directly. Now I have to use the above change. Did I do something wrong? > 2. Then why fv.shape_value still works as it did? Isn't fv still a > FESystem object? > How did you initialize

[deal.II] Re: get_function_value error with hp class

2017-06-12 Thread Weixiong Zheng
All right, my understanding is that fv now is a FESystem object and have to be used correspondingly. So I tried and it worked. hp::FEValue hp_fv(fe_c,q_c,update_values | update_quadrature_points); for(cells) { const FEValues = hp_fv.get_present_fe_values(); FEValuesExtractors::Scalar