]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/sg_geodesy.cxx
Patch from Melchior Franz:
[simgear.git] / simgear / math / sg_geodesy.cxx
index 9d30f09214c3e2f1ffa63b4a7a7ac43747c95f51..4393778d52fccbd5b8967609f9b4c861c4024bd0 100644 (file)
@@ -71,7 +71,7 @@ void sgGeocToGeod( double lat_geoc, double radius, double
 #ifdef DOMAIN_ERR_DEBUG
        if ( errno ) {
            perror("fgGeocToGeod()");
-           FG_LOG( FG_GENERAL, FG_ALERT, "sqrt(" << t_lat*t_lat + E*E << ")" );
+           SG_LOG( SG_GENERAL, SG_ALERT, "sqrt(" << t_lat*t_lat + E*E << ")" );
        }
 #endif
        // cout << "  x_alpha = " << x_alpha << endl;
@@ -80,7 +80,7 @@ void sgGeocToGeod( double lat_geoc, double radius, double
 #ifdef DOMAIN_ERR_DEBUG
        if ( errno ) {
            perror("fgGeocToGeod()");
-           FG_LOG( FG_GENERAL, FG_ALERT, "sqrt(" << SG_EQ_RAD_SQUARE_M - x_alpha * x_alpha
+           SG_LOG( SG_GENERAL, SG_ALERT, "sqrt(" << SG_EQ_RAD_SQUARE_M - x_alpha * x_alpha
                    << ")" );
        }
 #endif
@@ -96,7 +96,7 @@ void sgGeocToGeod( double lat_geoc, double radius, double
 #ifdef DOMAIN_ERR_DEBUG
        if ( errno ) {
            perror("fgGeocToGeod()");
-           FG_LOG( FG_GENERAL, FG_ALERT, "sqrt(" <<
+           SG_LOG( SG_GENERAL, SG_ALERT, "sqrt(" <<
                    1-EPS*EPS*sin_mu_a*sin_mu_a << ")" );
        }
 #endif
@@ -111,7 +111,7 @@ void sgGeocToGeod( double lat_geoc, double radius, double
 #ifdef DOMAIN_ERR_DEBUG
        if ( errno ) {
            perror("fgGeocToGeod()");
-           FG_LOG( FG_GENERAL, FG_ALERT, "sqrt(" <<
+           SG_LOG( SG_GENERAL, SG_ALERT, "sqrt(" <<
                    SG_EQ_RAD_SQUARE_M / (1 + ((1/(E*E))-1)*sin_lambda_sl*sin_lambda_sl)
                    << ")" );
        }
@@ -153,7 +153,7 @@ void sgGeodToGeoc( double lat_geod, double alt, double *sl_radius,
 #ifdef DOMAIN_ERR_DEBUG
        if ( errno ) {
            perror("fgGeodToGeoc()");
-           FG_LOG( FG_GENERAL, FG_ALERT, "sqrt(" <<
+           SG_LOG( SG_GENERAL, SG_ALERT, "sqrt(" <<
                    SG_EQ_RAD_SQUARE_M / (1 + ((1/(E*E))-1)*sin_lambda_sl*sin_lambda_sl)
                    << ")" );
        }