Skip to content
Snippets Groups Projects
Commit 68c6ad2d authored by Van Dung NGUYEN's avatar Van Dung NGUYEN
Browse files

correction

parent 9eb8e68d
No related branches found
No related tags found
1 merge request!310Master - transfer updates into WIP branch
...@@ -80,6 +80,7 @@ std::string RectifierActivationFunction::getName() const ...@@ -80,6 +80,7 @@ std::string RectifierActivationFunction::getName() const
{ {
Msg::Error("fact = %e is not defined in RectifierActivationFunction",_fact); 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) DenseLayer::DenseLayer(int numIn, int numOut): numInput(numIn), numOutput(numOut), activationFunc(NULL),W(numIn, numOut),b(1,numOut), WT(NULL)
......
...@@ -44,14 +44,14 @@ void showDataOnMesh::write_MSH2(elementGroup* g, const std::string filename){ ...@@ -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, "$MeshFormat\n2.2 0 8\n$EndMeshFormat\n");
fprintf(fp, "$Nodes\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++){ for (elementGroup::vertexContainer::const_iterator it = g->vbegin(); it!= g->vend(); it++){
MVertex* v = it->second; 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, "$EndNodes\n");
fprintf(fp, "$Elements\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++){ for (elementGroup::elementContainer::const_iterator it = g->begin(); it!= g->end(); it++){
...@@ -158,4 +158,4 @@ void showDataOnMesh::writeNodeDataToFile(const std::string postFileName) ...@@ -158,4 +158,4 @@ void showDataOnMesh::writeNodeDataToFile(const std::string postFileName)
PView *pv = new PView ("Val", "NodeData", _part, data, 0.0); PView *pv = new PView ("Val", "NodeData", _part, data, 0.0);
pv->write(postFileName,5,false); pv->write(postFileName,5,false);
delete pv; delete pv;
}; };
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment