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 01:47 PM, Fazlul Huq wrote: >

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

2018-07-27 Thread Karl Rupp
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 01:47 PM, Fazlul Huq wrote: Thanks Matthew. By the way, how can I find the execution time of the processor

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 output on the >> console: .

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

2018-07-19 Thread Matthew Knepley
On Thu, Jul 19, 2018 at 1:44 PM Fazlul Huq wrote: > Hello all, > > I can run the following code with this command showing output on the > console: ./poisson_m -ksp_view_solution > What is the question? To put that ASCII output in a file, use -ksp_view_solution :sol.txt There is a chapter in th

[petsc-users] Saving output and execution time

2018-07-19 Thread Fazlul Huq
Hello all, I can run the following code with this command showing output on the console: ./poisson_m -ksp_view_solution The code is: static char help[] = "Solves a tridiagonal linear system.\n\n"; /*T Concepts: KSP^basic parallel example; Processors: n T*/ /* Include "petscksp.h" so tha