Skip to content
Snippets Groups Projects
Commit 409bc12b authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix msvc compile

parent 82f05f1e
No related branches found
No related tags found
No related merge requests found
......@@ -38,10 +38,9 @@ double MTriangle::getInnerRadius()
{
#if defined(HAVE_MESH)
double r = 0.;
const int n = getNumEdges();
double dist[n];
double dist[3];
double k = 0.;
for (int i = 0; i < n; i++){
for (int i = 0; i < 3; i++){
MEdge e = getEdge(i);
dist[i] = e.getVertex(0)->distance(e.getVertex(1));
k += 0.5 * dist[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment