[petsc-dev] TS fortran binding patch

Jed Brown jedbrown at mcs.anl.gov
Fri Aug 17 10:32:07 CDT 2012


http://petsc.cs.iit.edu/petsc/releases/petsc-3.3/rev/22c370214d74

On Fri, Aug 17, 2012 at 10:25 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> Do you have any tests for this?
>
> There were some duplicate names
>
> +#define tssetifunction_                      tssetifunction
> +#define tssetifunction_                      tsgetifunction
> +#define tssetijacobian_                      tssetijacobian
> +#define tssetijacobian_                      tsgetijacobian
>
> and missing error checking
>
> +void PETSC_STDCALL tsgetijacobian_(TS *ts,Mat *J,Mat *M,int *func,void
> **ctx,PetscErrorCode *ierr)
> +{
> +  *ierr = TSGetIJacobian(*ts,J,M,0,ctx);
> +}
>
> which I am fixing up.
>
> On Fri, Aug 17, 2012 at 9:00 AM, Blaise Bourdin <bourdin at lsu.edu> wrote:
>
>> Hi,
>>
>> The attached trivial patch adds fortran bindings for a few TS functions
>> (TSGetIFunction, TSGetRHSFunction, TSGetIJAcobian, TSSetOptiosnPrefix,
>> TSAppendOptionsPrefix). Can somebody push it to petsc-3.3 if it makes sense?
>>
>> Blaise
>>
>>
>> --
>> Department of Mathematics and Center for Computation & Technology
>> Louisiana State University, Baton Rouge, LA 70803, USA
>> Tel. +1 (225) 578 1612, Fax  +1 (225) 578 4276
>> http://www.math.lsu.edu/~bourdin
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120817/93873571/attachment.html>


More information about the petsc-dev mailing list