I need my KSP to take in Tolerence, flag, err, 3 matrices, right hand side vector. How can I make it to take all the parameters.<br><br><div class="gmail_quote">On Mon, Sep 20, 2010 at 11:00 AM, <span dir="ltr"><<a href="mailto:petsc-users-request@mcs.anl.gov">petsc-users-request@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Send petsc-users mailing list submissions to<br>
<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/petsc-users" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/petsc-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:petsc-users-request@mcs.anl.gov">petsc-users-request@mcs.anl.gov</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:petsc-users-owner@mcs.anl.gov">petsc-users-owner@mcs.anl.gov</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of petsc-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. How to pass the parameters for KSP (vedaprakash subramanian)<br>
2. Re: How to pass the parameters for KSP (Barry Smith)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 19 Sep 2010 19:05:48 -0600<br>
From: vedaprakash subramanian <<a href="mailto:vedaprakashsubramanian@gmail.com">vedaprakashsubramanian@gmail.com</a>><br>
Subject: [petsc-users] How to pass the parameters for KSP<br>
To: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
Message-ID:<br>
<AANLkTinjiGMTMVB1yVx6JEvPhjGi_=<a href="mailto:T%2BQY6HK7wnHgOa@mail.gmail.com">T+QY6HK7wnHgOa@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
I am converting a MATLAB function into a KSP solver. I am doing it similar<br>
to BiCGStab. But I wanted to know how to pass the arguments of the function<br>
into KSP solver.<br>
<br>
Thanks,<br>
Vedaprakash<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100919/9d902e74/attachment-0001.htm" target="_blank">http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100919/9d902e74/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 19 Sep 2010 21:49:47 -0500<br>
From: Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>><br>
Subject: Re: [petsc-users] How to pass the parameters for KSP<br>
To: PETSc users list <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>><br>
Message-ID: <<a href="mailto:27B820EF-3A6A-424B-8A43-2A43E82089B3@mcs.anl.gov">27B820EF-3A6A-424B-8A43-2A43E82089B3@mcs.anl.gov</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
What arguments? Do you mean the right hand side x and the matrix? Or do you mean parameters like the relative tolerance in convergence?<br>
<br>
See src/ksp/ksp/examples/tutorials/ex1.c for a simple example.<br>
<br>
Barry<br>
<br>
On Sep 19, 2010, at 8:05 PM, vedaprakash subramanian wrote:<br>
<br>
> I am converting a MATLAB function into a KSP solver. I am doing it similar to BiCGStab. But I wanted to know how to pass the arguments of the function into KSP solver.<br>
><br>
> Thanks,<br>
> Vedaprakash<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
petsc-users mailing list<br>
<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/petsc-users" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/petsc-users</a><br>
<br>
<br>
End of petsc-users Digest, Vol 21, Issue 32<br>
*******************************************<br>
</blockquote></div><br>