Subsecond sleep
Jed Brown
jed at 59A2.org
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
Done.
http://petsc.cs.iit.edu/petsc/petsc-dev/rev/5704078f5057
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;}
}
Jed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20091018/ea43da9b/attachment.sig>
More information about the petsc-dev
mailing list