/* 2/14/00 fixed help message- dip angle (down positive), variation (E positive) */
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <cmath>
#include <simgear/constants.h>
/* output N, E, down components of B (nTesla)
dip angle (down positive), variation (E positive) */
double lat_deg,lon_deg,h,var;
-int model,yy,mm,dd;
+int /* model,*/yy,mm,dd;
double field[6];
if ((argc != 8) && (argc !=7)) {
dd= (int)strtol(argv[5],NULL,10);
yy= (int)strtol(argv[6],NULL,10);
if (argc == 8){
- model= (int)strtol(argv[7],NULL,10);
+// model= (int)strtol(argv[7],NULL,10);
}else{
- model=7;
+// model=7;
}