From 0b2a45e2567c84844a4a5a20bd5044e5329c5bdb Mon Sep 17 00:00:00 2001 From: andy Date: Sat, 30 Nov 2002 06:28:18 +0000 Subject: [PATCH] Add the command-line yasim compiler to the automake configuration. It installs into the build directory as "yasim". Simply run it with the xml file as its only argument. --- src/FDM/YASim/Makefile.am | 6 ++++++ src/FDM/YASim/yasim-test.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/FDM/YASim/Makefile.am b/src/FDM/YASim/Makefile.am index 196acd359..a69ac8469 100644 --- a/src/FDM/YASim/Makefile.am +++ b/src/FDM/YASim/Makefile.am @@ -23,4 +23,10 @@ libYASim_a_SOURCES = \ Vector.hpp \ Wing.cpp Wing.hpp +bin_PROGRAMS = yasim + +yasim_SOURCES = yasim-test.cpp + +yasim_LDADD = libYASim.a -lsgxml -lsgmisc -lsgdebug + INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src diff --git a/src/FDM/YASim/yasim-test.cpp b/src/FDM/YASim/yasim-test.cpp index 438d88b02..9938cc109 100644 --- a/src/FDM/YASim/yasim-test.cpp +++ b/src/FDM/YASim/yasim-test.cpp @@ -45,7 +45,7 @@ int main(int argc, char** argv) printf(" Cruise AoA: %f\n", aoa); printf(" Tail Incidence: %f\n", tail); printf("Approach Elevator: %f\n", a->getApproachElevator()); - printf(" CG: %.1f, %.1f, %.1f\n", cg[0], cg[1], cg[2]); + printf(" CG: %.3f, %.3f, %.3f\n", cg[0], cg[1], cg[2]); if(a->getFailureMsg()) printf("SOLUTION FAILURE: %s\n", a->getFailureMsg()); -- 2.39.5