- Timestamp:
- Oct 9, 2014, 5:55:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/ConfigInit.c
r37477 r37478 34 34 if (!ScanConfig (config, "SKY_DEPTH", "%d", 0, &SKY_DEPTH)) SKY_DEPTH = 2; 35 35 if (!ScanConfig (config, "SKY_TABLE", "%s", 0, SKY_TABLE)) SKY_TABLE[0] = 0; 36 37 38 if (!ScanConfig (config, "FAKEASTRO_NLOOP", "%d", 0, &FAKEASTRO_NLOOP)) { 39 FAKEASTRO_NLOOP = 1; 40 } 41 if (!ScanConfig (config, "FAKEASTRO_NSTARS", "%d", 0, &FAKEASTRO_NSTARS)) { 42 FAKEASTRO_NSTARS = 5000000; 43 } 44 if (!ScanConfig (config, "FAKEASTRO_ZGAL", "%f", 0, &FAKEASTRO_ZGAL)) { 45 FAKEASTRO_ZGAL = 500.0; // parsec 46 } 47 if (!ScanConfig (config, "FAKEASTRO_RGAL", "%f", 0, &FAKEASTRO_RGAL)) { 48 FAKEASTRO_RGAL = 2000.0; // parsec 49 } 50 if (!ScanConfig (config, "FAKEASTRO_REF_EPOCH", "%s", 0, FAKEASTRO_REF_EPOCH)) { 51 strcpy (FAKEASTRO_REF_EPOCH, "2011/05/11,00:00:00"); // epoch of reference catalog 52 } 36 53 37 54 /* set the default search radius */
Note:
See TracChangeset
for help on using the changeset viewer.
