From 0663fb75c6bc42ccd093bed66820e92541ed419c Mon Sep 17 00:00:00 2001 From: Martin Miller Date: Sun, 28 Jan 2018 11:45:53 -0500 Subject: Add define for FEATUREMAP This will print the feature information in the unicsv so that the mapper Makefile can create a feature map. --- src/body.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/body.cpp') diff --git a/src/body.cpp b/src/body.cpp index 3000eeb..e4024ae 100644 --- a/src/body.cpp +++ b/src/body.cpp @@ -343,16 +343,19 @@ Body::skewSymmetric ( const Vector3d &x ) } /* ----- end of method Body::skewSymmetric ----- */ void -Body::unicsv ( ) +Body::unicsv ( const double time ) { +#ifdef FEATUREMAP + printf("0,"); +#endif #if STATESIZE==13 - printf("%d,%c,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f", utm_i, utm_c, + printf("%f,%d,%c,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f", time,utm_i, utm_c, X[0], X[1], -X[2], X[3], X[4], X[5], X[6], X[7], X[8],X[9], X[10],X[11],X[12]); #else - printf("%d,%c,%f,%f,%f,%f,%f,%f,%f,%f,%f", utm_i, utm_c, + printf("%f,%d,%c,%f,%f,%f,%f,%f,%f,%f,%f,%f", time,utm_i, utm_c, X[0], X[1], -X[2], X[3], X[4], X[5], X[6], X[7], X[8]); -- cgit v1.1