diff options
-rw-r--r-- | DOCUMENTATION | 7 | ||||
-rw-r--r-- | nrlmsise-00.c | 6 | ||||
-rw-r--r-- | nrlmsise-00_test.c | 2 |
3 files changed, 9 insertions, 6 deletions
diff --git a/DOCUMENTATION b/DOCUMENTATION index 00e2890..a931e5b 100644 --- a/DOCUMENTATION +++ b/DOCUMENTATION @@ -103,7 +103,7 @@ output value. The C version probably contains some bugs and still has to be regarded more unstable than the FORTRAN release. Please report any bugs or -incorrect values to the maintainer at linux@brodo.de +incorrect values to the maintainer at mail@brodo.de @@ -142,6 +142,9 @@ the in- and output, and the differences between the various functions. 20151122 - fixes for gcc5, spelling fixes (Jacco Geul) +20170830 - fix some compiler warninges + (noted by Steven Queen) + 7. TESTING OUTPUT ================= @@ -264,6 +267,6 @@ double variables are used, this value reduces to 0.000E-00 as well. ======================================================== -Tuebingen, Germany, on July 27th, 2007 +Frankfurt, Germany, on August 30, 2017 Dominik Brodowski diff --git a/nrlmsise-00.c b/nrlmsise-00.c index c5e22e0..1abad3b 100644 --- a/nrlmsise-00.c +++ b/nrlmsise-00.c @@ -475,12 +475,12 @@ double densu (double alt, double dlb, double tinf, double tlb, double xm, double /* Calculate Temperature and Density Profiles for MSIS models * New lower thermo polynomial */ - double yd2, yd1, x, y; + double yd2, yd1, x=0, y; double rgas=831.4; double densu_temp=1.0; double za, z, zg2, tt, ta; - double dta, z1, z2, t1, t2, zg, zgdif; - int mn; + double dta, z1=0, z2, t1=0, t2, zg, zgdif=0; + int mn=0; int k; double glb; double expl; diff --git a/nrlmsise-00_test.c b/nrlmsise-00_test.c index 9a8bcc7..330687a 100644 --- a/nrlmsise-00_test.c +++ b/nrlmsise-00_test.c @@ -152,7 +152,7 @@ void test_gtd7(void) { printf("\nRHO "); for (j=0;j<5;j++) printf(" %1.3e",output[i*5+j].d[5]); - printf("\n"); + printf("\n"); } printf("\n"); } |