Changeset 9279 in ntrip


Ignore:
Timestamp:
Nov 25, 2020, 10:00:08 PM (3 months ago)
Author:
stuerze
Message:

small bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/pppModel.cpp

    r8905 r9279  
    651651  xyz2ell(xyz.data(), ell);
    652652  double height = ell[2];
     653  // Prevent pp from causing segmentation fault (Loukis)
     654  if (height > 40000.0 ) {
     655    return 0.000000001;
     656  }
    653657
    654658  double pp = 1013.25 * pow(1.0 - 2.26e-5 * height, 5.225);
Note: See TracChangeset for help on using the changeset viewer.