[petsc-users] [PETSc] How to read a Vector and Matrix from an ASCII file into PETSc?

Lisandro Dalcin dalcinl at gmail.com
Mon Sep 11 12:04:42 CDT 2017


On 11 September 2017 at 19:21, Ryan Morley <ryantmorley7298 at gmail.com> wrote:
> Dear all,
>
> I am working on a program in Petsc that will read a vector and matrix from
> an ASCII file and store it into a vector and matrix object in Petsc so I can
> eventually solve. It needs to be an ASCII file because I will be outputting
> the vector and matrix to an ASCII file from code in Delphi.
>

Would it be OK to use an intermediate program to read the ASCII output
and dump in PETSc binary format? That would be rather trivial to do
with a Python script.


-- 
Lisandro Dalcin
============
Research Scientist
Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
Extreme Computing Research Center (ECRC)
King Abdullah University of Science and Technology (KAUST)
http://ecrc.kaust.edu.sa/

4700 King Abdullah University of Science and Technology
al-Khawarizmi Bldg (Bldg 1), Office # 0109
Thuwal 23955-6900, Kingdom of Saudi Arabia
http://www.kaust.edu.sa

Office Phone: +966 12 808-0459


More information about the petsc-users mailing list