[petsc-dev] PetscExceptionTry1
Jed Brown
jed at 59A2.org
Mon Feb 14 13:48:53 CST 2011
On Mon, Feb 14, 2011 at 20:43, Matthew Knepley <knepley at gmail.com> wrote:
> This code
>
> for(i = 0; i < 10000; ++i) {
> std::ostringstream trial;
> FILE *fp;
>
> trial << "dft_" << std::setw(5) << std::setfill('0') << i << ".py";
> //ierr = PetscExceptionTry1(PetscFOpen(PETSC_COMM_WORLD,
> trial.str().c_str(), "r", &fp), PETSC_ERR_FILE_OPEN);
> ierr = PetscFOpen(PETSC_COMM_WORLD, trial.str().c_str(), "r", &fp);
> if (ierr == PETSC_ERR_FILE_OPEN) break;
> ierr = PetscFClose(PETSC_COMM_WORLD, fp);CHKERRQ(ierr);
> }
>
> produces the following printout
>
You need to PetscPushErrorHandler(PetscReturnErrorHandler,0);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110214/90913dbc/attachment.html>
More information about the petsc-dev
mailing list