From 68c6ad2d8be77ce6d4332887f3916cbf7d85f4e1 Mon Sep 17 00:00:00 2001
From: Van Dung Nguyen <vdg.nguyen@gmail.com>
Date: Thu, 12 Nov 2020 16:20:40 +0100
Subject: [PATCH] correction

---
 NonLinearSolver/modelReduction/ANNUtils.cpp | 1 +
 NonLinearSolver/nlsolver/showDataOnMesh.cpp | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/NonLinearSolver/modelReduction/ANNUtils.cpp b/NonLinearSolver/modelReduction/ANNUtils.cpp
index 7158f86de..e83452e82 100644
--- a/NonLinearSolver/modelReduction/ANNUtils.cpp
+++ b/NonLinearSolver/modelReduction/ANNUtils.cpp
@@ -80,6 +80,7 @@ std::string RectifierActivationFunction::getName() const
   {
     Msg::Error("fact = %e is not defined in RectifierActivationFunction",_fact);
   }
+  return "rectifier_undef";
 };
 
 DenseLayer::DenseLayer(int numIn, int numOut): numInput(numIn), numOutput(numOut), activationFunc(NULL),W(numIn, numOut),b(1,numOut), WT(NULL)
diff --git a/NonLinearSolver/nlsolver/showDataOnMesh.cpp b/NonLinearSolver/nlsolver/showDataOnMesh.cpp
index 04a128eb9..4da21c701 100644
--- a/NonLinearSolver/nlsolver/showDataOnMesh.cpp
+++ b/NonLinearSolver/nlsolver/showDataOnMesh.cpp
@@ -44,14 +44,14 @@ void showDataOnMesh::write_MSH2(elementGroup* g,  const std::string filename){
  	fprintf(fp, "$MeshFormat\n2.2 0 8\n$EndMeshFormat\n");
 
 	fprintf(fp, "$Nodes\n");
-	fprintf(fp, "%d\n", g->vsize());
+	fprintf(fp, "%ld\n", g->vsize());
 	for (elementGroup::vertexContainer::const_iterator it = g->vbegin(); it!= g->vend(); it++){
 		MVertex* v = it->second;
-		fprintf(fp, "%d %f %f %f\n",v->getNum(),v->x(),v->y(),v->z());
+		fprintf(fp, "%ld %f %f %f\n",v->getNum(),v->x(),v->y(),v->z());
 	}
 	fprintf(fp, "$EndNodes\n");
  	fprintf(fp, "$Elements\n");
-	fprintf(fp, "%d\n", g->size());
+	fprintf(fp, "%ld\n", g->size());
 
 	
   for (elementGroup::elementContainer::const_iterator it = g->begin(); it!= g->end(); it++){
@@ -158,4 +158,4 @@ void showDataOnMesh::writeNodeDataToFile(const std::string postFileName)
   PView *pv = new PView ("Val", "NodeData", _part, data, 0.0);
   pv->write(postFileName,5,false);
   delete pv;  
-};
\ No newline at end of file
+};
-- 
GitLab