- Timestamp:
- 03/30/13 16:39:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Time.cc
r15202 r15205 307 307 { 308 308 #ifdef HAVE_LIBNOVA 309 Nova::LnLatPosn obs = Nova::ORM(); 310 309 311 ln_rst_time sun_day; 310 if (ln_get_solar_rst_horizon(JD()-0.5, & Nova::ORM(), horizon, &sun_day)==1)312 if (ln_get_solar_rst_horizon(JD()-0.5, &obs, horizon, &sun_day)==1) 311 313 throw runtime_error("ln_get_solar_rst_horizon reported the sun to be circumpolar at the coordinates of La Palma!"); 312 314 … … 314 316 return Time(sun_day.rise); 315 317 316 if (ln_get_solar_rst_horizon(JD()-1.5, & Nova::ORM(), horizon, &sun_day)==1)318 if (ln_get_solar_rst_horizon(JD()-1.5, &obs, horizon, &sun_day)==1) 317 319 throw runtime_error("ln_get_solar_rst_horizon reported the sun to be circumpolar at the coordinates of La Palma!"); 318 320 … … 338 340 { 339 341 #ifdef HAVE_LIBNOVA 342 Nova::LnLatPosn obs = Nova::ORM(); 343 340 344 ln_rst_time sun_day; 341 if (ln_get_solar_rst_horizon(JD()-0.5, & Nova::ORM(), horizon, &sun_day)==1)345 if (ln_get_solar_rst_horizon(JD()-0.5, &obs, horizon, &sun_day)==1) 342 346 throw runtime_error("ln_get_solar_rst_horizon reported the sun to be circumpolar at the coordinates of La Palma!"); 343 347 … … 345 349 return Time(sun_day.rise); 346 350 347 if (ln_get_solar_rst_horizon(JD()+0.5, & Nova::ORM(), horizon, &sun_day)==1)351 if (ln_get_solar_rst_horizon(JD()+0.5, &obs, horizon, &sun_day)==1) 348 352 throw runtime_error("ln_get_solar_rst_horizon reported the sun to be circumpolar at the coordinates of La Palma!"); 349 353
Note:
See TracChangeset
for help on using the changeset viewer.