.info file

Matthew Knepley knepley at gmail.com
Fri Dec 1 10:05:27 CST 2006


On 12/1/06, Cristiano Calonaci <c.calonaci at cineca.it> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
>         I am saving a vector on disk using this code
>
>           ierr = PetscViewerBinaryOpen(PETSC_COMM_WORLD, xtruename,
> FILE_MODE_WRITE, &xtruefilebin); CHKERRQ(ierr);
>           ierr = PetscViewerSetType(xtruefilebin, "binary");
>           ierr = VecView(*xtrue, xtruefilebin); CHKERRQ(ierr);
>           ierr = PetscViewerDestroy(xtruefilebin); CHKERRQ(ierr);
>
> I don't want to create the .info file, how can do it ?
> Here http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Viewer/PetscViewerBinarySkipInfo.html#PetscViewerBinarySkipInfo

That is the correct function.

> there is a reference to
>
> PetscViewerBinarySetFilename
>
> but this function doesn't exist in 2.3.2 .....

It was changed to

http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Viewer/PetscViewerFileSetName.html

    Matt

>         Thanks a lot !
>
>                 Cristiano
-- 
"Failure has a thousand explanations. Success doesn't need one" -- Sir
Alec Guiness




More information about the petsc-users mailing list