[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
what's the difference between PetscViewerASCIIOpen() and PetscViewerBinaryOpen()?
- To: petsc-users@xxxxxxxxxxx
- Subject: what's the difference between PetscViewerASCIIOpen() and PetscViewerBinaryOpen()?
- From: Yujie <recrusader@xxxxxxxxx>
- Date: Tue, 22 Jan 2008 18:50:09 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=Ba3Y5f3itX//qdU05gk3oDxSfM5BHzz8H/Qfck52Qqs=; b=L/B9F5hq/ccaXGFLTeNUTq1XUS0ChANcCTyuwHRnYVs7RQDQbn3wD1ijNNthu6xfEg59S8E1g9aMH6bE3RXNKKLvCN+/Cvkx0y+NlVafUGaeihfE2jwQmGWFvGcmq1NtI7WEOm+gHJx2cRoiBgLxs22E1QKxQkKFwgbP52YLZi8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=DLy9L3B7LE2GNdZ3ngQAGThkHZD4kdMLGNZ52T2VSQreQeUyda8OcHoLUcy9ZDzZ3wGdiiOxcCP/hE980MyZq1rn+xA53106wY6XcbZotVEa9Hi2GOdm4R/oeTaybPRA9SBB40iUefS012azB+TNLwWPaN119UnCmehZ+6xx4o8=
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
Hi everyone:
#include "petsc.h"
PetscErrorCode PetscViewerASCIIOpen(MPI_Comm comm,const char name[],PetscViewer *lab)
#include "petsc.h"
PetscErrorCode PetscViewerBinaryOpen(MPI_Comm comm,const char name[],PetscFileMode type,PetscViewer *binv)
if the difference between them is that one for ASCII output and the other for Binary output, why are there different parameters?
The speed to output matrix is very fast when I use PetscViewerBinaryOpen. However, when I use PetscViewerASCIIOpen, I can't get the matrix output. the code always is running and it has taken about one day! what's the problem? thank you.
Regards,
Yujie