On Thu, 16 Mar 2017 at 07:16, Matthew Knepley <knep...@gmail.com> wrote:

> Hi Valentin,
>
> Have you seen this example:
> https://bitbucket.org/petsc/petsc/src/1830d94e4628b31f970259df1d58bc250c9af32a/src/ksp/ksp/examples/tutorials/ex2f.F?at=master&fileviewer=file-view-default
>
> Would that be enough to get started?
>

Matt is correct. The best way to get into PETSc is by studying the example
codes provided in the source tree.

As a precursor to studying fortran examples, you should take a look at this
page and decided which PETSc-fortran approach you wish to use:

http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/UsingFortran.html

Thanks,
  Dave


>   Thanks,
>
>      Matt
>
> On Thu, Mar 16, 2017 at 12:37 AM, Валентин Егоров <
> egorow.walen...@gmail.com> wrote:
>
> Hello!
> My name is Valentin Egorov. I am from Russia. And I have a question for
> you about PETSC. I would like to make a programm on Fortran with PETSC, but
> I can't. I have a matrix 400*400. I have also vector B with 400 elements. I
> need to solve linear equations. Could you help me to do it. I can't
> understand how use PETSC in Fortran? In fortran programm? And where to put
> matrix elements?
>
> Sincerely, Valentin Egorov!
>
>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>

Reply via email to