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

Fix small bug + add test case
parent 4f7555a2
No related branches found
No related tags found
No related merge requests found
# $Id: Makefile,v 1.304 2003-10-30 02:00:01 geuzaine Exp $
# $Id: Makefile,v 1.305 2003-11-13 19:16:24 geuzaine Exp $
#
# Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
#
......@@ -23,7 +23,7 @@ include variables
GMSH_MAJOR_VERSION = 1
GMSH_MINOR_VERSION = 47
GMSH_PATCH_VERSION = 0
GMSH_PATCH_VERSION = 1
GMSH_SHORT_LICENSE = "GNU General Public License"
......
// $Id: DisplacementRaise.cpp,v 1.1 2003-11-13 17:39:03 geuzaine Exp $
// $Id: DisplacementRaise.cpp,v 1.2 2003-11-13 19:16:24 geuzaine Exp $
//
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
//
......@@ -117,13 +117,13 @@ static void displacementRaiseList(Post_View * iView, List_T * iList, int iNbElm,
double *x = (double *)List_Pointer_Fast(iList, i);
double *y = (double *)List_Pointer_Fast(iList, i + nbVert);
double *z = (double *)List_Pointer_Fast(iList, i + 2 * nbVert);
j += dNb;
double *val = (double *)List_Pointer_Fast(dList, j + 3 * nbVert);
for(int k = 0; k < nbVert; k++) {
x[k] += factor * val[3 * nbVert * dTimeStep + 3 * k];
y[k] += factor * val[3 * nbVert * dTimeStep + 3 * k + 1];
z[k] += factor * val[3 * nbVert * dTimeStep + 3 * k + 2];
}
j += dNb;
}
}
......
Include "test_field.pos";
Include "test_displ.pos";
Plugin(DisplacementRaise).Factor = 1;
Plugin(DisplacementRaise).Run;
View[0].ShowElement = 1;
Plugin(Skin).iView = 0;
Plugin(Skin).Run;
View[0].Visible = 0;
View[1].Visible = 0;
View[2].ShowElement = 1;
View[2].Light = 1;
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment