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
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