[petsc-dev] C++ error

Mark Adams mfadams at lbl.gov
Mon Jul 13 18:08:30 CDT 2020


I think I fixed it.

On Mon, Jul 13, 2020 at 6:58 PM Mark Adams <mfadams at lbl.gov> wrote:

> I tried to add code to DMPlexts.c and am getting this error:
>
> https://gitlab.com/petsc/petsc/-/jobs/636828148
>
> dmplexts.c:(.text+0x1a0f): undefined reference to
> `DMPlexLandFormLandau_Internal'
> 1648 <https://gitlab.com/petsc/petsc/-/jobs/636828148#L1648>
>
> with this code:
>
> PETSC_INTERN PetscErrorCode DMPlexLandFormLandau_Internal(Vec a_X, Mat
> JacP, const PetscInt dim, void *a_ctx);
> /*@
>   DMPlexLandIFunction
> @*/
> PetscErrorCode DMPlexLandIFunction(TS ts,PetscReal time_dummy,Vec X,Vec
> X_t,Vec F,void *actx)
> {
> .....
>     ierr =
> DMPlexLandFormLandau_Internal(X,ctx->J,dim,(void*)ctx);CHKERRQ(ierr);
>
> I tried with EXTERN also. Any ideas?
> Thanks,
> Mark
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200713/6728b346/attachment-0001.html>


More information about the petsc-dev mailing list