Re: [petsc-users] VecLoad hdf5

2018-12-07 Thread Matthew Knepley via petsc-users
On Fri, Dec 7, 2018 at 4:17 PM Josh L wrote: > I call VecSetBlockSizes before VecSetSizes instead of after, then it is > working fine now. > It can run with any number of processor. > Is there any reason for this? I am using petsc/3.10 and Fortran. > Yes. VecSetSizes() calculates the division

Re: [petsc-users] PETSc binary write format

2018-12-07 Thread Sajid Ali via petsc-users
For future reference, attached is a snippet of code in C to convert ascii numbers (integers and doubles) to petsc readable binary vectors. -- Sajid Ali Applied Physics Northwestern University ascii_to_bin.c Description: Binary data