Event can only use a single condition

27 views
Skip to first unread message

Theo Witkamp

unread,
Aug 20, 2025, 9:19:54 AMAug 20
to basilisk-fr
Hi, 

Why do I get the following error when using small time increments in the event condition. It seems to arise when t += is smaller than 1e-7. 

"single_cond.c:9: error: events can only use a single condition" 

I also attach the code to reproduce the issue. 

I can "fix" this issue by only using a single condition inside the event but then, the code does not adapt the timestep to match the time increment of the event resulting in no output at the wanted time. I can still print after a given number of timesteps "i" but this is inconvenient specially if the timestep is not constant. 

Best,
Theo 
single_cond.c
Reply all
Reply to author
Forward
0 new messages