# Piecewise 𝑃2 discontinuous finite element is not applicable to 1D problem

**URL:** <https://community.freefem.org/t/piecewise-2-discontinuous-finite-element-is-not-applicable-to-1d-problem/1986>\
**Category:** General Discussion\
**Created:** [September 4, 2022, 12:24pm UTC](https://community.freefem.org/t/piecewise-2-discontinuous-finite-element-is-not-applicable-to-1d-problem/1986 "2022-09-04T12:24:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qianrui](https://avatars.discourse-cdn.com/v4/letter/q/9fc348/32.png) [@Qianrui](https://community.freefem.org/u/Qianrui)\
**Post date:** [September 4, 2022, 12:24pm UTC](https://community.freefem.org/t/piecewise-2-discontinuous-finite-element-is-not-applicable-to-1d-problem/1986/1 "2022-09-04T12:24:50Z")

</div>

Hello, load “element\_p1dc1” is applicable to 1D problem, while p2dc is not applicable to 1D problem. What are the commands for high-order interpolation, quadratic interpolation and cubic interpolation of 1D discontinuous finite element?

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [September 6, 2022, 4:09pm UTC](https://community.freefem.org/t/piecewise-2-discontinuous-finite-element-is-not-applicable-to-1d-problem/1986/2 "2022-09-06T16:09:08Z")

</div>

This is no problem

see

```auto
load "msh3"
meshL Th=Sline(10); 
fespace Wh(Th,P2dcL);

```

te result:

```auto
Last login: Tue Sep 6 18:02:15 on ttys001
MBP-M1-FH:~ hecht$ cd /Users/hecht/Desktop/bug-ff; cd '/Users/hecht/Desktop/bug-ff'; /Applications/FreeFem++.app/Contents/ff-4.11/bin/FreeFem++ 'P2dcL.edp' -glut '/Applications/FreeFem++.app/Contents/ff-4.11/bin/ffglut' ;exit;
-- FreeFem++ v4.11 (Ven 2 sep 2022 15:21:54 CEST - git help-86-g7733f688)
   file : P2dcL.edp
 Load: lg_fem lg_mesh lg_mesh3 eigenvalue 
    1 : load "msh3"
    2 : meshL Th=Sline(10); 
    3 : fespace Wh(Th,P2dcL); sizestack + 1024 =1312 ( 288 )

  -- Build Nodes/DF on mesh : n.v. 11, n. elmt. 10, n b. elmt. 2
     nb of Nodes 10 nb of DoF 30 DFon=0300
  -- FESpace: Nb of Nodes 10 Nb of DoF 30
times: compile 0.004097s, execution 0.000163s, mpirank:0
 CodeAlloc : nb ptr 3761, size :483304 mpirank: 0
Ok: Normal End
logout

```
