trapping failure of ocean simulator() function

Discussion in 'Cadence' started by danmc, Dec 16, 2005.

  1. danmc

    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, Dec 16, 2005
    #1
  2. danmc

    fogh Guest

    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.
     
    fogh, Dec 17, 2005
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.