Add max_space_dimension to finite element class
> On Wed, Oct 07, 2009 at 10:47:53AM +0100, Garth N. Wells wrote:
>> We added some time ago
>>
>> dof_map:
>>
>> and perhaps we also need
>>
>> finite_
>>
>> and
>>
>> finite_
>>
>> I have a problem for which the number of dofs an element has can grow
>> during a computation. You may say that this is then a different element,
>> but that would make it hard to handle in DOLFIN and hard to generate
>> code for.
>>
>> Here's an example of an inconsistency. In dolfin::Function, we
>> initialise some scratch space for the dof map based on the element space
>> dimension,
>>
>> dofs = new uint[element.
>> for (uint i = 0; i < element.
>> dofs[i] = 0;
>>
>> whereas is dolfin::UFC we use dof_map:
>
> Yes, it would be natural to have max_ in both and an optional cell
> argument.
>
> But for the finite element class, it would be better to have
>
> unsigned int max_space_
> unsigned int space_dimension
>
> rather than (max_)local_
> dimension for an element (not local and global).
>
Yes, these names are what I intended.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by