[petsc-users] error: 'DMDA_BOUNDARY_NONE'

Pierre Jolivet pierre at joliv.et
Fri Jul 12 01:00:48 CDT 2024



> On 12 Jul 2024, at 5:51 AM, Ivan Luthfi <ivanluthfi5 at gmail.com> wrote:
> 
> This Message Is From an External Sender
> This message came from outside your organization.
> Hello there,
> I am trying to update a very old petsc code. 
> 
> When i run it i get the following error.
> 
> FormFunction.c:14:47: error: 'DMDA_BOUNDARY_NONE' undeclared (first use in this function); did you mean 'DM_BOUNDARY_NONE'?
> 
>  ierr = DMDACreate2d(PETSC_COMM_WORLD, DMDA_BOUNDARY_NONE, DMDA_BOUNDARY_NONE, DMDA_STENCIL_BOX, -(up->Lx+1), 
> -(up->Ly+1), PETSC_DECIDE, PETSC_DECIDE, 1, 1, 0, 0, &up->fine);CHKERRQ(ierr);
> 
> 
> what is the solution for this?

Have you tried the compiler suggestion (did you mean 'DM_BOUNDARY_NONE') ?

Thanks,
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240712/98873a20/attachment-0001.html>


More information about the petsc-users mailing list