Commit 65fc8567 authored by sebastien's avatar sebastien

k_order_perturbation: renamed source files with *.cc and *.hh extensions, for...

k_order_perturbation: renamed source files with *.cc and *.hh extensions, for compliance with Dynare coding standards + adapted the build system accordingly


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3260 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 0b6742f3
vpath %.cpp $(top_srcdir)/../../sources/k_order_perturbation
vpath %.cc $(top_srcdir)/../../sources/k_order_perturbation
noinst_PROGRAMS = k_order_perturbation
......@@ -11,8 +11,8 @@ CXXFLAGS += $(PTHREAD_CFLAGS)
k_order_perturbation_LDADD = ../libdynare++/libdynare++.a $(PTHREAD_LIBS) $(LIBADD_DLOPEN)
nodist_k_order_perturbation_SOURCES = \
k_order_perturbation.cpp \
k_ord_dynare.cpp \
k_ord_dynare.h \
dynamic_dll.cpp \
dynamic_dll.h
k_order_perturbation.cc \
k_ord_dynare.cc \
k_ord_dynare.hh \
dynamic_dll.cc \
dynamic_dll.hh
......@@ -201,9 +201,9 @@ eval([ COMPILE_COMMAND ...
' -I../../dynare++/src -I../../dynare++/kord -I../../dynare++/tl/cc -I../../dynare++/utils/cc -I../../dynare++/sylv/cc -I../../dynare++/integ/cc -I. ' ...
' -DMEXEXT=' mexext ' ' ...
'-output k_order_perturbation ' ...
'k_order_perturbation/k_order_perturbation.cpp ' ...
'k_order_perturbation/k_ord_dynare.cpp ' ...
'k_order_perturbation/dynamic_dll.cpp ' ...
'k_order_perturbation/k_order_perturbation.cc ' ...
'k_order_perturbation/k_ord_dynare.cc ' ...
'k_order_perturbation/dynamic_dll.cc ' ...
LIBDYNAREPP_O ' ' ...
DL_PATH ' ' BLAS_PATH ' ' LAPACK_PATH]);
......
k_order_perturbation project status
NOTE: The dll (mexw32 or so) is called from new Matlab Dynare function dr1_k_order
derived from dr1, after set_state_space as:
[ysteady, ghx_u]=k_ord_dynare_perturbation(dr,task,M_,options_, oo_, ['.' mexext])
where last term is optional but it will default to .dll on windows and .so on linux.
dr1_k_order is called by amended resol.m:
elseif(options_.use_k_order==1)&& (check_flag == 0)
[dr,info,M_,options_,oo_] = dr1_k_order(dr,check_flag,M_,options_,oo_);
else
and requirese options to be set
options_.use_k_order=1;
==================
Tests:
first_order.m is matlab emulation of Dynare++ c++ first_order.cpp for testing pruposes
==================
ToDO:
==================
1) amend <model>.m to use Dynamic_mexopts.bat
mex -f Dynamic_mexopts.bat -O fs2000k_no_both_UR_dynamic.c
or amend preprocessor to make mex to export Dynamic() function as well as mexFunction() as the Dynamic_mexopts.bat does, e.g.:
set LINKFLAGS=/dll /export:Dynamic /export:%ENTRYPOINT% /MAP ....
2) make k_order_perturbation handle models which have the "both" variables (i.e. variables that appear both as lag and as lead)
......@@ -17,8 +17,8 @@
* along with Dynare. If not, see <http://www.gnu.org/licenses/>.
*/
#include "k_ord_dynare.h"
#include "dynamic_dll.h"
#include "k_ord_dynare.hh"
#include "dynamic_dll.hh"
#include <sstream>
......
......@@ -21,8 +21,8 @@
#include <vector>
#include "first_order.h"
#include "k_ord_dynare.h"
#include "dynamic_dll.h"
#include "k_ord_dynare.hh"
#include "dynamic_dll.hh"
#include <cmath>
#include <sstream>
......
......@@ -38,8 +38,8 @@
// g_2 - 2nd order rules packed in one matrix
**********************************************************/
#include "k_ord_dynare.h"
#include "dynamic_dll.h"
#include "k_ord_dynare.hh"
#include "dynamic_dll.hh"
#include <cmath>
#include <cstring>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment