[petsc-dev] patches for PetscBagSetFromOptions and associated	fortran example
    Blaise Bourdin 
    bourdin at lsu.edu
       
    Thu May  3 18:26:45 CDT 2012
    
    
  
Hi,
I am attaching 2 patches:
* PetscBagSetFromOptions.patch fixes an issue with PetscBagSetFromOptions when the bag contains 
  int or real arrays, and addd automatic fortran binding.
* ex5f90.patch uses the transfer function in order to get the bag size instead of computing it 
  by hand. With this choice of sizes, padding happens in the fortran derived type and the 
  straightforward computation is wrong. I have updated the test output and parameters
Is it possible to push them to petsc-dev?
Blaise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex5f90.patch
Type: application/octet-stream
Size: 4945 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120503/130b5731/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PetscBagSetFromOptions.patch
Type: application/octet-stream
Size: 2212 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120503/130b5731/attachment-0001.obj>
-------------- next part --------------
-- 
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
    
    
More information about the petsc-dev
mailing list