Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
minisolver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Org mode and Guix tutorial - Guix HPC Workshop
Software
minisolver
Commits
311c6323
Commit
311c6323
authored
1 year ago
by
FELŠÖCI Marek
Browse files
Options
Downloads
Patches
Plain Diff
Remove useless function from cylinder computation
parent
b006ddd1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cylinder.c
+1
-19
1 addition, 19 deletions
src/cylinder.c
with
1 addition
and
19 deletions
src/cylinder.c
+
1
−
19
View file @
311c6323
...
...
@@ -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
computeCoordCylinder
Main
(
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
)
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment