trapping failure of ocean simulator() function

D

danmc

Guest
Hi,

I've had problems where I have some scripts which run a whole bunch of
simulations will fail if I lose the connection to my license server.

To try and make the sims be more robust I wanted to do something like:


while( ! simulator()
simulator('spectre)
when( ! simulator()
printf("Failed. Waiting and trying again...\n") drain(poport)
sleep(60)
)
)

I even thought about wrapping this up in a function which I could use
in many of my scripts.

The problem I ran into is that when the simulator('spectre) bit fails,
it seems to totally trash the program flow. In other words, the
when(... stuff never even runs.

So, anyone have a suggestion on how to deal with this? I hate it when
I come in to work in the morning to find that my scripts died an hour
after I left the previous day.

Thanks
-Dan
 
danmc wrote:

Hi,

I've had problems where I have some scripts which run a whole bunch of
simulations will fail if I lose the connection to my license server.

To try and make the sims be more robust I wanted to do something like:


while( ! simulator()
simulator('spectre)
when( ! simulator()
printf("Failed. Waiting and trying again...\n") drain(poport)
sleep(60)
)
)

I even thought about wrapping this up in a function which I could use
in many of my scripts.

The problem I ran into is that when the simulator('spectre) bit fails,
it seems to totally trash the program flow. In other words, the
when(... stuff never even runs.

So, anyone have a suggestion on how to deal with this? I hate it when
I come in to work in the morning to find that my scripts died an hour
after I left the previous day.
use the errset() to analyse what happened with the simulator() call.
I never used them, but noticed that there is some queue-for-license
option in the recent spectre, you may want to have a look there too.
 

Welcome to EDABoard.com

Sponsor

Back
Top