diff --git a/NonLinearSolver/modelReduction/ANNUtils.cpp b/NonLinearSolver/modelReduction/ANNUtils.cpp index 7158f86de51ab7ff98c9044780bebf469d3b78a1..e83452e82a59363fa30f1339d24df826a2ee46ae 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 04a128eb92a3c89f7a78109e3c83b2b8047ae79d..4da21c701d9a1231f528c544a601587e2a464329 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 +};