Re: [petsc-users] Matrix assembly takes too long

2024-07-14 Thread Barry Smith
> On Jul 14, 2024, at 6:04 PM, Alex Sp wrote: > > This Message Is From an External Sender > This message came from outside your organization. > Hello, > > I am trying to solve the problem of the 3D fluid flow around a cylinder using > an in-house finite element Fortran code. I want to apply p

[petsc-users] Matrix assembly takes too long

2024-07-14 Thread Alex Sp
Hello, I am trying to solve the problem of the 3D fluid flow around a cylinder using an in-house finite element Fortran code. I want to apply periodic boundary conditions in the neutral direction (the z direction which coincides with the axis of the cylinder). The method works fine and it gives co

Re: [petsc-users] [petsc-maint] Error in using KSPSOperators

2024-07-14 Thread Matthew Knepley
On Sun, Jul 14, 2024 at 4:55 AM Ivan Luthfi wrote: > Hi there, I have an issue in compiling my code. Here is the warning: > MsFEM_poisson2D_DMDA. c: 159: 65: error: cannot convert ‘MatStructure’ to > ‘Mat’ {aka ‘_p_Mat*’} 159 | ierr = KSPSetOperators(ksp_direct,up. > Af,DIFFERENT_NONZERO_PATTERN)

[petsc-users] Error in using KSPSOperators

2024-07-14 Thread Ivan Luthfi
Hi there, I have an issue in compiling my code. Here is the warning: MsFEM_poisson2D_DMDA.c:159:65: error: cannot convert ‘MatStructure’ to ‘Mat’ {aka ‘_p_Mat*’} 159 | ierr = KSPSetOperators(ksp_direct,up.Af,DIFFERENT_NONZERO_PATTERN);CHKERRQ(ierr); Please help me -- B