Page 1 of 1

Simulation finishes prematurely

Posted: Mon Dec 03, 2018 8:33 pm
by ooo
Hi Carlos,
My simulation works sometimes while other times it finishes prematurely for no reason with no error. It jumps to PostExperiment(). I'm not sure what exactly is the problem as it works perfectly sometimes.

Thank you.

Re: Simulation finishes prematurely

Posted: Mon Dec 03, 2018 8:49 pm
by pincy
Send me the code and I'll have a look. With the information you're giving me, I can't guess what the problem is. If the code is large, try to make a shorter version that shows the same problem. This way it will be easier for me to understand what's wrong.

Re: Simulation finishes prematurely

Posted: Mon Dec 03, 2018 9:11 pm
by ooo
Thank you so much. I've attached the shell code.

Re: Simulation finishes prematurely

Posted: Mon Dec 03, 2018 9:13 pm
by ooo
Sorry, the other files did not attach.

Re: Simulation finishes prematurely

Posted: Mon Dec 03, 2018 10:25 pm
by pincy
I found the problem. In your loop functions, you have:

Code: Select all

bool CEPuckOmegaAlgorithmLoopFunctions::IsExperimentFinished()
{

 }
This function must return either true or false. In your code, the return value is undefined. Make sure you return false and the problem will disappear.

Re: Simulation finishes prematurely

Posted: Tue Dec 04, 2018 3:56 pm
by ooo
Ahh. I see. Thank you so much for your help. Why is it that the simulation finishes normally on some runs?