Re: [petsc-users] ASCII viewer formats

2025-04-10 Thread Stefano Zampini
Il giorno gio 10 apr 2025 alle ore 11:25 Peder Jørgensgaard Olesen via petsc-users ha scritto: > I would like to output the contents of a Vec to an ASCII file in which the > entries are all on one line, as "x[0] x[1] x[2] ... x[N-1]". This can > be done in a slightly roundabout way by putting

Re: [petsc-users] ASCII viewer formats

2025-04-10 Thread Mark Adams
Hi Peder, You can run with '-help -vec_view' (or whatever your view option is) and that prints all options that are queried for. This is very noisy so grep on 'vec_view' and you will see the option information: what it was, what it is after the query, and what options it accepts. I don't know of

[petsc-users] ASCII viewer formats

2025-04-10 Thread Peder Jørgensgaard Olesen via petsc-users
I would like to output the contents of a Vec to an ASCII file in which the entries are all on one line, as "x[0] x[1] x[2] ... x[N-1]". This can be done in a slightly roundabout way by putting the values in a 1xN dense Mat, assembling the matrix, and then use MatView with a suitable format,