[petsc-users] DMForest

2018-09-06 Thread Sepideh Kavousi
Hello, I have a Petsc code solving PDE using FD method, and I generated the structures grid with DMDA. I was planning to implement adaptive mesh refinement to the same structures mesh but the documentation on the DMForest is not easy to find. I checked the

Re: [petsc-users] DMForest

2018-09-10 Thread Sepideh Kavousi
, September 6, 2018 6:46:55 PM To: Sepideh Kavousi Cc: PETSc Subject: Re: [petsc-users] DMForest On Thu, Sep 6, 2018 at 6:04 PM Sepideh Kavousi mailto:skav...@lsu.edu>> wrote: Hello, I have a Petsc code solving PDE using FD method, and I generated the structures grid with DMDA. I was pl

Re: [petsc-users] error running parallel on cluster

2018-04-18 Thread Sepideh Kavousi
Mathew and Dave, Thank you so much it is working perfectly now. Sepideh From: Dave May <dave.mayhe...@gmail.com> Sent: Wednesday, April 18, 2018 3:13:33 PM To: Sepideh Kavousi Cc: Matthew Knepley; petsc-users@mcs.anl.gov Subject: Re: [petsc-users] error r

Re: [petsc-users] error running parallel on cluster

2018-04-18 Thread Sepideh Kavousi
It is really a pleasure for me. Thanks, Sepidwh Get Outlook for Android<https://aka.ms/ghei36> From: Dave May <dave.mayhe...@gmail.com> Sent: Wednesday, April 18, 2018 11:14:47 PM To: Matthew Knepley Cc: Sepideh Kavousi; petsc-users@mcs.anl.gov

Re: [petsc-users] error running parallel on cluster

2018-04-19 Thread Sepideh Kavousi
Thanks. Sepideh From: Matthew Knepley <knep...@gmail.com> Sent: Thursday, April 19, 2018 1:48:57 PM To: Sepideh Kavousi Cc: Dave May; petsc-users@mcs.anl.gov; Karl Rupp Subject: Re: [petsc-users] error running parallel on cluster Great! I have approved i

Re: [petsc-users] error running parallel on cluster

2018-04-19 Thread Sepideh Kavousi
I submitted the pull request this morning. Regards, Sepideh From: Dave May <dave.mayhe...@gmail.com> Sent: Wednesday, April 18, 2018 11:14:47 PM To: Matthew Knepley Cc: Sepideh Kavousi; petsc-users@mcs.anl.gov Subject: Re: [petsc-users] error running pa

Re: [petsc-users] error running parallel on cluster

2018-04-17 Thread Sepideh Kavousi
<knep...@gmail.com> Sent: Tuesday, April 17, 2018 1:22:53 PM To: Sepideh Kavousi Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] error running parallel on cluster On Tue, Apr 17, 2018 at 1:50 PM, Sepideh Kavousi <skav...@lsu.edu<mailto:skav...@lsu.edu>> wrote: Mathew,

Re: [petsc-users] error running parallel on cluster

2018-04-17 Thread Sepideh Kavousi
not understand dm and da are connected, although I have used TSSetDM in the main function. Can you please help me what should I do? Regards, Sepideh From: Matthew Knepley <knep...@gmail.com> Sent: Monday, April 16, 2018 9:34:01 PM To: Sepideh Kavo

Re: [petsc-users] error running parallel on cluster

2018-04-16 Thread Sepideh Kavousi
_________ From: Matthew Knepley <knep...@gmail.com> Sent: Monday, April 16, 2018 8:36:37 PM To: Sepideh Kavousi Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] error running parallel on cluster On Mon, Apr 16, 2018 at 9:20 PM, Sepideh Kavousi <skav...@lsu.ed

[petsc-users] error running parallel on cluster

2018-04-16 Thread Sepideh Kavousi
Hello, I am solving a PDE where I have the spacial derivtive of the time derivative of a variable. In the DMDATSSetIFunctionLocal function I defined d(dY/dt)/dx as: (aYdot[j][i+1].p-aYdot[j][i-1].p)/(2.0*user->hx) on my workstation, it is working but on the cluster it gives an error. I can

Re: [petsc-users] error running parallel on cluster

2018-04-16 Thread Sepideh Kavousi
) ==39396== Address 0x18 is not stack'd, malloc'd or (recently) free'd ==39396== Thanks, Sepideh From: Matthew Knepley <knep...@gmail.com> Sent: Monday, April 16, 2018 8:44:43 PM To: Sepideh Kavousi Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] error r

Re: [petsc-users] error running parallel on cluster

2018-04-16 Thread Sepideh Kavousi
did not have such problem when there were only spacial derivatives in FormFunction calculations of DMDATSSetIFunctionLocal. Can you please help me what I should do? Sepideh From: Sepideh Kavousi Sent: Monday, April 16, 2018 9:22:31 PM To: Matthew Knepley Cc: petsc-us

[petsc-users] read variables from a source file in petsc

2018-04-02 Thread Sepideh Kavousi
Hi all, I wrote a petsc code, and I defined my variables in a separate file, namely common.h, and common.c as following common.h: extern int i; extern int n; common.c: #include #include "common.h PetscScalar i; // Define i and initialize PetscScalar n; // Define n and

Re: [petsc-users] read variables from a source file in petsc

2018-04-03 Thread Sepideh Kavousi
thanks. It works Sepideh From: Matthew Knepley <knep...@gmail.com> Sent: Tuesday, April 3, 2018 5:53:56 AM To: Sepideh Kavousi Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] read variables from a source file in petsc On Mon, Apr 2, 2018 at 10

[petsc-users] ghoat point in DMDATSSetIFunctionLocal

2018-06-28 Thread Sepideh Kavousi
Hello, I am solving Cahn-Hillard equation where I have Laplacian in my equation. In order to discretize the Laplacian, I can discretize with 5-point or 9-point stencil. 5 point stencile:

[petsc-users] TSMonitorSolutionVTK

2020-02-13 Thread Sepideh Kavousi
Dear Petsc users, I am trying to write VTK output file every few steps. When I was using the petsc 3.7 I used the following lines: if (user->ts_write % 500 ==0) { ierr= PetscSNPrintf(user->filename,sizeof(user->filename),"one-%03d.vts",user->ts_write);CHKERRQ(ierr); ierr=

[petsc-users] convergence problem- 3D Cahn Hillard

2021-01-05 Thread Sepideh Kavousi
Dear Petsc Users I wrote a code in 2D solving PF equations for solidification of alloys. I have two variables in the equations 1-non-dimensional concentration (U) 2- order parameter (p). Everything is fine with this code. When I change the code to 3D, the code has convergence problems which I

Re: [petsc-users] SNES-norm is zero all the time

2021-02-03 Thread Sepideh Kavousi
Oh my god, it was a bad one. Thanks for helping. Sepideh From: Matthew Knepley Sent: Wednesday, February 3, 2021 12:14 PM To: Sepideh Kavousi Cc: Jed Brown ; petsc-users@mcs.anl.gov Subject: Re: [petsc-users] SNES-norm is zero all the time On Wed, Feb 3, 2021

Re: [petsc-users] SNES-norm is zero all the time

2021-02-03 Thread Sepideh Kavousi
my previous codes I define" aF[j][i].vx" and not "aF[i][j].vx", and it was working properly. Best, Sepideh From: Jed Brown Sent: Wednesday, February 3, 2021 11:46 AM To: Sepideh Kavousi ; petsc-users@mcs.anl.gov Subject: Re: [petsc-users] SNES

Re: [petsc-users] SNES-norm is zero all the time

2021-02-03 Thread Sepideh Kavousi
copy! 0 SNES Function norm 0.e+00 Nonlinear solve converged due to CONVERGED_FNORM_ABS iterations 0 ... From: Jed Brown Sent: Wednesday, February 3, 2021 11:19 AM To: Sepideh Kavousi ; petsc-users@mcs.anl.gov Subject: Re: [petsc-users] SNES

[petsc-users] SNES-norm is zero all the time

2021-02-03 Thread Sepideh Kavousi
Hello, I have a very stupid problem that I am really ashamed of asking but it has been with me for days and I do not know what to do. I want to solve the Javier stokes equation with finite difference method. When I wanted to run the code, the snes norm value does not change and i get an error

[petsc-users] PF+Navier stokes

2021-03-22 Thread Sepideh Kavousi
Hello, I want to solve PF solidification+Navier stokes using Finite different method, and I have a strange problem. My code runs fine for some system sizes and fails for some of the system sizes. When I run with the following options: mpirun -np 2 ./one.out -ts_monitor -snes_fd_color

Re: [petsc-users] PF+Navier stokes

2021-03-22 Thread Sepideh Kavousi
9:15 AM To: Sepideh Kavousi Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] PF+Navier stokes On Mon, Mar 22, 2021 at 10:04 AM Sepideh Kavousi mailto:skav...@lsu.edu>> wrote: Hello, I want to solve PF solidification+Navier stokes using Finite different method, and I have a s

[petsc-users] convergence slow

2021-04-19 Thread Sepideh Kavousi
Hello, I want to solve PF solidification+Navier stokes using Finite different method. The Poisson equation is much more complicated that the one for just a fluid-flow problems (because it includes different terms order parameter terms). The code converges but the convergence rate is very slow. I

Re: [petsc-users] convergence slow

2021-04-20 Thread Sepideh Kavousi
From: Matthew Knepley Sent: Tuesday, April 20, 2021 7:23 AM To: Sepideh Kavousi Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] convergence slow On Mon, Apr 19, 2021 at 5:43 PM Sepideh Kavousi mailto:skav...@lsu.edu>> wrote: Hello, I want to solve PF solidification+

Re: [petsc-users] [External] Re: Periodic boundary condition

2022-10-20 Thread Sepideh Kavousi
c application called MPI_Abort(MPI_COMM_WORLD, 50176059) - process 0 [unset]: readline failed Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows From: Barry Smith<mailto:bsm...@petsc.dev> Sent: Thursday, October 20, 2022 10:27 PM To: Sepideh Kavousi<mailto:k

[petsc-users] Periodic boundary condition

2022-10-20 Thread Sepideh Kavousi
Hello, I want to solve my 5 PDEs based on finite difference method using periodic BC in x-direction and non-periodic in y-direction but I run into error (Segmentation Violation, probably memory access out of range). For this, I discretize my equation in FormFunction function. My PDE

[petsc-users] Caught signal number 15 Terminate

2019-08-28 Thread Sepideh Kavousi via petsc-users
Dear Petsc users, I have a code which is very strange that works for some cases and for some cases it gives an error. I run the following command: mpiexec -np 20 valgrind --tool=memcheck -q --num-callers=20 --log-file=valgrind.log.%p ./one.out -ts_monitor -snes_fd_color -ts_max_snes_failures