> On 12 Jul 2024, at 5:51 AM, Ivan Luthfi <[email protected]> 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
