[GAP Forum] Handling Errors Automatically?
Stephen Linton
sl4 at st-andrews.ac.uk
Mon Nov 23 10:49:31 GMT 2015
Dear Andrew,
I think what you need is to set BreakOnError to false, as well as possibly setting OnBreak to what you want.
The messages may still be a bit ugly, but it should do what you need.
Like any approach involving abandoning a GAP calculation part way through there is some risk that data structures will be left inconsistent. In the example you describe this will most likely just nee data within the group that you have abandoned, so should be OK, but anything is possible. If you are relying on these results for a paper it would be safest to repeat the
calculations that work in a clean copy of GAP just to be sure.
Steve
> On 18 Nov 2015, at 15:02, Andrew Penland <andrewpenland at gmail.com> 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?
>
> 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