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

fix fpe

parent 956d4de3
No related branches found
No related tags found
No related merge requests found
// $Id: Warp.cpp,v 1.2 2006-04-16 20:31:07 geuzaine Exp $ // $Id: Warp.cpp,v 1.3 2006-04-17 15:18:14 geuzaine Exp $
// //
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
// //
...@@ -128,7 +128,7 @@ static void warpList(Post_View * iView, List_T * iList, int iNbElm, ...@@ -128,7 +128,7 @@ static void warpList(Post_View * iView, List_T * iList, int iNbElm,
// (x,y,z) += factor * (valx,valy,valz) // (x,y,z) += factor * (valx,valy,valz)
int iNb = List_Nbr(iList) / iNbElm; int iNb = List_Nbr(iList) / iNbElm;
int dNb = List_Nbr(dList) / dNbElm; int dNb = normals ? 0 : List_Nbr(dList) / dNbElm;
for(int i = 0, j = 0; i < List_Nbr(iList); i += iNb, j += dNb) { for(int i = 0, j = 0; i < List_Nbr(iList); i += iNb, j += dNb) {
double *x = (double *)List_Pointer_Fast(iList, i); double *x = (double *)List_Pointer_Fast(iList, i);
double *y = (double *)List_Pointer_Fast(iList, i + nbNod); double *y = (double *)List_Pointer_Fast(iList, i + nbNod);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment