Re: [petsc-users] Norm_2 calculation

2020-06-05 Thread Fazlul Huq
> On Fri, Jun 5, 2020 at 2:18 PM Fazlul Huq wrote: > >> The same is happening with "-pc_type hypre -pc_hypre_type boomerang" and >> with "-pc_type ilu". >> >> I tried with, >> ierr = >> KSPSetTolerances(ksp,1.e-10,PETSC_DEFAULT,PETSC_DE

Re: [petsc-users] Norm_2 calculation

2020-06-05 Thread Fazlul Huq
o go over this issue? Shall I send the code? It's not a large script (single routine, less than 100 lines except comment). Thank you. Sincerely, Huq On Fri, Jun 5, 2020 at 12:53 PM Matthew Knepley wrote: > On Fri, Jun 5, 2020 at 12:32 PM Fazlul Huq wrote: > >> Input string: >

Re: [petsc-users] Norm_2 calculation

2020-06-05 Thread Fazlul Huq
Input string: mpiexec -np 1 ./poisson_m -n 1000 -pc_type cholesky -ksp_view -ksp_converged_reason -ksp_monitor_true_residual Output is attached herewith. Thank you. Sincerely, Huq On Fri, Jun 5, 2020 at 10:16 AM Matthew Knepley wrote: > On Fri, Jun 5, 2020 at 11:04 AM Fazlul Huq wr

[petsc-users] Norm_2 calculation

2020-06-05 Thread Fazlul Huq
m);CHKERRQ(ierr); ierr = PetscPrintf(PETSC_COMM_WORLD,"Iterations %D\n",its);CHKERRQ(ierr); } Am I calculating the "Norm_2" error correctly or making any mistake? Unfortunately, for large sized matrix, say 10^6, I am getting very high value of "Norm_2" error. Than

Re: [petsc-users] Running example problem

2020-06-04 Thread Fazlul Huq
"make all test" gives the attached summary. Looks like only one problem failed. All the others passed. Thanks. Sincerely, Huq On Thu, Jun 4, 2020 at 12:27 PM Satish Balay wrote: > Should work > > If it fails - send us corresponding configure.log > > Satish > >

Re: [petsc-users] Running example problem

2020-06-04 Thread Fazlul Huq
the same MPI, compilers etc as PETSc > - you can use --with-hypre-dir option with PETSc configure > > Satish > > On Thu, 4 Jun 2020, Fazlul Huq wrote: > > > I have HYPRE installed in my machine. > > Ithink, I need to compile PETSc with HYPRE. > > I'm not

Re: [petsc-users] Running example problem

2020-06-04 Thread Fazlul Huq
I have HYPRE installed in my machine. Ithink, I need to compile PETSc with HYPRE. I'm not clear about how to do that? Thank you. Sincerely, Huq On Thu, Jun 4, 2020 at 10:13 AM Matthew Knepley wrote: > On Thu, Jun 4, 2020 at 10:28 AM Fazlul Huq wrote: > >> Thank you. >&g

Re: [petsc-users] Running example problem

2020-06-04 Thread Fazlul Huq
On Thu, Jun 4, 2020 at 8:34 AM Matthew Knepley wrote: > > On Thu, Jun 4, 2020 at 9:19 AM Dave May wrote: > >> >> >> On Thu, 4 Jun 2020 at 14:17, Dave May wrote: >> >>> >>> >>> On Thu, 4 Jun 2020 at 14:15, Matthew Knepley wrot

Re: [petsc-users] Running example problem

2020-06-04 Thread Fazlul Huq
Somehow, make is not working. Please find the attachment herewith for the terminal readout. Thank you. Sincerely, Huq On Thu, Jun 4, 2020 at 7:57 AM Matthew Knepley wrote: > On Thu, Jun 4, 2020 at 8:53 AM Fazlul Huq wrote: > >> Hello, >> >> I have a very preliminar

[petsc-users] Running example problem

2020-06-04 Thread Fazlul Huq
trying to run an example from the list of provided examples. Can you please help me out, how to run an example problem from the list of examples? I mean, how to make executable and run the executable? Thank you. Sincerely, Huq -- Fazlul Huq Graduate Research Assistant Department of Nuclear, Plasma

Re: [petsc-users] Problem with large grid size

2018-11-29 Thread Fazlul Huq via petsc-users
chine? Thanks. Sincerely, Huq On Thu, Nov 29, 2018 at 8:26 PM Fazlul Huq wrote: > Thanks. > > I have configured with 64-bit and then when I run, I got the following &

[petsc-users] Problem with large grid size

2018-11-29 Thread Fazlul Huq via petsc-users
boomeramg -ksp_view_solution Any suggestions is appreciated. Thanks. Sincerely, Huq -- Fazlul Huq Graduate Research Assistant Department of Nuclear, Plasma & Radiological Engineering (NPRE) University of Illinois at Urbana-Champaign (UIUC) E-mail: huq2...@gmail.com static char help[] = "

Re: [petsc-users] Problem to configure

2018-11-26 Thread Fazlul Huq via petsc-users
It works! Thanks. Sincerely, Huq On Tue, Nov 20, 2018 at 6:17 PM Balay, Satish wrote: > Try: > > rm -rf arch-linux2-c-debug > > And rebuild petsc. ie. redo configure and make > > Satish > > We don't know why this On Tue, 20 Nov 2018, Fazlul Huq via p

[petsc-users] Example 23 of ksp problems

2018-11-26 Thread Fazlul Huq via petsc-users
ble)norm,its);CHKERRQ(ierr); } I don't understand what is "tol" here and "*PETSC_MACHINE_EPSILON"? The if condition is also not clear to me. Thanks. Sincerely, Huq -- Fazlul Huq Graduate Research Assistant Department of Nuclear, Plasma & Ra

Re: [petsc-users] Expecting Explanation

2018-11-18 Thread Fazlul Huq via petsc-users
So I have to remove mpiexec from usr/bin and keep it in home/petsc-3.10.2/lib/petsc/bin Is it? Thanks. Sincerely, Huq On Sun, Nov 18, 2018 at 6:49 AM Matthew Knepley wrote: > On Sat, Nov 17, 2018 at 10:37 PM Fazlul Huq via petsc-users < > petsc-users@mcs.anl.gov> wrote: >

Re: [petsc-users] Example 1 of Vector section

2018-09-24 Thread Fazlul Huq
Got it. Thanks a lot. Best, Huq On Mon, Sep 24, 2018 at 8:26 PM Matthew Knepley wrote: > On Mon, Sep 24, 2018 at 9:02 PM Fazlul Huq wrote: > >> Hello All, >> >> I am looking through the example problems given in PETSc. In the very >> first example, ex1 of vect

[petsc-users] Example 1 of Vector section

2018-09-24 Thread Fazlul Huq
e %g\n",(double)v);CHKERRQ(ierr); All the best. Sincerely, Huq -- Fazlul Huq Graduate Research Assistant Department of Nuclear, Plasma & Radiological Engineering (NPRE) University of Illinois at Urbana-Champaign (UIUC) E-mail: huq2...@gmail.com

[petsc-users] Execution time of the code

2018-09-01 Thread Fazlul Huq
Hello PETSc Developers, I know that to know the execution time of code I have to run code with -log_view and I also read chapter 13 (Profiling) of the user-manual, but I can't figure out what is the total execution time of my code from the information printed on the screen. I got Time (sec) there

Re: [petsc-users] Using C routines in PETSc code

2018-08-31 Thread Fazlul Huq
Thanks Barry. I will try to fix the error. Sincerely, Huq On Fri, Aug 31, 2018 at 12:43 PM Smith, Barry F. wrote: > > > > On Aug 31, 2018, at 12:12 PM, Fazlul Huq wrote: > > > > Hello PETSc Developers, > > Can I use c programming routine in PETSc code and mak

[petsc-users] Using C routines in PETSc code

2018-08-31 Thread Fazlul Huq
Hello PETSc Developers, Can I use c programming routine in PETSc code and make and run it (since PETSc is written in c)? Last day I tried to do that but I got error message while making the file. Thanks. Huq

Re: [petsc-users] Integration of hyper & trilinos

2018-08-30 Thread Fazlul Huq
s were to send the > files > > configure.log and make.log > > to petsc-ma...@mcs.anl.gov and we'll see if we can resolve the MPI issue. > > Barry > > > > On Aug 30, 2018, at 11:33 AM, Fazlul Huq wrote: > > > > I think error is in this portion, but

Re: [petsc-users] Integration of hyper & trilinos

2018-08-30 Thread Fazlul Huq
efile:30: recipe for target 'all' failed make: *** [all] Error 1 Thanks. Huq On Thu, Aug 30, 2018 at 11:22 AM Matthew Knepley wrote: > On Thu, Aug 30, 2018 at 11:59 AM Fazlul Huq wrote: > >> I did that and I got the following error: >> >> *

Re: [petsc-users] Integration of hyper & trilinos

2018-08-30 Thread Fazlul Huq
Thanks, Huq On Thu, Aug 30, 2018 at 10:55 AM Jed Brown wrote: > Fazlul Huq writes: > > > I have run: > > > > jimmy@dave:~/projects/petsc$ ./configure --download-hyper > > & > > jimmy@dave:~/projects/petsc$ .

Re: [petsc-users] Integration of hyper & trilinos

2018-08-30 Thread Fazlul Huq
led on its own). Then run your > application with run-time options like -pc_type hypre or -pc_type ml. > See the user's manual and/or tutorials. > > Fazlul Huq writes: > > > Hello Petsc developers, > > > > 1. I want to integrate petsc with hyper and trilin

[petsc-users] Integration of hyper & trilinos

2018-08-30 Thread Fazlul Huq
un it? If yes then what is the procedure? Last day I tried to do that but I got error message while making the file. Thanks. -- Fazlul Huq Graduate Research Assistant Department of Nuclear, Plasma & Radiological Engineering (NPRE) University of Illinois at Urbana-Champaign (UIUC) E-m

Re: [petsc-users] Saving output and execution time

2018-07-27 Thread Fazlul Huq
Thanks Karl! On Fri, Jul 27, 2018 at 2:09 PM, Karl Rupp wrote: > Hi Fazlul, > > Pass the command line option -log_view to get a detailed breakdown of time > spent in various code sections. For details, consult the manual. > > Best regards, > Karli > > On 07/27/2018

Re: [petsc-users] Saving output and execution time

2018-07-27 Thread Fazlul Huq
Thanks Matthew. By the way, how can I find the execution time of the processor? On Thu, Jul 19, 2018 at 7:34 PM, Matthew Knepley wrote: > On Thu, Jul 19, 2018 at 1:44 PM Fazlul Huq wrote: > >> Hello all, >> >> I can run the following code with this command showing

[petsc-users] Solving problems using multigrid

2018-07-26 Thread Fazlul Huq
Hello All, I am a new user of petsc and I am wondering, is it possible to solve both linear and non-linear problems using multigrid in petsc? Thanking you. Sincerely, Huq

[petsc-users] Getting time

2018-07-20 Thread Fazlul Huq
’ extern int printf (const char *__restrict __format, ...); ^~ /home/jimmy/projects/petsc/lib/petsc/conf/rules:359: recipe for target 'poisson_m.o' failed make: *** [poisson_m.o] Error 1 Thanks in advance. Sincerely, Huq -- Fazlul Huq Graduate Research Assistant Department of Nuclear, Plasma & Radiological Engineering (NPRE) University of Illinois at Urbana-Champaign (UIUC) E-mail: huq2...@gmail.com

[petsc-users] Saving output and execution time

2018-07-19 Thread Fazlul Huq
summary and diagnostic information if certain runtime options are chosen (e.g., -log_view). */ ierr = PetscFinalize(); return ierr; } Now I am trying to save this output in a file (say in a .csv file) at runtime along with execution time but I can't. Any suggestion please!