-) defines globals; -) passes local variables as argument to the core function; -) retrieves output structure and passes to the MasterThread. git-svn-id: https://www.dynare.org/svn/dynare/trunk@2666 ac1d8469-bf42-47a9-8791-bf33cf982152