[GAP Forum] Handling Errors Automatically?
Dima Pasechnik
dmitrii.pasechnik at cs.ox.ac.uk
Mon Nov 23 10:29:55 GMT 2015
Dear Andrew,
On Wed, Nov 18, 2015 at 10:02:32AM -0500, Andrew Penland wrote:
> Hi all,
>
> Is there a way to gracefully work around errors in GAP without a human in
> the loop? I know about OnBreak, but I haven't been able to get it to do
> what I have in mind.
>
> I am working with groups which are finite but very large. I want to
> iterate over a collection of such groups and try to use the Factorization
> algorithm to find a certain element in each one. Sometimes this runs out of
> memory.I would like to have GAP catch the error, Print("This group used too
> much memory. \n"), then go on to the next group in the list without me
> being involved.
>
> Is there any way to do this?
There is global variable OnBreak that can be set to specify the action in the
event your computation enters a break loop.
See Sect. 6.4-3 of the GAP reference manual for details an examples.
HTH,
Dima
>
> Thank you,
> Andrew Penland
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum
More information about the Forum
mailing list