Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
TRACY3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PA
Optics
TRACY3
Commits
730ede84
Commit
730ede84
authored
14 years ago
by
zhang
Browse files
Options
Downloads
Patches
Plain Diff
04/11/2010
1) Delete unused functions: get_hcorr/vcorr/bpm/qt_number( ).
parent
eb10ba29
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tracy/tracy/src/soleilcommon.cc
+4
-178
4 additions, 178 deletions
tracy/tracy/src/soleilcommon.cc
with
4 additions
and
178 deletions
tracy/tracy/src/soleilcommon.cc
+
4
−
178
View file @
730ede84
...
...
@@ -105,7 +105,7 @@ void Read_Lattice(char *fic)
fprintf
(
stdout
,
"ReadLattice: Error while opening file %s
\n
"
,
fic_maille
);
fprintf
(
stdout
,
"The lattice file
has to end by .lat
\n
"
);
fprintf
(
stdout
,
"The lattice file
name is wrong!
\n
"
);
exit
(
1
);
}
...
...
@@ -213,186 +213,12 @@ void Read_Lattice(char *fic)
TransTwiss
(
alpha
,
beta
,
eta
,
etap
,
codvect
);
}
}
}
/****************************************************************************/
/* long get_bpm_number(void)
Purpose: called by Read_Lattice
Compute number of bpm in the lattice
The bpm name has to begin with 'bpm'
Input:
none
Output:
bpm bpm number found into the lattice
Return:
none
Global variables:
none
specific functions:
none
Comments:
none
****************************************************************************/
long
get_bpm_number
(
void
)
{
int
i
;
int
nbpm
=
0
;
CellType
Cell
;
for
(
i
=
0
;
i
<
globval
.
Cell_nLoc
;
i
++
)
{
getelem
(
i
,
&
Cell
);
/* get element */
if
(
strncmp
(
Cell
.
Elem
.
PName
,
"bpm"
,
3
)
==
0
)
{
globval
.
bpm_list
[
nbpm
]
=
(
long
)
i
;
nbpm
++
;
}
}
return
(
long
)
nbpm
;
}
/****************************************************************************/
/* long get_hcorr_number(void)
Purpose: called by Read_Lattice
Compute number of corrector into the lattice
The corrector name has to begin with 'ch'
Input:
none
Output:
corrector number found in the lattice
Return:
none
Global variables:
none
specific functions:
none
Comments:
none
****************************************************************************/
long
get_hcorr_number
(
void
)
{
int
i
;
int
nb
=
0
;
CellType
Cell
;
for
(
i
=
0
;
i
<
globval
.
Cell_nLoc
;
i
++
)
{
getelem
(
i
,
&
Cell
);
/* get element */
if
(
strncmp
(
Cell
.
Elem
.
PName
,
"ch"
,
2
)
==
0
)
{
globval
.
hcorr_list
[
nb
]
=
(
long
)
i
;
nb
++
;
/* SOLEIL print out lattice functions, with all the optical information for the lattice with design values */
printlatt
();
printglob
();
}
}
return
(
long
)
nb
;
}
/****************************************************************************/
/* long get_vcorr_number(void)
Purpose: called by Read_Lattice
Compute number of vertical corrector in the lattice
The corrector name has to begin with 'cv'
Input:
none
Output:
corrector number found into the lattice
Return:
none
Global variables:
none
specific functions:
none
Comments:
none
****************************************************************************/
long
get_vcorr_number
(
void
)
{
int
i
;
int
nb
=
0
;
CellType
Cell
;
for
(
i
=
0
;
i
<=
globval
.
Cell_nLoc
;
i
++
)
{
getelem
(
i
,
&
Cell
);
/* get element */
if
(
strncmp
(
Cell
.
Elem
.
PName
,
"cv"
,
2
)
==
0
)
{
globval
.
vcorr_list
[
nb
]
=
(
long
)
i
;
nb
++
;
}
}
return
(
long
)
nb
;
}
/****************************************************************************/
/* long get_qt_number(void)
Purpose: called by Read_Lattice
Compute number of skew quadrupoles in the lattice
The skew quad name has to begin with 'qt'
Input:
none
Output:
skew quadrupole number found into the lattice
Return:
none
Global variables:
none
specific functions:
none
Comments:
none
****************************************************************************/
long
get_qt_number
(
void
)
{
int
i
;
long
nb
=
0L
;
CellType
Cell
;
for
(
i
=
0
;
i
<=
globval
.
Cell_nLoc
;
i
++
)
{
getelem
(
i
,
&
Cell
);
/* get element */
if
(
strncmp
(
Cell
.
Elem
.
PName
,
"qt"
,
2
)
==
0
)
{
globval
.
qt_list
[
nb
]
=
i
;
Cell
.
Elem
.
M
->
Porder
=
2L
;
nb
++
;
}
}
return
nb
;
}
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