Re: [petsc-dev] printing matlab vectors

2015-06-12 Thread Mark Adams
Oh, duh, I put the name on the viewer and not the vector. On Fri, Jun 12, 2015 at 8:54 AM, Mark Adams wrote: > I do this: > > call > VecCreateSeqWithArray(PETSC_COMM_SELF,ione,n64,phi,vec,ierr);CHKERRQ(ierr) > call PetscViewerASCIIOpen(PETSC_COMM_SELF, file_name, > viewer,ierr);CHKERRQ(ierr)

Re: [petsc-dev] printing matlab vectors

2015-06-12 Thread Mark Adams
I do this: call VecCreateSeqWithArray(PETSC_COMM_SELF,ione,n64,phi,vec,ierr);CHKERRQ(ierr) call PetscViewerASCIIOpen(PETSC_COMM_SELF, file_name, viewer,ierr);CHKERRQ(ierr) call PetscViewerSetFormat(viewer,PETSC_VIEWER_ASCII_MATLAB,ierr);CHKERRQ(ierr) call PetscObjectSetName(viewer,vec_name

Re: [petsc-dev] printing matlab vectors

2015-06-11 Thread Jed Brown
Mark Adams writes: > I am printing matlab vectors and I have a matlab script to read these > files, take differences, etc. PETSc name the vectors > (eg, Vec_0xc409_0) in a non-deterministic way as far as I can > tell. PetscObjectSetName() signature.asc Description: PGP signature

[petsc-dev] printing matlab vectors

2015-06-11 Thread Mark Adams
I am printing matlab vectors and I have a matlab script to read these files, take differences, etc. PETSc name the vectors (eg, Vec_0xc409_0) in a non-deterministic way as far as I can tell. Can I specify a name to make my workflow more automatic? Mark