Changeset 19215


Ignore:
Timestamp:
09/07/18 12:05:10 (6 years ago)
Author:
tbretz
Message:
The precompiler directive to check for libnova should be identical everywhere.
Location:
trunk/FACT++/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Time.cc

    r18966 r19215  
    3030using namespace boost::posix_time;
    3131
    32 #ifdef HAVE_LIBNOVA
     32#ifdef HAVE_NOVA
    3333#include "externals/nova.h"
    3434#endif
     
    314314Time Time::GetPrevSunRise(double horizon, const string &obs) const
    315315{
    316 #ifdef HAVE_LIBNOVA
     316#ifdef HAVE_NOVA
    317317    const Nova::LnLatPosn posn(obs);
    318318    if (!posn.isValid())
     
    350350Time Time::GetNextSunRise(double horizon, const string &obs) const
    351351{
    352 #ifdef HAVE_LIBNOVA
     352#ifdef HAVE_NOVA
    353353    const Nova::LnLatPosn posn(obs);
    354354    if (!posn.isValid())
     
    377377Time Time::GetPrevSunRise(const string &obs) const
    378378{
    379 #ifdef HAVE_LIBNOVA
     379#ifdef HAVE_NOVA
    380380    return GetPrevSunRise(LN_SOLAR_STANDART_HORIZON, obs);
    381381#else
     
    390390Time Time::GetNextSunRise(const string &obs) const
    391391{
    392 #ifdef HAVE_LIBNOVA
     392#ifdef HAVE_NOVA
    393393    return GetNextSunRise(LN_SOLAR_STANDART_HORIZON, obs);
    394394#else
  • trunk/FACT++/src/datalogger.cc

    r18815 r19215  
    8686#include "DimState.h"
    8787
    88 #ifdef HAVE_LIBNOVA
     88#ifdef HAVE_NOVA
    8989#include <libnova/solar.h>
    9090#include <libnova/rise_set.h>
     
    12781278Time DataLogger::GetSunRise(const Time &time)
    12791279{
    1280 #ifdef HAVE_LIBNOVA
     1280#ifdef HAVE_NOVA
    12811281    const double lon = -(17.+53./60+26.525/3600);
    12821282    const double lat =   28.+45./60+42.462/3600;
  • trunk/FACT++/src/smartfact.cc

    r19139 r19215  
    110110    bool visible;
    111111
    112 #ifdef HAVE_LIBNOVA
     112#ifdef HAVE_NOVA
    113113    Nova::RstTime Rst(double jd, double hrz=LN_SOLAR_STANDART_HORIZON)
    114114    {
     
    135135    Sun(const Time &t) :  time(t)
    136136    {
    137 #ifdef HAVE_LIBNOVA
     137#ifdef HAVE_NOVA
    138138        // get Julian day from local time
    139139        const double JD = time.JD();
     
    343343    Moon(const Time &t) : time(t)
    344344    {
    345 #ifdef HAVE_LIBNOVA
     345#ifdef HAVE_NOVA
    346346        const double JD = time.JD();
    347347
Note: See TracChangeset for help on using the changeset viewer.