Commit 16a79ea2 authored by Luc Maisonobe's avatar Luc Maisonobe

Fixed checkstyle errors.

parent 604805e3
......@@ -734,7 +734,7 @@ public class JPLEphemeridesLoader implements CelestialBodyLoader {
final long l3 = ((long) record[offset + 5]) & 0xffl;
final long l2 = ((long) record[offset + 6]) & 0xffl;
final long l1 = ((long) record[offset + 7]) & 0xffl;
long l;
final long l;
if (bigEndian) {
l = (l8 << 56) | (l7 << 48) | (l6 << 40) | (l5 << 32) |
(l4 << 24) | (l3 << 16) | (l2 << 8) | l1;
......
......@@ -703,13 +703,12 @@ public class DTM2000 implements Atmosphere {
private double semestrialCorrection(final double param) {
final int debeq_pr = 59;
final int debeq_au = 244;
double xmult;
double result;
final double result;
if (cachedDay >= 100) {
xmult = (cachedDay - debeq_au) / 40.0;
final double xmult = (cachedDay - debeq_au) / 40.0;
result = param - 2.0 * param * xmult;
} else {
xmult = (cachedDay - debeq_pr) / 40.0;
final double xmult = (cachedDay - debeq_pr) / 40.0;
result = 2.0 * param * xmult - param;
}
return result;
......
......@@ -405,8 +405,8 @@ public class JB2006 implements Atmosphere {
}
SUM3 = SUM3 + DZ * SUM1;
}
double ALTR;
double HSIGN;
final double ALTR;
final double HSIGN;
if (scaledSatAlt <= 500.) {
temp[2] = TLOC3;
ALTR = FastMath.log(TLOC3 / TLOC2);
......
......@@ -393,7 +393,7 @@ public class KeplerianOrbit extends Orbit {
// perform two iterations, each consisting of one Halley step and one Newton-Raphson step
for (int j = 0; j < 2; ++j) {
double f;
final double f;
double fd;
final double fdd = e * FastMath.sin(E);
final double fddd = e * FastMath.cos(E);
......
......@@ -372,12 +372,12 @@ public class DeepSDP4 extends SDP4 {
6.56250012 * (1 + 2 * cosi0 - 3 * theta2));
final double f542 = 29.53125 * sini0 * (2 - 8 * cosi0 + theta2 * (-12 + 8 * cosi0 + 10 * theta2));
final double f543 = 29.53125 * sini0 * (-2 - 8 * cosi0 + theta2 * (12 + 8 * cosi0 - 10 * theta2));
double g211;
double g310;
double g322;
double g410;
double g422;
double g520;
final double g211;
final double g310;
final double g322;
final double g410;
final double g422;
final double g520;
resonant = true; // it is resonant...
synchronous = false; // but it's not synchronous
......@@ -403,9 +403,9 @@ public class DeepSDP4 extends SDP4 {
}
}
double g533;
double g521;
double g532;
final double g533;
final double g521;
final double g532;
if (tle.getE() < 0.7) {
g533 = -919.2277 + 4988.61 * tle.getE() - 9064.77 * e0sq + 5542.21 * eoc;
g521 = -822.71072 + 4568.6173 * tle.getE() - 8491.4146 * e0sq + 5337.524 * eoc;
......
......@@ -1120,11 +1120,11 @@ public class DSSTThirdBody implements DSSTForceModel {
final int absJpS = FastMath.abs(j + s);
//The lower index of P. Also the power of (1 - c²)
int l;
final int l;
// the factorial ratio coefficient or 1. if |s| <= |j|
double factCoef;
final double factCoef;
if (absS > absJ) {
factCoef = (fact[n + s] / fact[n + j]) * (fact[n - s] / fact [n - j]);
factCoef = (fact[n + s] / fact[n + j]) * (fact[n - s] / fact[n - j]);
l = n - absS;
} else {
factCoef = 1.;
......
......@@ -914,14 +914,12 @@ class ZonalContribution implements DSSTForceModel {
final double[][] rhoSigma = new double[slot.cij.length][2];
for (int j = 1; j < rhoSigma.length; j++) {
double rho;
double sigma;
//Compute current rho and sigma;
mbtj *= -b;
final double coef = (1 + j * B) * mbtj;
rho = coef * cjsjKH.getCj(j);
sigma = coef * cjsjKH.getSj(j);
final double coef = (1 + j * B) * mbtj;
final double rho = coef * cjsjKH.getCj(j);
final double sigma = coef * cjsjKH.getSj(j);
// Add the coefficients to the interpolation grid
rhoSigma[j][0] = rho;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment