<div dir="ltr">I think I fixed it.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 13, 2020 at 6:58 PM Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I tried to add code to DMPlexts.c and am getting this error:</div><div><br></div><div><a href="https://gitlab.com/petsc/petsc/-/jobs/636828148" target="_blank">https://gitlab.com/petsc/petsc/-/jobs/636828148</a><br></div><div><br></div><div><div style="box-sizing:border-box;padding:1px 8px 1px 55px;min-height:1.25rem;color:rgb(255,255,255);font-family:Menlo,"DejaVu Sans Mono","Liberation Mono",Consolas,"Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px;background-color:rgb(17,17,17)"><span style="box-sizing:border-box;white-space:pre-wrap">dmplexts.c:(.text+0x1a0f): undefined reference to `DMPlexLandFormLandau_Internal'</span></div><div style="box-sizing:border-box;padding:1px 8px 1px 55px;min-height:1.25rem;color:rgb(255,255,255);font-family:Menlo,"DejaVu Sans Mono","Liberation Mono",Consolas,"Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px;background-color:rgb(17,17,17)"><a id="gmail-m_377552540316382766gmail-L1648" href="https://gitlab.com/petsc/petsc/-/jobs/636828148#L1648" style="box-sizing:border-box;color:rgb(119,119,119);background-color:transparent;font-size:0.875rem;padding:0px 1em 0px 8px;min-width:50px;display:inline-block;text-align:right" target="_blank">1648</a></div><br></div><div>with this code:</div><div><br></div><div>PETSC_INTERN PetscErrorCode DMPlexLandFormLandau_Internal(Vec a_X, Mat JacP, const PetscInt dim, void *a_ctx);<br>/*@<br> DMPlexLandIFunction<br>@*/<br>PetscErrorCode DMPlexLandIFunction(TS ts,PetscReal time_dummy,Vec X,Vec X_t,Vec F,void *actx)<br>{<br>.....<br> ierr = DMPlexLandFormLandau_Internal(X,ctx->J,dim,(void*)ctx);CHKERRQ(ierr);<br></div><div><br></div><div>I tried with EXTERN also. Any ideas?</div><div>Thanks,</div><div>Mark</div></div>
</blockquote></div>