From 0908b0a50a0cb18d3c0d561a929b277c992552bd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Mon, 7 Apr 2014 14:21:28 +0200
Subject: [PATCH] Fix compilation error introduced in 0983ca78.

---
 DynamicModel.cc | 6 +++---
 ModFile.hh      | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/DynamicModel.cc b/DynamicModel.cc
index 415b9b27..4408a5dd 100644
--- a/DynamicModel.cc
+++ b/DynamicModel.cc
@@ -3035,13 +3035,13 @@ DynamicModel::writeCOutput(ostream &output, const string &basename, bool block_d
   switch (order)
     {
     case 0:
-      output << NNZDerivativs[0] << ",-1,-1};" << endl;
+      output << NNZDerivatives[0] << ",-1,-1};" << endl;
       break;
     case 1:
-      output << NNZDerivativs[0] << "," << NNZDerivatives[1] << ",-1};" << endl;
+      output << NNZDerivatives[0] << "," << NNZDerivatives[1] << ",-1};" << endl;
       break;
     case 2:
-      output << NNZDerivativs[0] << "," << NNZDerivatives[1] << "," << NNZDerivatives[2] << "};" << endl;
+      output << NNZDerivatives[0] << "," << NNZDerivatives[1] << "," << NNZDerivatives[2] << "};" << endl;
       break;
     default:
 	cerr << "Order larger than 3 not implemented" << endl;
diff --git a/ModFile.hh b/ModFile.hh
index 9885c6e6..d558b9aa 100644
--- a/ModFile.hh
+++ b/ModFile.hh
@@ -141,6 +141,7 @@ public:
   //! Writes C output files only => No further Matlab processing
   void writeCOutputFiles(const string &basename) const;
   void writeModelC(const string &basename, bool cuda) const;
+  void writeModelCC(const string &basename, bool cuda) const;
   void writeExternalFiles(const string &basename, FileOutputType output, bool cuda) const;
 };
 
-- 
GitLab