<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>Hi,<br>
<br>
Thanks, this Cactus parameter was exactly the piece I was missing!<br>
<br>
Best, <br>
<br>
Jordan
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Users <users-bounces@einsteintoolkit.org> on behalf of Roland Haas via Users <users@einsteintoolkit.org><br>
<b>Sent:</b> Thursday, June 4, 2026 4:27:40 PM<br>
<b>To:</b> Erik Schnetter via Users<br>
<b>Subject:</b> Re: [Users] Automatic termination trigger mid-run</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
CUIDADO: Email de um sistema externo. Cuidado com links, anexos e pedidos de dados/senhas.<br>
CAUTION: Email from an external system. Be careful with links, attachments, and requests for data/passwords.<br>
<br>
Hello all,<br>
<br>
Trigger can set parameters and there's a<br>
<br>
Cactus::terminate_next<br>
<br>
parameter (src/param.ccl) that you can set.<br>
<br>
You may need to then add `Cactus::terminate_next = no`) into your<br>
parfile (so that when the checkpoint recovers the steered value of<br>
terminate_next is overwritten).<br>
<br>
Yours,<br>
Roland<br>
<br>
> [CAUTION: Non-UBC Email]<br>
><br>
> Ooh, you are using the "Trigger" thorn. I thought you were using "TerminationTrigger". So that's an option -- use that thorn instead.<br>
><br>
> Otherwise, if you find your requested feature convenient, then please go ahead and implement it! It would be a nice addition to Cactus.<br>
><br>
> -erik<br>
><br>
> > On Jun 4, 2026, at 10:19, Jordan Nicoules <jnicoules@ua.pt> wrote:<br>
> ><br>
> > Hi Erik,<br>
> ><br>
> > Thank you for your reply! I know of CCTK_TerminateNext, I actually use it in one of my thorns (so I could hack it to achieve what I want). In fact, a call to this function is what I would add to Trigger.<br>
> ><br>
> > My point is more: with the existing thorns, is there a way to terminate a simulation while it's running (and before its expected end based on final time/iteration), with a parfile directive, without:<br>
> > - manually editing the termination file<br>
> > - reaching walltime<br>
> > - having NaNs<br>
> > - and such edge cases.<br>
> ><br>
> > Something that would be like:<br>
> > ```<br>
> > Trigger::Trigger_Checked_Variable [0] = "ADMBase::lapse"<br>
> > Trigger::Trigger_Reduction [0] = "minimum"<br>
> > Trigger::Trigger_Relation [0] = "<"<br>
> > Trigger::Trigger_Checked_Value [0] = 0.2<br>
> > Trigger::Trigger_Reaction [0] = "terminate" # <-- This doesn't exist as far as I understand<br>
> > ```<br>
> ><br>
> > Thanks,<br>
> ><br>
> > Jordan<br>
> ><br>
> > From: Users <users-bounces@einsteintoolkit.org <<a href="mailto:users-bounces@einsteintoolkit.org">mailto:users-bounces@einsteintoolkit.org</a>>> on behalf of Erik Schnetter via Users <users@einsteintoolkit.org <<a href="mailto:users@einsteintoolkit.org">mailto:users@einsteintoolkit.org</a>>><br>
> > Sent: Thursday, June 4, 2026 14:57<br>
> > To: users@einsteintoolkit.org <<a href="mailto:users@einsteintoolkit.org">mailto:users@einsteintoolkit.org</a>><br>
> > Subject: Re: [Users] Automatic termination trigger mid-run<br>
> ><br>
> ><br>
> > CUIDADO: Email de um sistema externo. Cuidado com links, anexos e pedidos de dados/senhas.<br>
> > CAUTION: Email from an external system. Be careful with links, attachments, and requests for data/passwords.<br>
> > You can call the function `CCTK_TerminateNext`, which will stop the simulation gracefully after the current iteration finishes. This is built-in, you do not need a special thorn for this.<br>
> ><br>
> > This is how TerminationTrigger is implemented: It calls this function when a certain file is created.<br>
> ><br>
> > -erik<br>
> ><br>
> >> On Jun 4, 2026, at 09:31, Jordan Nicoules via Users <users@einsteintoolkit.org> wrote:<br>
> >><br>
> >> Dear all,<br>
> >><br>
> >> I was wondering if there was a built-in way to trigger the termination of a simulation when something specific happens, along the lines of what Trigger does to steer quantities. From what I understand, Trigger does not offer that possibility, and TerminationTrigger
checks either a file or a time limit. What I'm considering would be more along the lines of "an apparent horizon is found so trigger termination", in order to steer some parameters at recovery.<br>
> >><br>
> >> If there's no such explicit way, I'm happy to try to implement that in Trigger. I actually have ideas of other small improvements to Trigger that I could try contributing as well (namely, increase the maximum number of triggers and allow one trigger to
have multiple consequences at once).<br>
> >><br>
> >> Unfortunately I won't be able to join the weekly call today to discuss this directly.<br>
> >><br>
> >> Best,<br>
> >><br>
> >> Jordan<br>
> >> _______________________________________________<br>
> >> Users mailing list<br>
> >> Users@einsteintoolkit.org <<a href="mailto:Users@einsteintoolkit.org">mailto:Users@einsteintoolkit.org</a>><br>
> >> <a href="http://lists.einsteintoolkit.org/mailman/listinfo/users">http://lists.einsteintoolkit.org/mailman/listinfo/users</a><br>
><br>
<br>
--<br>
My email is as private as my paper mail. I therefore support encrypting<br>
and signing email messages. Get my PGP key from <a href="http://pgp.mit.edu">http://pgp.mit.edu</a> .<br>
_______________________________________________<br>
Users mailing list<br>
Users@einsteintoolkit.org<br>
<a href="http://lists.einsteintoolkit.org/mailman/listinfo/users">http://lists.einsteintoolkit.org/mailman/listinfo/users</a><br>
</div>
</span></font>
</body>
</html>