Commit 2e1ad624 authored by Luc Maisonobe's avatar Luc Maisonobe

use user home for tutorial output file for FieldPropagator.

parent 4e16d557
......@@ -7,4 +7,3 @@ target
......@@ -75,8 +75,8 @@ public class FieldPropagation {
DataProvidersManager manager = DataProvidersManager.getInstance();
manager.addProvider(new DirectoryCrawler(orekitData));
//setting some the file
File workingDir = new File(System.getProperty("user.dir"));
// output file in user's home directory
File workingDir = new File(System.getProperty("user.home"));
File errorFile = new File(workingDir, "error.txt");
System.out.println("Output file is in : " + errorFile.getAbsolutePath());
PrintWriter PW = new PrintWriter(errorFile, "UTF-8");
......@@ -223,7 +223,7 @@ public class FieldPropagation {
TimeStampedFieldPVCoordinates<DerivativeStructure> PV_t = (TimeStampedFieldPVCoordinates<DerivativeStructure>) currentState.getPVCoordinates();
//getting the propagated poisition and velocity(to find the cross track and long track error)
//getting the propagated position and velocity(to find the cross track and long track error)
FieldVector3D<DerivativeStructure> P_t = PV_t.getPosition();
FieldVector3D<DerivativeStructure> V_t = PV_t.getVelocity().normalize();
FieldVector3D<DerivativeStructure> M_t = PV_t.getMomentum().normalize();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment