<div dir="ltr"><div><div><div><div><div><div>Hello,<br></div>         I am getting a segfault in DMPlexcreateSectionF90 ...I am not sure if the problem is in parameters i pass or it is coming from petsc...can you help me fix this ?<br>
</div>Here is the output from debugger:<br></div>I print the variables passed to function before call and they seem consistent with the format required by the DMPlexCreateSectionF90 call...<br><br>Breakpoint 1.1, FEMLIB_M::setupdefualtsection_dofmap (this=0x2781e28) at /home1/00924/R<br>
eddy135/projects/utgds/src/fem/VariationalProblemBoundProcedures.F90:197<br>197       call DMPlexCreateSectionF90(this%mdata%Meshdm,this%tdim, this%numField, &<br>(idb) s<br>198            this%numComp,this%cellDofMap, this%numBC, this%bcFieldId,  &<br>
(idb) s<br>199            this%bcPointIS,section,ierr)<br>(idb) print this%tdim<br>$25 = 1<br>(idb) print this%numField<br>$26 = 1<br>(idb) print this%numcomp<br>$27 = 1<br>(idb) print this%cellDofMap<br>$28 = {1, 0}<br>(idb) print this%numBC<br>
$29 = 2<br>(idb) c<br>Continuing.<br><br>Breakpoint 1.2, FEMLIB_M::setupdefualtsection_dofmap (this=0x2781e28) at /home1/00924/R<br>eddy135/projects/utgds/src/fem/VariationalProblemBoundProcedures.F90:197<br>197       call DMPlexCreateSectionF90(this%mdata%Meshdm,this%tdim, this%numField, &<br>
(idb) c<br>Continuing.<br><br>Breakpoint 1.3, FEMLIB_M::setupdefualtsection_dofmap (this=0x2781e28) at /home1/00924/R<br>eddy135/projects/utgds/src/fem/VariationalProblemBoundProcedures.F90:197<br>197       call DMPlexCreateSectionF90(this%mdata%Meshdm,this%tdim, this%numField, &<br>
(idb) c<br>Continuing.<br><br></div>Now i see a segfault in inside the petsc call<br><br>Program received signal SIGSEGV<br>DMPlexCreateSectionInitial (dm=0x281cfa0, dim=1, numFields=1, numComp=0x43ce7cf20000000<br>1, numDof=0x1, section=0x7fffa07c8d28) at /home1/00924/Reddy135/LocalApps/petsc/src/dm/<br>
impls/plex/plex.c:5892<br>5892        for (f = 0; f < numFields; ++f) numDofTot[d] += numDof[f*(dim+1)+d];<br><br></div>why is the adress of numDof 0x1 ? some thing wrong in the FortranAddress conversion code in zplexf90 ?<br>
<br></div>here is the backtrace<br><br>#0  0x00002b79e6cec09a in DMPlexCreateSectionInitial (dm=0x281cfa0, dim=1, numFields=1,<br> numComp=0x43ce7cf200000001, numDof=0x1, section=0x7fffa07c8d28) at /home1/00924/Reddy1<br>
35/LocalApps/petsc/src/dm/impls/plex/plex.c:5892<br>#1  0x00002b79e6cf1038 in DMPlexCreateSection (dm=0x281cfa0, dim=1, numFields=1, numCom<br>p=0x43ce7cf200000001, numDof=0x1, numBC=2, bcField=0xc420000000000000, bcPoints=0xc4200<br>
00002a66e21, section=0x7fffa07c8d28) at /home1/00924/Reddy135/LocalApps/petsc/src/dm/im<br>pls/plex/plex.c:6148<br>#2  0x00002b79e6d9e571 in dmplexcreatesectionf90_ (dm=0x259bda8, dim=0x2781e8c, numFiel<br>ds=0x2781e90, ptrC=0x25ed9e0, ptrD=0x28adf00, numBC=0x27820a0, ptrF=0x25eda00, ptrP=0x2<br>
878900, section=0x7fffa07c8d28, __ierr=0x7fffa07c8c98) at /home1/00924/Reddy135/LocalAp<br>ps/petsc/src/dm/impls/plex/f90-custom/zplexf90.c:221<br clear="all"><div><div><div><div><div><div><div><div><br>-- <br>-----------------------------------------------------<br>
Dharmendar Reddy Palle<br>Graduate Student<br>Microelectronics Research center,<br>University of Texas at Austin,<br>10100 Burnet Road, Bldg. 160<br>MER 2.608F, TX 78758-4445<br>e-mail: <a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a><br>
Phone: +1-512-350-9082<br>United States of America.<br>Homepage: <a href="https://webspace.utexas.edu/~dpr342" target="_blank">https://webspace.utexas.edu/~dpr342</a><br>
</div></div></div></div></div></div></div></div></div>