<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Hello, Petsc group,<br></div><div dir="ltr"><div><br></div><div>I am learning the FE structure in Petsc by running case </div><div><a href="https://petsc.org/main/src/snes/tutorials/ex12.c.html" target="_blank">https://petsc.org/main/src/snes/tutorials/ex12.c.html</a> with <span style="color:rgb(178,34,34)">-run_type test -bc_type dirichlet -dm_plex_interpolate 0 -petscspace_degree 1 -show_initial -dm_plex_print_fem 1</span></div><div><span style="color:rgb(178,34,34)"><br></span></div><div>When I check the subroutine<span style="color:rgb(178,34,34)"> </span>PetscFECreateTabulation_Basic, I can not understand some parameters there. </div><div><br></div><div>For the following lines in the file (<a href="https://petsc.org/release//src/dm/dt/fe/impls/basic/febasic.c.html#PETSCFEBASIC" target="_blank">https://petsc.org/release//src/dm/dt/fe/impls/basic/febasic.c.html#PETSCFEBASIC</a>)</div><div><pre width="80" style="color:rgb(0,0,0)"><a name="m_-7005950170468391748_line135">135: </a>  <a href="https://petsc.org/release//manualpages/Sys/PetscCall/" target="_blank">PetscCall</a>(<a href="https://petsc.org/release//manualpages/DUALSPACE/PetscDualSpaceGetDimension/" target="_blank">PetscDualSpaceGetDimension</a>(fem->dualSpace, &pdim));
<a name="m_-7005950170468391748_line136">136: </a>  <a href="https://petsc.org/release//manualpages/Sys/PetscCall/" target="_blank">PetscCall</a>(<a href="https://petsc.org/release//manualpages/FE/PetscFEGetNumComponents/" target="_blank">PetscFEGetNumComponents</a>(fem, &Nc));</pre><pre width="80" style="color:rgb(0,0,0)">Here, Nc = 2, pdim =6. I am running a scalar case with degree of 1, </pre><pre width="80" style="color:rgb(0,0,0)">I expect Nc = 1 and pdim =3. Could you please explain this? In addition,</pre><pre width="80" style="color:rgb(0,0,0)">Thanks, </pre><pre width="80" style="color:rgb(0,0,0)">Xiaodong</pre><pre width="80" style="color:rgb(0,0,0)"><br></pre></div><div><span style="color:rgb(178,34,34)"><br></span></div></div>
</div></div>