- Timestamp:
- 11/14/02 21:39:04 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/ReflectorII/geometry.c
r1535 r1614 24 24 float *Reflectivity[2]; /* reflectivity table */ 25 25 float *AxisDeviation[2]; /* axis deviation table */ 26 float *ct_Focal; /* focal length table */27 26 28 27 /* Prototypes */ … … 30 29 static void ReadReflectivity(char *datname); 31 30 static void ReadAxisDev(char *datname); 32 static void ReadFocals(void);33 31 34 32 static void ReadMirrorTable(FILE *geofile) … … 50 48 &ct_data[i].xn, &ct_data[i].yn, &ct_data[i].zn)) 51 49 break; 50 52 51 } 53 52 if (i < ct_NMirrors) … … 121 120 } /* end of ReadAxisDev */ 122 121 123 static void ReadFocals(void)124 { int loop;125 126 if ((ct_Focal = (float *) malloc(sizeof(float) * ct_NMirrors)) == NULL)127 FatalError(FOCL_FEW___FTL, ct_NMirrors);128 129 for (loop=0; loop<ct_NMirrors; loop++)130 ct_Focal[loop] = ct_data[loop].f;131 } /* end of ReadFocals */132 133 122 void GeometrySwitch(FILE *geofile) 134 123 { char *value_ptr = NULL; /* ptr at parm value */ … … 218 207 219 208 220 ReadFocals();221 209 } /* end of GeometrySwitch */ 222 210
Note:
See TracChangeset
for help on using the changeset viewer.