Re: [petsc-users] Problem in loading Matrix Market format

2019-02-28 Thread Zhang, Junchao via petsc-users
Eda, An update to ex72 is merged to PETSc master branch just now. It now can read matrices either symmetric or non-symmetric in Matrix Market format, and output a petsc binary matrix in MATSBAIJ format (for symmetric) or MATAIJ format (for non-symmetric). See help in source code for usage.

Re: [petsc-users] Problem in loading Matrix Market format

2019-02-28 Thread Jose E. Roman via petsc-users
Don't know why it should cause problems. I'd rather try before asking. > El 28 feb 2019, a las 9:21, Eda Oktay escribió: > > Dear Professor Roman, > > Thank you for your answer. I used PetscBinaryWrite.m file and converted > matrices into binary format but I have a question: > > When I look

Re: [petsc-users] Problem in loading Matrix Market format

2019-02-28 Thread Eda Oktay via petsc-users
Dear Professor Roman, Thank you for your answer. I used PetscBinaryWrite.m file and converted matrices into binary format but I have a question: When I look at Properties of the binary files Petsc have, their type is stated as "Program (application/octet-stream)", however when I checked the

Re: [petsc-users] Problem in loading Matrix Market format

2019-02-12 Thread Jed Brown via petsc-users
We should make the (two line) functionality a command-line feature of PetscBinaryIO.py. Then a user could do python -m PetscBinaryIO matrix.mm matrix.petsc Matthew Knepley via petsc-users writes: > It definitely should not be there under 'datafiles'. We should put it in an > example, as

Re: [petsc-users] Problem in loading Matrix Market format

2019-02-12 Thread Zhang, Hong via petsc-users
We have /home/petsc/datafiles/matrices/MtxMarket/mm2petsc.c Hong On Tue, Feb 12, 2019 at 9:52 AM Zhang, Junchao via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Sure. --Junchao Zhang On Tue, Feb 12, 2019 at 9:47 AM Matthew Knepley mailto:knep...@gmail.com>> wrote: Hi Junchao, Could

Re: [petsc-users] Problem in loading Matrix Market format

2019-02-12 Thread Zhang, Junchao via petsc-users
Sure. --Junchao Zhang On Tue, Feb 12, 2019 at 9:47 AM Matthew Knepley mailto:knep...@gmail.com>> wrote: Hi Junchao, Could you fix the MM example in PETSc to have this full support? That way we will always have it. Thanks, Matt On Tue, Feb 12, 2019 at 10:27 AM Zhang, Junchao via

Re: [petsc-users] Problem in loading Matrix Market format

2019-02-12 Thread Zhang, Junchao via petsc-users
Eda, I have a code that can read in Matrix Market and write out PETSc binary files. Usage: mpirun -n 1 ./mm2petsc -fin -fout . You can have a try. --Junchao Zhang On Tue, Feb 12, 2019 at 1:50 AM Eda Oktay via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Hello, I am trying to

Re: [petsc-users] Problem in loading Matrix Market format

2019-02-12 Thread Jose E. Roman via petsc-users
It is better to convert the matrices to PETSc binary format first. One easy way is to read them into Matlab with mmread.m and write with PETSc's PetscBinaryWrite.m. This can be done similarly in python. Jose > El 12 feb 2019, a las 8:50, Eda Oktay via petsc-users > escribió: > > Hello, > >

[petsc-users] Problem in loading Matrix Market format

2019-02-11 Thread Eda Oktay via petsc-users
Hello, I am trying to load matrix in Matrix Market format. I found an example on mat file (ex78) whih can be tested by using .dat file. Since .dat file and .mtx file are similar in structure (specially afiro_A.dat file is similar to amesos2_test_mat0.mtx since they both have 3 columns and the