[Trac] #187: macrovariable passed on the command line (-D option)
#187: macrovariable passed on the command line (-D option) --------------------------+------------------------------------------------- Reporter: michel | Owner: sebastien Type: bug | Status: new Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Keywords: | --------------------------+------------------------------------------------- It works for numerical values but not for strings. In the test.mod file: @#if var1 == "a" @#echo "OK" @#else @#echo "NO" @#endif Calling dynare test -Dvar1=a will fail with with unknown variable a (without any Dynare instruction, it is normal that test.mod fails at the end, but with an error message about unexpected $end) -- Ticket URL: <https://www.dynare.org/trac/ticket/187> Dynare <http://www.dynare.org> The Dynare project
#187: macrovariable passed on the command line (-D option) --------------------------+------------------------------------------------- Reporter: michel | Owner: houtanb Type: bug | Status: accepted Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Keywords: | --------------------------+------------------------------------------------- Changes (by houtanb): * owner: sebastien => houtanb * status: new => accepted -- Ticket URL: <https://www.dynare.org/trac/ticket/187#comment:1> Dynare <http://www.dynare.org> The Dynare project
#187: macrovariable passed on the command line (-D option) ---------------------------+------------------------------------------------ Reporter: michel | Owner: houtanb Type: bug | Status: closed Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Resolution: fixed | Keywords: ---------------------------+------------------------------------------------ Changes (by houtanb): * status: accepted => closed * resolution: => fixed Comment: Fixed in commit: 6844e2bef7410e821f3a7c9113a1712550c65cff -- Ticket URL: <https://www.dynare.org/trac/ticket/187#comment:2> Dynare <http://www.dynare.org> The Dynare project
#187: macrovariable passed on the command line (-D option) ---------------------------+------------------------------------------------ Reporter: michel | Owner: houtanb Type: enhancement | Status: closed Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Resolution: fixed | Keywords: ---------------------------+------------------------------------------------ Changes (by houtanb): * type: bug => enhancement -- Ticket URL: <https://www.dynare.org/trac/ticket/187#comment:3> Dynare <http://www.dynare.org> The Dynare project
#187: macrovariable passed on the command line (-D option) ---------------------------+------------------------------------------------ Reporter: michel | Owner: houtanb Type: bug | Status: closed Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Resolution: fixed | Keywords: ---------------------------+------------------------------------------------ Changes (by houtanb): * type: enhancement => bug -- Ticket URL: <https://www.dynare.org/trac/ticket/187#comment:4> Dynare <http://www.dynare.org> The Dynare project
participants (1)
-
Trac Dynare