Subsecond sleep

Jed Brown jed at
Sun Oct 18 13:20:54 CDT 2009

Barry Smith wrote:
>   It is fine with me to switch the infrastructure to use a PetscReal
> instead of integer


Did PetscSleep() once return the time remaining instead of an error
code?  The following can't possibly have worked correctly for a while.
Should it be fixed or removed?

        IBM sleep may return at anytime, hence must see if there is more time to sleep
      int left = sleeptime;
      while (left > 0) {left = PetscSleep(left) - 1;}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the petsc-dev mailing list