Re: [petsc-users] Help using FAS as an initial guess

2023-05-02 Thread tt73
Thanks, Barry. I'll look into it.  Original message From: Barry Smith Date: 5/2/23 6:10 PM (GMT-05:00) To: "Takahashi, Tadanaga" Cc: PETSc Subject: Re: [petsc-users] Help using FAS as an initial guess   You might consider  https://petsc.org/release/manual

Re: [petsc-users] Help using FAS as an initial guess

2023-05-02 Thread Barry Smith
You might consider https://petsc.org/release/manualpages/SNES/SNESSetGridSequence/ it does exactly what I think you want to do. FAS is a bit more subtle than that. The "coarse grid problem" that FAS builds and solves are dependent on the current fine grid solution so you need an

[petsc-users] Help using FAS as an initial guess

2023-05-02 Thread Takahashi, Tadanaga
Hi, I want to know how to configure the FAS so that it solves a problem on a coarse grid of size 4h, interpolate the solution, and then stop. Here is the context: I am using Newton LS to solve a problem on square domain discretized with DMDA meshed with step size h. I have a subroutine to