From 311c63239921b9a0d9bc12c7fd3eeb95a17b505f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?FEL=C5=A0=C3=96CI=20Marek?= <marek.felsoci@inria.fr> Date: Sun, 5 Nov 2023 19:10:46 +0100 Subject: [PATCH] Remove useless function from cylinder computation --- src/cylinder.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/cylinder.c b/src/cylinder.c index b95e9d5..605e1f8 100644 --- a/src/cylinder.c +++ b/src/cylinder.c @@ -23,7 +23,7 @@ static int nbPtsLoop=0; \param coord the coordinates x y z of this point (output) \return 0 for success */ -inline static int computeCoordCylinderMain(int i, double *coord) { +int computeCoordCylinder(int i, double *coord) { static double angleStep=0. ; static double zStep=0. ; double theta ; @@ -51,17 +51,6 @@ inline static int computeCoordCylinderMain(int i, double *coord) { return 0 ; } -/*! \brief Computes coordinates of point number 'i' on the object (main cylinder or detail). - - \a i should be in [0, nbPts[. - \param i the number of the point in the detail (input) - \param coord the coordinates x y z of this point (output) - \return 0 for success -*/ -int computeCoordCylinder(int i, double *coord) { - return computeCoordCylinderMain(i, coord); -} - double* createCylinder(void) { double* result = MpfCalloc((size_t)3 * nbPts, sizeof(double)); int i, ierr; @@ -80,13 +69,6 @@ int initCylinder(int *argc, char ***argv) { int ierr ; double coord[3] ; - if (MpfArgGetDouble(argc, *argv, 1, "-radius", &radius)) { - printf("Reading radius = %f\n", radius) ; - } - if (MpfArgGetDouble(argc, *argv, 1, "-height", &height)) { - printf("Reading height = %f\n", height) ; - } - /* Calcule les coordonnees d'un point, afin de fixer meshStep (qui peut servir a fixer lambda) */ ierr=computeCoordCylinder(0, &(coord[0])) ; CHKERRQ(ierr) ; -- GitLab