Skip to content
Snippets Groups Projects
Commit 82cec16e authored by nadolski's avatar nadolski
Browse files

Bug: type wrong for bpm, corrector counting functions

parent 1d35286f
No related branches found
No related tags found
No related merge requests found
...@@ -539,19 +539,19 @@ void Read_Lattice(char *fic) ...@@ -539,19 +539,19 @@ void Read_Lattice(char *fic)
long get_bpm_number(void) long get_bpm_number(void)
{ {
int i; int i;
long nbpm = 0L; int nbpm = 0;
CellType Cell; CellType Cell;
for (i = 0; i <= globval.Cell_nLoc; i++) for (i = 0; i < globval.Cell_nLoc; i++)
{ {
getelem(i, &Cell); /* get element */ getelem(i, &Cell); /* get element */
if (strncmp(Cell.Elem.PName, "bpm", 3) == 0) if (strncmp(Cell.Elem.PName, "bpm", 3) == 0)
{ {
globval.bpm_list[nbpm] = i; globval.bpm_list[nbpm] = (long) i;
nbpm++; nbpm++;
} }
} }
return nbpm; return (long) nbpm;
} }
/****************************************************************************/ /****************************************************************************/
...@@ -583,19 +583,19 @@ long get_bpm_number(void) ...@@ -583,19 +583,19 @@ long get_bpm_number(void)
long get_hcorr_number(void) long get_hcorr_number(void)
{ {
int i; int i;
long nb = 0L; int nb = 0;
CellType Cell; CellType Cell;
for (i = 0; i <= globval.Cell_nLoc; i++) for (i = 0; i < globval.Cell_nLoc; i++)
{ {
getelem(i, &Cell); /* get element */ getelem(i, &Cell); /* get element */
if (strncmp(Cell.Elem.PName, "ch", 2) == 0) if (strncmp(Cell.Elem.PName, "ch", 2) == 0)
{ {
globval.hcorr_list[nb] = i; globval.hcorr_list[nb] = (long)i;
nb++; nb++;
} }
} }
return nb; return (long) nb;
} }
/****************************************************************************/ /****************************************************************************/
...@@ -627,7 +627,7 @@ long get_hcorr_number(void) ...@@ -627,7 +627,7 @@ long get_hcorr_number(void)
long get_vcorr_number(void) long get_vcorr_number(void)
{ {
int i; int i;
long nb = 0L; int nb = 0;
CellType Cell; CellType Cell;
for (i = 0; i <= globval.Cell_nLoc; i++) for (i = 0; i <= globval.Cell_nLoc; i++)
...@@ -635,11 +635,11 @@ long get_vcorr_number(void) ...@@ -635,11 +635,11 @@ long get_vcorr_number(void)
getelem(i, &Cell); /* get element */ getelem(i, &Cell); /* get element */
if (strncmp(Cell.Elem.PName, "cv", 2) == 0) if (strncmp(Cell.Elem.PName, "cv", 2) == 0)
{ {
globval.vcorr_list[nb] = i; globval.vcorr_list[nb] = (long) i;
nb++; nb++;
} }
} }
return nb; return (long) nb;
} }
/****************************************************************************/ /****************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment