Skip to content
Snippets Groups Projects
Commit 3e887c30 authored by Laurent Van Migroet's avatar Laurent Van Migroet
Browse files

BUG MSVC : change variable array size to std::vector (line 256, 292) for msvc

parent a77832c6
No related branches found
No related tags found
No related merge requests found
......@@ -253,7 +253,8 @@ void discreteEdge::parametrize()
for (unsigned int i = 0; i < (*iFace)->getNumMeshElements(); ++i){
MElement *e = (*iFace)->getMeshElement(i);
int N = e->getNumVertices();
MVertex *v[N];
//MVertex *v[N];
std::vector<MVertex *> v(N);
for(int j = 0; j < N; j++){
v[j] = e->getVertex(j);
}
......@@ -288,7 +289,8 @@ void discreteEdge::parametrize()
for (unsigned int i = 0; i < (*iRegion)->getNumMeshElements(); ++i){
MElement *e = (*iRegion)->getMeshElement(i);
int N = e->getNumVertices();
MVertex *v[N];
//MVertex *v[N];
std::vector<MVertex *> v(N);
for(int j = 0; j < N; j++){
v[j] = e->getVertex(j);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment