EXEC (execute) Input Command Answered

Hi there,

I have a question about “exec”,

(1) First, from the document, it says this must follow the “prcs” command. I saw some examples that the “exec” does not follow it, but it still works. What does it mean ‘follow’ ? Or it means ‘after’?

(2) There are four ways to define “exec”
exec ntime endtime ( static_option) print_option
exec cycl ncycle print_option
exec ringdown (array) ntimering nstavg stoptol ibeg iend jbeg jend & kbeg kend offset
exec ringdown electrode eoptn ename ntimering nstavg stoptol offset

a)How can I know which one the code is picking when I run the program?
b)In the syntax description, it shows many types of parameters. What is ‘float’ such as “endtime” here?
For most of example, it shows “exec 200”, what happens to the rest of the commands? Do they apply as default values?

Thanks a lot.

1 comment

  • Official comment

    Hi Ray,

    1) EXEC can only be called if the PRCS command has already been issued. If you send on the example where you see that this is not the case, I can check that for you.

    Before – command issued in the line numbers lower than this command
    After – command issued in the line numbers higher than this command

    2) a) Don’t worry too much about the all the different options and versions of the EXEC command. The simplest way to use the EXEC command is tell it how many timesteps (integer) you want to run the model for with the ntime argument.

    This will be sufficient for 99% of all models you will be running.

    b) endtime is an actual value of time which is why it is a float. The value could be set to 1e-3 (s) for example. What this argument does is set a maximum time the exec command cannot exceed.

    You are correct, the rest of arguments are defaulted or optional.

    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post