diff --git a/mex/sources/k_order_perturbation/dynamic_dll.cc b/mex/sources/k_order_perturbation/dynamic_dll.cc index 8aae1c729..5c1fbbf7b 100644 --- a/mex/sources/k_order_perturbation/dynamic_dll.cc +++ b/mex/sources/k_order_perturbation/dynamic_dll.cc @@ -22,8 +22,7 @@ #include -DynamicModelDLL::DynamicModelDLL(const string &modName, int nExog_arg, const string &sExt) throw (DynareException) : - nExog(nExog_arg) +DynamicModelDLL::DynamicModelDLL(const string &modName, const string &sExt) throw (DynareException) { string fName; #if !defined(__CYGWIN32__) && !defined(_WIN32) diff --git a/mex/sources/k_order_perturbation/dynamic_dll.hh b/mex/sources/k_order_perturbation/dynamic_dll.hh index ffb235a47..e9ce127fc 100644 --- a/mex/sources/k_order_perturbation/dynamic_dll.hh +++ b/mex/sources/k_order_perturbation/dynamic_dll.hh @@ -42,7 +42,6 @@ class DynamicModelDLL { private: DynamicFn Dynamic; // pointer to the Dynamic function in DLL - const int nExog; // no of exogenous #if defined(_WIN32) || defined(__CYGWIN32__) HINSTANCE dynamicHinstance; // DLL instance pointer in Windows #else @@ -51,7 +50,7 @@ private: public: // construct and load Dynamic model DLL - DynamicModelDLL(const string &fname, int nExog_arg, const string &sExt) throw (DynareException); + DynamicModelDLL(const string &fname, const string &sExt) throw (DynareException); virtual ~DynamicModelDLL(); void eval(const Vector &y, const Vector &x, const Vector ¶ms, const Vector &ySteady, diff --git a/mex/sources/k_order_perturbation/k_order_perturbation.cc b/mex/sources/k_order_perturbation/k_order_perturbation.cc index 666a6549c..530c8929c 100644 --- a/mex/sources/k_order_perturbation/k_order_perturbation.cc +++ b/mex/sources/k_order_perturbation/k_order_perturbation.cc @@ -199,7 +199,7 @@ extern "C" { std::string jName(fName); //params.basename); jName += ".jnl"; Journal journal(jName.c_str()); - DynamicModelDLL dynamicDLL(fName, nExog, dfExt); + DynamicModelDLL dynamicDLL(fName, dfExt); // intiate tensor library tls.init(kOrder, nStat+2*nPred+3*nBoth+2*nForw+nExog);