Declaring options_ fields outside the mod file

Dear Reuben,
the proper way is to use a macro switch. Define within the mod-file

stoch_simul(order=1,irf=@{IRFswitch});

and then call the mod-file with

dynare minisimbasic -DIRFswitch=0

or any other number.

Usually, you also want to have in the file

@#ifndef IRFswitch
    @#define IRFswitch=20
@#endif  

in order to have a default.

1 Like