flukt 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flukt-0.1.0/.clang-format +29 -0
- flukt-0.1.0/.gitattributes +11 -0
- flukt-0.1.0/.github/workflows/ci.yml +235 -0
- flukt-0.1.0/.github/workflows/release.yml +115 -0
- flukt-0.1.0/.gitignore +20 -0
- flukt-0.1.0/CHANGELOG.md +15 -0
- flukt-0.1.0/CMakeLists.txt +191 -0
- flukt-0.1.0/CMakePresets.json +86 -0
- flukt-0.1.0/CONTRIBUTING.md +43 -0
- flukt-0.1.0/LICENSE +21 -0
- flukt-0.1.0/PKG-INFO +195 -0
- flukt-0.1.0/README.md +162 -0
- flukt-0.1.0/SECURITY.md +18 -0
- flukt-0.1.0/apps/CMakeLists.txt +49 -0
- flukt-0.1.0/apps/embedded.hpp +23 -0
- flukt-0.1.0/apps/flukt_cli.cpp +1623 -0
- flukt-0.1.0/bench/CMakeLists.txt +4 -0
- flukt-0.1.0/bench/rocket_benchmark.cpp +272 -0
- flukt-0.1.0/bindings/c/CMakeLists.txt +12 -0
- flukt-0.1.0/bindings/c/flukt_c.cpp +842 -0
- flukt-0.1.0/bindings/fmi/CMakeLists.txt +13 -0
- flukt-0.1.0/bindings/fmi/flukt_fmu.cpp +683 -0
- flukt-0.1.0/bindings/fmi/fmi3_unsupported.inc +247 -0
- flukt-0.1.0/bindings/python/CMakeLists.txt +77 -0
- flukt-0.1.0/bindings/python/flukt/__init__.py +129 -0
- flukt-0.1.0/bindings/python/flukt/__main__.py +31 -0
- flukt-0.1.0/bindings/python/module.cpp +1380 -0
- flukt-0.1.0/bindings/wasm/CMakeLists.txt +66 -0
- flukt-0.1.0/bindings/wasm/demo/demo.html +426 -0
- flukt-0.1.0/bindings/wasm/flukt_wasm.cpp +738 -0
- flukt-0.1.0/cmake/EmbedFiles.cmake +87 -0
- flukt-0.1.0/cmake/FluktOptions.cmake +26 -0
- flukt-0.1.0/cmake/FluktPlugin.cmake +13 -0
- flukt-0.1.0/cmake/GenerateRevision.cmake +34 -0
- flukt-0.1.0/cmake/MakeDemo.cmake +40 -0
- flukt-0.1.0/cmake/fluktConfig.cmake.in +13 -0
- flukt-0.1.0/cmake/flukt_version.hpp.in +3 -0
- flukt-0.1.0/docs/aircraft.md +146 -0
- flukt-0.1.0/docs/analysis.md +175 -0
- flukt-0.1.0/docs/batch_runs_and_optimisation.md +109 -0
- flukt-0.1.0/docs/c_and_javascript.md +124 -0
- flukt-0.1.0/docs/conventions.md +103 -0
- flukt-0.1.0/docs/cpp.md +132 -0
- flukt-0.1.0/docs/design/cpp20.md +42 -0
- flukt-0.1.0/docs/design/groups.md +248 -0
- flukt-0.1.0/docs/design/vehicle_files.md +300 -0
- flukt-0.1.0/docs/fmu.md +43 -0
- flukt-0.1.0/docs/frames_and_time.md +169 -0
- flukt-0.1.0/docs/groups.md +300 -0
- flukt-0.1.0/docs/guidance_and_control.md +125 -0
- flukt-0.1.0/docs/lua.md +108 -0
- flukt-0.1.0/docs/orbits.md +312 -0
- flukt-0.1.0/docs/plugins.md +69 -0
- flukt-0.1.0/docs/reference.md +1199 -0
- flukt-0.1.0/docs/results.md +132 -0
- flukt-0.1.0/docs/sensing.md +177 -0
- flukt-0.1.0/docs/sensors.md +167 -0
- flukt-0.1.0/docs/simplifications.md +169 -0
- flukt-0.1.0/docs/spacecraft.md +122 -0
- flukt-0.1.0/docs/turbulence.md +135 -0
- flukt-0.1.0/docs/units.md +56 -0
- flukt-0.1.0/docs/user_guide.md +509 -0
- flukt-0.1.0/docs/validation.md +271 -0
- flukt-0.1.0/docs/vehicle_physics.md +192 -0
- flukt-0.1.0/docs/vehicles.md +276 -0
- flukt-0.1.0/docs/writing_configurations.md +139 -0
- flukt-0.1.0/examples/README.md +84 -0
- flukt-0.1.0/examples/airport_radar.jsonc +63 -0
- flukt-0.1.0/examples/airship.jsonc +126 -0
- flukt-0.1.0/examples/camera_drone.jsonc +55 -0
- flukt-0.1.0/examples/camera_drone.py +93 -0
- flukt-0.1.0/examples/camera_drone_group.jsonc +53 -0
- flukt-0.1.0/examples/chase/chase.jsonc +41 -0
- flukt-0.1.0/examples/chase/chase.lua +46 -0
- flukt-0.1.0/examples/chase/drone.jsonc +51 -0
- flukt-0.1.0/examples/compare_with_astropy.py +70 -0
- flukt-0.1.0/examples/controlled_rocket.jsonc +73 -0
- flukt-0.1.0/examples/cubesat_detumble.jsonc +75 -0
- flukt-0.1.0/examples/data/gem_t1_8x8.gfc +58 -0
- flukt-0.1.0/examples/data/small_motor.csv +9 -0
- flukt-0.1.0/examples/data/small_rocket_cd.csv +9 -0
- flukt-0.1.0/examples/earth_orientation.jsonc +47 -0
- flukt-0.1.0/examples/f16.jsonc +67 -0
- flukt-0.1.0/examples/f16_circle.jsonc +44 -0
- flukt-0.1.0/examples/f16_landing.jsonc +106 -0
- flukt-0.1.0/examples/f16_turbulence.jsonc +45 -0
- flukt-0.1.0/examples/first_stage_impact.py +77 -0
- flukt-0.1.0/examples/five_phase_rocket.jsonc +68 -0
- flukt-0.1.0/examples/flat_earth_rocket.jsonc +56 -0
- flukt-0.1.0/examples/launch_to_orbit.jsonc +82 -0
- flukt-0.1.0/examples/light_aircraft.jsonc +171 -0
- flukt-0.1.0/examples/lua/drone.lua +36 -0
- flukt-0.1.0/examples/lua/recovery.lua +58 -0
- flukt-0.1.0/examples/lua_recovery.jsonc +54 -0
- flukt-0.1.0/examples/lunar_orbit.jsonc +46 -0
- flukt-0.1.0/examples/mars_entry.jsonc +52 -0
- flukt-0.1.0/examples/monte_carlo_rocket.jsonc +60 -0
- flukt-0.1.0/examples/optimize_launch_to_orbit.py +152 -0
- flukt-0.1.0/examples/plot_trajectory.py +57 -0
- flukt-0.1.0/examples/plugins/airbrake/CMakeLists.txt +22 -0
- flukt-0.1.0/examples/plugins/airbrake/airbrake_plugin.c +238 -0
- flukt-0.1.0/examples/plugins/airbrake/airbrake_rocket.jsonc +59 -0
- flukt-0.1.0/examples/rendezvous/approach.lua +45 -0
- flukt-0.1.0/examples/rendezvous/chaser.jsonc +50 -0
- flukt-0.1.0/examples/rendezvous/radar_approach.jsonc +70 -0
- flukt-0.1.0/examples/rendezvous/rendezvous.jsonc +43 -0
- flukt-0.1.0/examples/rendezvous/station.jsonc +21 -0
- flukt-0.1.0/examples/rendezvous/tracked.lua +95 -0
- flukt-0.1.0/examples/rocket_sensors.jsonc +46 -0
- flukt-0.1.0/examples/round_earth_rocket.jsonc +57 -0
- flukt-0.1.0/examples/satellite_decay.jsonc +51 -0
- flukt-0.1.0/examples/satellite_orbit.jsonc +60 -0
- flukt-0.1.0/examples/six_dof_rocket.jsonc +44 -0
- flukt-0.1.0/examples/stages/first_stage.jsonc +28 -0
- flukt-0.1.0/examples/stages/stages.jsonc +33 -0
- flukt-0.1.0/examples/vehicles/example_first_stage/vehicle.jsonc +44 -0
- flukt-0.1.0/examples/vehicles/example_launcher/checks/ascent.jsonc +38 -0
- flukt-0.1.0/examples/vehicles/example_launcher/checks/ascent_reference.csv +33 -0
- flukt-0.1.0/examples/vehicles/example_launcher/data/drag_coefficient.csv +8 -0
- flukt-0.1.0/examples/vehicles/example_launcher/vehicle.jsonc +108 -0
- flukt-0.1.0/examples/vehicles/example_rocket/checks/ballistic.jsonc +34 -0
- flukt-0.1.0/examples/vehicles/example_rocket/checks/ballistic_reference.csv +59 -0
- flukt-0.1.0/examples/vehicles/example_rocket/data/drag_coefficient.csv +9 -0
- flukt-0.1.0/examples/vehicles/example_rocket/data/motor.csv +9 -0
- flukt-0.1.0/examples/vehicles/example_rocket/vehicle.jsonc +124 -0
- flukt-0.1.0/examples/vehicles/example_satellite/vehicle.jsonc +41 -0
- flukt-0.1.0/examples/vehicles/f16/checks/level_flight.jsonc +33 -0
- flukt-0.1.0/examples/vehicles/f16/checks/level_flight_reference.csv +26 -0
- flukt-0.1.0/examples/vehicles/f16/data/f16_aero.jsonc +382 -0
- flukt-0.1.0/examples/vehicles/f16/data/f16_control.jsonc +208 -0
- flukt-0.1.0/examples/vehicles/f16/data/f16_gnc.jsonc +235 -0
- flukt-0.1.0/examples/vehicles/f16/data/f16_inertia.jsonc +47 -0
- flukt-0.1.0/examples/vehicles/f16/data/f16_prop.jsonc +98 -0
- flukt-0.1.0/examples/vehicles/f16/vehicle.jsonc +179 -0
- flukt-0.1.0/examples/weather_balloon.jsonc +83 -0
- flukt-0.1.0/include/flukt/core/block.hpp +131 -0
- flukt-0.1.0/include/flukt/core/definition.hpp +101 -0
- flukt-0.1.0/include/flukt/core/error.hpp +69 -0
- flukt-0.1.0/include/flukt/core/expression.hpp +155 -0
- flukt-0.1.0/include/flukt/core/schedule.hpp +70 -0
- flukt-0.1.0/include/flukt/core/units.hpp +87 -0
- flukt-0.1.0/include/flukt/core/variables.hpp +120 -0
- flukt-0.1.0/include/flukt/flukt.h +287 -0
- flukt-0.1.0/include/flukt/flukt.hpp +28 -0
- flukt-0.1.0/include/flukt/flukt_plugin.h +185 -0
- flukt-0.1.0/include/flukt/frames/bodies.hpp +46 -0
- flukt-0.1.0/include/flukt/frames/earth.hpp +51 -0
- flukt-0.1.0/include/flukt/frames/ephemeris.hpp +91 -0
- flukt-0.1.0/include/flukt/frames/jpl.hpp +83 -0
- flukt-0.1.0/include/flukt/frames/orientation.hpp +202 -0
- flukt-0.1.0/include/flukt/integrators/runge_kutta.hpp +186 -0
- flukt-0.1.0/include/flukt/io/downloads.hpp +24 -0
- flukt-0.1.0/include/flukt/io/files.hpp +60 -0
- flukt-0.1.0/include/flukt/io/fmu.hpp +56 -0
- flukt-0.1.0/include/flukt/io/json.hpp +37 -0
- flukt-0.1.0/include/flukt/io/output.hpp +75 -0
- flukt-0.1.0/include/flukt/io/sha256.hpp +11 -0
- flukt-0.1.0/include/flukt/io/tables.hpp +96 -0
- flukt-0.1.0/include/flukt/math/mat3.hpp +150 -0
- flukt-0.1.0/include/flukt/math/matrix.hpp +59 -0
- flukt-0.1.0/include/flukt/math/quat.hpp +175 -0
- flukt-0.1.0/include/flukt/math/random.hpp +66 -0
- flukt-0.1.0/include/flukt/math/roots.hpp +93 -0
- flukt-0.1.0/include/flukt/math/table.hpp +224 -0
- flukt-0.1.0/include/flukt/math/vec3.hpp +108 -0
- flukt-0.1.0/include/flukt/models/geomag.hpp +32 -0
- flukt-0.1.0/include/flukt/models/nrlmsise00.hpp +40 -0
- flukt-0.1.0/include/flukt/models/physics.hpp +86 -0
- flukt-0.1.0/include/flukt/models/plugins.hpp +45 -0
- flukt-0.1.0/include/flukt/models/registry.hpp +343 -0
- flukt-0.1.0/include/flukt/models/sgp4.hpp +90 -0
- flukt-0.1.0/include/flukt/models/space_weather.hpp +61 -0
- flukt-0.1.0/include/flukt/models/terrain.hpp +68 -0
- flukt-0.1.0/include/flukt/models/turbulence.hpp +46 -0
- flukt-0.1.0/include/flukt/script/lua.hpp +149 -0
- flukt-0.1.0/include/flukt/sim/action.hpp +68 -0
- flukt-0.1.0/include/flukt/sim/analysis.hpp +95 -0
- flukt-0.1.0/include/flukt/sim/batch.hpp +124 -0
- flukt-0.1.0/include/flukt/sim/callbacks.hpp +29 -0
- flukt-0.1.0/include/flukt/sim/config.hpp +127 -0
- flukt-0.1.0/include/flukt/sim/frames.hpp +82 -0
- flukt-0.1.0/include/flukt/sim/group.hpp +395 -0
- flukt-0.1.0/include/flukt/sim/model.hpp +254 -0
- flukt-0.1.0/include/flukt/sim/reference.hpp +63 -0
- flukt-0.1.0/include/flukt/sim/simulation.hpp +404 -0
- flukt-0.1.0/include/flukt/sim/summary.hpp +67 -0
- flukt-0.1.0/include/flukt/sim/vehicle.hpp +59 -0
- flukt-0.1.0/include/flukt/time/time.hpp +104 -0
- flukt-0.1.0/include/flukt/version.hpp +14 -0
- flukt-0.1.0/pyproject.toml +73 -0
- flukt-0.1.0/schema/flukt-group.schema.json +708 -0
- flukt-0.1.0/schema/flukt-vehicle.schema.json +2455 -0
- flukt-0.1.0/schema/flukt.schema.json +3580 -0
- flukt-0.1.0/src/core/definition.cpp +809 -0
- flukt-0.1.0/src/core/error.cpp +70 -0
- flukt-0.1.0/src/core/expression.cpp +1073 -0
- flukt-0.1.0/src/core/schedule.cpp +544 -0
- flukt-0.1.0/src/core/units.cpp +520 -0
- flukt-0.1.0/src/core/variables.cpp +233 -0
- flukt-0.1.0/src/frames/body_data.cpp +159 -0
- flukt-0.1.0/src/frames/earth.cpp +81 -0
- flukt-0.1.0/src/frames/eop_files.cpp +208 -0
- flukt-0.1.0/src/frames/ephemeris.cpp +238 -0
- flukt-0.1.0/src/frames/jpl.cpp +389 -0
- flukt-0.1.0/src/frames/orientation.cpp +605 -0
- flukt-0.1.0/src/integrators/runge_kutta.cpp +1039 -0
- flukt-0.1.0/src/io/downloads.cpp +39 -0
- flukt-0.1.0/src/io/files.cpp +98 -0
- flukt-0.1.0/src/io/fmu.cpp +570 -0
- flukt-0.1.0/src/io/json.cpp +108 -0
- flukt-0.1.0/src/io/output.cpp +297 -0
- flukt-0.1.0/src/io/sha256.cpp +101 -0
- flukt-0.1.0/src/io/tables.cpp +1022 -0
- flukt-0.1.0/src/math/matrix.cpp +425 -0
- flukt-0.1.0/src/math/table.cpp +81 -0
- flukt-0.1.0/src/models/aircraft.cpp +169 -0
- flukt-0.1.0/src/models/builtin.cpp +576 -0
- flukt-0.1.0/src/models/builtin6dof.cpp +309 -0
- flukt-0.1.0/src/models/control.cpp +259 -0
- flukt-0.1.0/src/models/entry.cpp +188 -0
- flukt-0.1.0/src/models/fluid.cpp +250 -0
- flukt-0.1.0/src/models/geomag.cpp +143 -0
- flukt-0.1.0/src/models/geomag_data.cpp +812 -0
- flukt-0.1.0/src/models/geomag_data.hpp +25 -0
- flukt-0.1.0/src/models/ground.cpp +300 -0
- flukt-0.1.0/src/models/harmonic_sum.cpp +108 -0
- flukt-0.1.0/src/models/harmonic_sum.hpp +40 -0
- flukt-0.1.0/src/models/magnetic.cpp +225 -0
- flukt-0.1.0/src/models/nrlmsise00.cpp +891 -0
- flukt-0.1.0/src/models/nrlmsise00_data.cpp +769 -0
- flukt-0.1.0/src/models/nrlmsise00_data.hpp +24 -0
- flukt-0.1.0/src/models/orbital.cpp +825 -0
- flukt-0.1.0/src/models/parachute.cpp +243 -0
- flukt-0.1.0/src/models/physics.cpp +546 -0
- flukt-0.1.0/src/models/plates.cpp +396 -0
- flukt-0.1.0/src/models/plugins.cpp +855 -0
- flukt-0.1.0/src/models/propeller.cpp +143 -0
- flukt-0.1.0/src/models/registry.cpp +175 -0
- flukt-0.1.0/src/models/sensors.cpp +627 -0
- flukt-0.1.0/src/models/sgp4.cpp +904 -0
- flukt-0.1.0/src/models/space_weather.cpp +224 -0
- flukt-0.1.0/src/models/terrain.cpp +86 -0
- flukt-0.1.0/src/models/thermosphere.cpp +376 -0
- flukt-0.1.0/src/models/tides.cpp +792 -0
- flukt-0.1.0/src/models/tides_data.cpp +183 -0
- flukt-0.1.0/src/models/tides_data.hpp +29 -0
- flukt-0.1.0/src/models/tle.cpp +174 -0
- flukt-0.1.0/src/models/turbulence.cpp +637 -0
- flukt-0.1.0/src/models/wheels.cpp +127 -0
- flukt-0.1.0/src/script/lua.cpp +628 -0
- flukt-0.1.0/src/sim/action.cpp +52 -0
- flukt-0.1.0/src/sim/analysis_internal.hpp +136 -0
- flukt-0.1.0/src/sim/batch.cpp +419 -0
- flukt-0.1.0/src/sim/builder.cpp +4023 -0
- flukt-0.1.0/src/sim/builtin_blocks.cpp +1183 -0
- flukt-0.1.0/src/sim/builtin_blocks.hpp +135 -0
- flukt-0.1.0/src/sim/config.cpp +600 -0
- flukt-0.1.0/src/sim/frames.cpp +26 -0
- flukt-0.1.0/src/sim/group.cpp +2902 -0
- flukt-0.1.0/src/sim/initial_state.cpp +534 -0
- flukt-0.1.0/src/sim/initial_state.hpp +44 -0
- flukt-0.1.0/src/sim/linearize.cpp +612 -0
- flukt-0.1.0/src/sim/mass.cpp +343 -0
- flukt-0.1.0/src/sim/mass.hpp +127 -0
- flukt-0.1.0/src/sim/provenance.cpp +73 -0
- flukt-0.1.0/src/sim/provenance.hpp +48 -0
- flukt-0.1.0/src/sim/rates.cpp +82 -0
- flukt-0.1.0/src/sim/rates.hpp +62 -0
- flukt-0.1.0/src/sim/reference.cpp +1373 -0
- flukt-0.1.0/src/sim/sensitivities.cpp +686 -0
- flukt-0.1.0/src/sim/simulation.cpp +1719 -0
- flukt-0.1.0/src/sim/snapshot.cpp +382 -0
- flukt-0.1.0/src/sim/summary.cpp +344 -0
- flukt-0.1.0/src/sim/vehicle.cpp +1476 -0
- flukt-0.1.0/src/time/time.cpp +390 -0
- flukt-0.1.0/src/version.cpp +16 -0
- flukt-0.1.0/tests/CMakeLists.txt +73 -0
- flukt-0.1.0/tests/c/test_c_api.c +360 -0
- flukt-0.1.0/tests/cmake/check_package.cmake +33 -0
- flukt-0.1.0/tests/cmake/consumer/CMakeLists.txt +19 -0
- flukt-0.1.0/tests/cmake/consumer/consumer.cpp +28 -0
- flukt-0.1.0/tests/data/eop/README.md +8 -0
- flukt-0.1.0/tests/data/eop/eop_20_c04_extract.txt +23 -0
- flukt-0.1.0/tests/data/eop/finals2000A_extract.all +31 -0
- flukt-0.1.0/tests/data/f16/F16_aero.dml +4077 -0
- flukt-0.1.0/tests/data/f16/F16_control.dml +1187 -0
- flukt-0.1.0/tests/data/f16/F16_gnc.dml +1410 -0
- flukt-0.1.0/tests/data/f16/F16_inertia.dml +164 -0
- flukt-0.1.0/tests/data/f16/F16_prop.dml +930 -0
- flukt-0.1.0/tests/data/f16/README.md +19 -0
- flukt-0.1.0/tests/data/f16/f16_aero_checks.json +1669 -0
- flukt-0.1.0/tests/data/f16/f16_prop_checks.json +362 -0
- flukt-0.1.0/tests/data/frames/ephemeris_reference.json +276 -0
- flukt-0.1.0/tests/data/frames/iau_reference.json +400 -0
- flukt-0.1.0/tests/data/frames/make_ephemeris_reference.py +43 -0
- flukt-0.1.0/tests/data/frames/make_iau_reference.py +59 -0
- flukt-0.1.0/tests/data/frames/make_reference.py +168 -0
- flukt-0.1.0/tests/data/frames/reference.json +623 -0
- flukt-0.1.0/tests/data/geomag/WMM2025_TestValues.txt +118 -0
- flukt-0.1.0/tests/data/jpl/README.md +16 -0
- flukt-0.1.0/tests/data/jpl/de440s_extract.bsp +0 -0
- flukt-0.1.0/tests/data/jpl/jpl_reference.json +6959 -0
- flukt-0.1.0/tests/data/jpl/make_extracts.py +254 -0
- flukt-0.1.0/tests/data/jpl/moon_pa_de440_extract.bpc +0 -0
- flukt-0.1.0/tests/data/nesc/README.md +32 -0
- flukt-0.1.0/tests/data/nesc/atmos_01.csv +34 -0
- flukt-0.1.0/tests/data/nesc/atmos_02.csv +34 -0
- flukt-0.1.0/tests/data/nesc/atmos_03.csv +34 -0
- flukt-0.1.0/tests/data/nesc/atmos_04.csv +34 -0
- flukt-0.1.0/tests/data/nesc/atmos_05.csv +34 -0
- flukt-0.1.0/tests/data/nesc/atmos_06.csv +34 -0
- flukt-0.1.0/tests/data/nesc/atmos_07.csv +34 -0
- flukt-0.1.0/tests/data/nesc/atmos_08.csv +34 -0
- flukt-0.1.0/tests/data/nesc/atmos_09.csv +34 -0
- flukt-0.1.0/tests/data/nesc/atmos_10.csv +34 -0
- flukt-0.1.0/tests/data/nesc/atmos_11.csv +364 -0
- flukt-0.1.0/tests/data/nesc/atmos_12.csv +364 -0
- flukt-0.1.0/tests/data/nesc/atmos_13p1.csv +44 -0
- flukt-0.1.0/tests/data/nesc/atmos_13p2.csv +44 -0
- flukt-0.1.0/tests/data/nesc/atmos_13p3.csv +64 -0
- flukt-0.1.0/tests/data/nesc/atmos_13p4.csv +124 -0
- flukt-0.1.0/tests/data/nesc/atmos_15.csv +364 -0
- flukt-0.1.0/tests/data/nesc/atmos_16.csv +364 -0
- flukt-0.1.0/tests/data/nesc/make_envelopes.py +65 -0
- flukt-0.1.0/tests/data/nesc/make_f16_envelopes.py +73 -0
- flukt-0.1.0/tests/data/nesc_orbital/README.md +18 -0
- flukt-0.1.0/tests/data/nesc_orbital/gem_t1_8x8.gfc +58 -0
- flukt-0.1.0/tests/data/nesc_orbital/harmonics_reference.json +173 -0
- flukt-0.1.0/tests/data/nesc_orbital/make_envelopes.py +115 -0
- flukt-0.1.0/tests/data/nesc_orbital/make_harmonics_reference.py +86 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_02.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_03_a.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_03_b.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_04.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_05_a.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_05_b.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_05_c.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_06_c.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_06_d.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_07_a.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_07_b.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_08_a.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_08_b.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_09_a.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_09_b.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_09_c.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_09_d.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_10_a.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_10_b.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_10_c.csv +27 -0
- flukt-0.1.0/tests/data/nesc_orbital/orbit_10_d.csv +27 -0
- flukt-0.1.0/tests/data/nrlmsise00/README.md +10 -0
- flukt-0.1.0/tests/data/nrlmsise00/make_reference.py +81 -0
- flukt-0.1.0/tests/data/nrlmsise00/reference.json +303 -0
- flukt-0.1.0/tests/data/orekit/README.md +16 -0
- flukt-0.1.0/tests/data/orekit/eigen6s_20x20.gfc +243 -0
- flukt-0.1.0/tests/data/orekit/fes2004_20x20.dat +3696 -0
- flukt-0.1.0/tests/data/orekit/make_plates.py +131 -0
- flukt-0.1.0/tests/data/orekit/make_reference.py +347 -0
- flukt-0.1.0/tests/data/orekit/make_stm.py +102 -0
- flukt-0.1.0/tests/data/orekit/orekit_plates.json +202 -0
- flukt-0.1.0/tests/data/orekit/orekit_reference.json +6980 -0
- flukt-0.1.0/tests/data/orekit/orekit_stm.json +137 -0
- flukt-0.1.0/tests/data/rocketpy/README.md +48 -0
- flukt-0.1.0/tests/data/rocketpy/make_rocketpy_reference.py +299 -0
- flukt-0.1.0/tests/data/rocketpy/rocketpy_flight.csv +388 -0
- flukt-0.1.0/tests/data/rocketpy/rocketpy_rocket.jsonc +164 -0
- flukt-0.1.0/tests/data/rocketpy/rocketpy_values.jsonc +1223 -0
- flukt-0.1.0/tests/data/sgp4/README.md +12 -0
- flukt-0.1.0/tests/data/sgp4/SGP4-VER.TLE +110 -0
- flukt-0.1.0/tests/data/sgp4/tcppver.out +700 -0
- flukt-0.1.0/tests/data/space_weather/README.md +7 -0
- flukt-0.1.0/tests/data/space_weather/sw_2024_may.csv +35 -0
- flukt-0.1.0/tests/python/test_aircraft_physics.py +118 -0
- flukt-0.1.0/tests/python/test_analysis.py +161 -0
- flukt-0.1.0/tests/python/test_batch.py +189 -0
- flukt-0.1.0/tests/python/test_cli.py +263 -0
- flukt-0.1.0/tests/python/test_control.py +132 -0
- flukt-0.1.0/tests/python/test_daveml.py +118 -0
- flukt-0.1.0/tests/python/test_flukt.py +196 -0
- flukt-0.1.0/tests/python/test_fmu.py +154 -0
- flukt-0.1.0/tests/python/test_formats.py +162 -0
- flukt-0.1.0/tests/python/test_frames.py +86 -0
- flukt-0.1.0/tests/python/test_groups.py +208 -0
- flukt-0.1.0/tests/python/test_lua.py +90 -0
- flukt-0.1.0/tests/python/test_plugins.py +91 -0
- flukt-0.1.0/tests/python/test_schema.py +98 -0
- flukt-0.1.0/tests/python/test_spacecraft.py +92 -0
- flukt-0.1.0/tests/python/test_units.py +129 -0
- flukt-0.1.0/tests/unit/main.cpp +2 -0
- flukt-0.1.0/tests/unit/test_6dof.cpp +265 -0
- flukt-0.1.0/tests/unit/test_accelerations.cpp +333 -0
- flukt-0.1.0/tests/unit/test_aircraft.cpp +344 -0
- flukt-0.1.0/tests/unit/test_batch.cpp +272 -0
- flukt-0.1.0/tests/unit/test_control.cpp +237 -0
- flukt-0.1.0/tests/unit/test_conventions.cpp +203 -0
- flukt-0.1.0/tests/unit/test_cpp_api.cpp +111 -0
- flukt-0.1.0/tests/unit/test_devices.cpp +181 -0
- flukt-0.1.0/tests/unit/test_environment.cpp +325 -0
- flukt-0.1.0/tests/unit/test_error_places.cpp +155 -0
- flukt-0.1.0/tests/unit/test_examples.cpp +574 -0
- flukt-0.1.0/tests/unit/test_expression.cpp +201 -0
- flukt-0.1.0/tests/unit/test_frames_time.cpp +533 -0
- flukt-0.1.0/tests/unit/test_ground.cpp +245 -0
- flukt-0.1.0/tests/unit/test_group.cpp +638 -0
- flukt-0.1.0/tests/unit/test_integrators.cpp +335 -0
- flukt-0.1.0/tests/unit/test_jpl.cpp +276 -0
- flukt-0.1.0/tests/unit/test_linearize.cpp +332 -0
- flukt-0.1.0/tests/unit/test_lua.cpp +354 -0
- flukt-0.1.0/tests/unit/test_magnetic.cpp +176 -0
- flukt-0.1.0/tests/unit/test_math.cpp +86 -0
- flukt-0.1.0/tests/unit/test_matrix.cpp +159 -0
- flukt-0.1.0/tests/unit/test_nrlmsise00.cpp +399 -0
- flukt-0.1.0/tests/unit/test_orbits.cpp +291 -0
- flukt-0.1.0/tests/unit/test_patterns.cpp +46 -0
- flukt-0.1.0/tests/unit/test_phases.cpp +354 -0
- flukt-0.1.0/tests/unit/test_physics.cpp +155 -0
- flukt-0.1.0/tests/unit/test_plugins.cpp +199 -0
- flukt-0.1.0/tests/unit/test_reference.cpp +127 -0
- flukt-0.1.0/tests/unit/test_schedule.cpp +176 -0
- flukt-0.1.0/tests/unit/test_sensing.cpp +391 -0
- flukt-0.1.0/tests/unit/test_sensitivities.cpp +326 -0
- flukt-0.1.0/tests/unit/test_sensors.cpp +303 -0
- flukt-0.1.0/tests/unit/test_sgp4.cpp +324 -0
- flukt-0.1.0/tests/unit/test_simulation.cpp +266 -0
- flukt-0.1.0/tests/unit/test_snapshot.cpp +142 -0
- flukt-0.1.0/tests/unit/test_spacecraft.cpp +220 -0
- flukt-0.1.0/tests/unit/test_summary.cpp +307 -0
- flukt-0.1.0/tests/unit/test_table.cpp +219 -0
- flukt-0.1.0/tests/unit/test_tables.cpp +237 -0
- flukt-0.1.0/tests/unit/test_tides.cpp +183 -0
- flukt-0.1.0/tests/unit/test_traceability.cpp +189 -0
- flukt-0.1.0/tests/unit/test_turbulence.cpp +408 -0
- flukt-0.1.0/tests/unit/test_units.cpp +346 -0
- flukt-0.1.0/tests/unit/test_variable_mass.cpp +331 -0
- flukt-0.1.0/tests/unit/test_variables.cpp +66 -0
- flukt-0.1.0/tests/unit/test_vehicles.cpp +823 -0
- flukt-0.1.0/tests/unit/test_version.cpp +16 -0
- flukt-0.1.0/tests/validation/reference_rocket.hpp +213 -0
- flukt-0.1.0/tests/validation/test_f16_models.cpp +74 -0
- flukt-0.1.0/tests/validation/test_nesc.cpp +296 -0
- flukt-0.1.0/tests/validation/test_nesc_f16.cpp +317 -0
- flukt-0.1.0/tests/validation/test_nesc_orbital.cpp +314 -0
- flukt-0.1.0/tests/validation/test_orekit.cpp +354 -0
- flukt-0.1.0/tests/validation/test_reference_rocket.cpp +59 -0
- flukt-0.1.0/tests/validation/test_rocketpy.cpp +230 -0
- flukt-0.1.0/tests/wasm/test_flukt.mjs +418 -0
- flukt-0.1.0/third_party/.clang-format +4 -0
- flukt-0.1.0/third_party/CMakeLists.txt +60 -0
- flukt-0.1.0/third_party/README.md +28 -0
- flukt-0.1.0/third_party/doctest/LICENSE.txt +21 -0
- flukt-0.1.0/third_party/doctest/include/doctest/doctest.h +9148 -0
- flukt-0.1.0/third_party/erfa/LICENSE +53 -0
- flukt-0.1.0/third_party/erfa/src/a2af.c +132 -0
- flukt-0.1.0/third_party/erfa/src/a2tf.c +128 -0
- flukt-0.1.0/third_party/erfa/src/ab.c +140 -0
- flukt-0.1.0/third_party/erfa/src/ae2hd.c +152 -0
- flukt-0.1.0/third_party/erfa/src/af2a.c +121 -0
- flukt-0.1.0/third_party/erfa/src/anp.c +96 -0
- flukt-0.1.0/third_party/erfa/src/anpm.c +96 -0
- flukt-0.1.0/third_party/erfa/src/apcg.c +183 -0
- flukt-0.1.0/third_party/erfa/src/apcg13.c +186 -0
- flukt-0.1.0/third_party/erfa/src/apci.c +192 -0
- flukt-0.1.0/third_party/erfa/src/apci13.c +204 -0
- flukt-0.1.0/third_party/erfa/src/apco.c +286 -0
- flukt-0.1.0/third_party/erfa/src/apco13.c +290 -0
- flukt-0.1.0/third_party/erfa/src/apcs.c +236 -0
- flukt-0.1.0/third_party/erfa/src/apcs13.c +193 -0
- flukt-0.1.0/third_party/erfa/src/aper.c +164 -0
- flukt-0.1.0/third_party/erfa/src/aper13.c +183 -0
- flukt-0.1.0/third_party/erfa/src/apio.c +232 -0
- flukt-0.1.0/third_party/erfa/src/apio13.c +262 -0
- flukt-0.1.0/third_party/erfa/src/atcc13.c +146 -0
- flukt-0.1.0/third_party/erfa/src/atccq.c +145 -0
- flukt-0.1.0/third_party/erfa/src/atci13.c +161 -0
- flukt-0.1.0/third_party/erfa/src/atciq.c +154 -0
- flukt-0.1.0/third_party/erfa/src/atciqn.c +193 -0
- flukt-0.1.0/third_party/erfa/src/atciqz.c +155 -0
- flukt-0.1.0/third_party/erfa/src/atco13.c +246 -0
- flukt-0.1.0/third_party/erfa/src/atic13.c +154 -0
- flukt-0.1.0/third_party/erfa/src/aticq.c +201 -0
- flukt-0.1.0/third_party/erfa/src/aticqn.c +239 -0
- flukt-0.1.0/third_party/erfa/src/atio13.c +225 -0
- flukt-0.1.0/third_party/erfa/src/atioq.c +250 -0
- flukt-0.1.0/third_party/erfa/src/atoc13.c +237 -0
- flukt-0.1.0/third_party/erfa/src/atoi13.c +232 -0
- flukt-0.1.0/third_party/erfa/src/atoiq.c +264 -0
- flukt-0.1.0/third_party/erfa/src/bi00.c +129 -0
- flukt-0.1.0/third_party/erfa/src/bp00.c +184 -0
- flukt-0.1.0/third_party/erfa/src/bp06.c +155 -0
- flukt-0.1.0/third_party/erfa/src/bpn2xy.c +111 -0
- flukt-0.1.0/third_party/erfa/src/c2i00a.c +150 -0
- flukt-0.1.0/third_party/erfa/src/c2i00b.c +150 -0
- flukt-0.1.0/third_party/erfa/src/c2i06a.c +147 -0
- flukt-0.1.0/third_party/erfa/src/c2ibpn.c +153 -0
- flukt-0.1.0/third_party/erfa/src/c2ixy.c +142 -0
- flukt-0.1.0/third_party/erfa/src/c2ixys.c +134 -0
- flukt-0.1.0/third_party/erfa/src/c2s.c +107 -0
- flukt-0.1.0/third_party/erfa/src/c2t00a.c +165 -0
- flukt-0.1.0/third_party/erfa/src/c2t00b.c +161 -0
- flukt-0.1.0/third_party/erfa/src/c2t06a.c +163 -0
- flukt-0.1.0/third_party/erfa/src/c2tcio.c +133 -0
- flukt-0.1.0/third_party/erfa/src/c2teqx.c +133 -0
- flukt-0.1.0/third_party/erfa/src/c2tpe.c +178 -0
- flukt-0.1.0/third_party/erfa/src/c2txy.c +170 -0
- flukt-0.1.0/third_party/erfa/src/cal2jd.c +153 -0
- flukt-0.1.0/third_party/erfa/src/cp.c +91 -0
- flukt-0.1.0/third_party/erfa/src/cpv.c +93 -0
- flukt-0.1.0/third_party/erfa/src/cr.c +94 -0
- flukt-0.1.0/third_party/erfa/src/d2dtf.c +250 -0
- flukt-0.1.0/third_party/erfa/src/d2tf.c +172 -0
- flukt-0.1.0/third_party/erfa/src/dat.c +314 -0
- flukt-0.1.0/third_party/erfa/src/dtdb.c +1227 -0
- flukt-0.1.0/third_party/erfa/src/dtf2d.c +217 -0
- flukt-0.1.0/third_party/erfa/src/eceq06.c +145 -0
- flukt-0.1.0/third_party/erfa/src/ecm06.c +148 -0
- flukt-0.1.0/third_party/erfa/src/ee00.c +141 -0
- flukt-0.1.0/third_party/erfa/src/ee00a.c +148 -0
- flukt-0.1.0/third_party/erfa/src/ee00b.c +154 -0
- flukt-0.1.0/third_party/erfa/src/ee06a.c +135 -0
- flukt-0.1.0/third_party/erfa/src/eect00.c +296 -0
- flukt-0.1.0/third_party/erfa/src/eform.c +160 -0
- flukt-0.1.0/third_party/erfa/src/eo06a.c +144 -0
- flukt-0.1.0/third_party/erfa/src/eors.c +121 -0
- flukt-0.1.0/third_party/erfa/src/epb.c +119 -0
- flukt-0.1.0/third_party/erfa/src/epb2jd.c +103 -0
- flukt-0.1.0/third_party/erfa/src/epj.c +121 -0
- flukt-0.1.0/third_party/erfa/src/epj2jd.c +103 -0
- flukt-0.1.0/third_party/erfa/src/epv00.c +2603 -0
- flukt-0.1.0/third_party/erfa/src/eqec06.c +146 -0
- flukt-0.1.0/third_party/erfa/src/eqeq94.c +146 -0
- flukt-0.1.0/third_party/erfa/src/era00.c +150 -0
- flukt-0.1.0/third_party/erfa/src/erfa.h +589 -0
- flukt-0.1.0/third_party/erfa/src/erfadatextra.c +93 -0
- flukt-0.1.0/third_party/erfa/src/erfadatextra.h +26 -0
- flukt-0.1.0/third_party/erfa/src/erfaextra.h +81 -0
- flukt-0.1.0/third_party/erfa/src/erfam.h +180 -0
- flukt-0.1.0/third_party/erfa/src/erfaversion.c +42 -0
- flukt-0.1.0/third_party/erfa/src/fad03.c +117 -0
- flukt-0.1.0/third_party/erfa/src/fae03.c +116 -0
- flukt-0.1.0/third_party/erfa/src/faf03.c +119 -0
- flukt-0.1.0/third_party/erfa/src/faju03.c +116 -0
- flukt-0.1.0/third_party/erfa/src/fal03.c +117 -0
- flukt-0.1.0/third_party/erfa/src/falp03.c +117 -0
- flukt-0.1.0/third_party/erfa/src/fama03.c +116 -0
- flukt-0.1.0/third_party/erfa/src/fame03.c +116 -0
- flukt-0.1.0/third_party/erfa/src/fane03.c +113 -0
- flukt-0.1.0/third_party/erfa/src/faom03.c +118 -0
- flukt-0.1.0/third_party/erfa/src/fapa03.c +116 -0
- flukt-0.1.0/third_party/erfa/src/fasa03.c +116 -0
- flukt-0.1.0/third_party/erfa/src/faur03.c +113 -0
- flukt-0.1.0/third_party/erfa/src/fave03.c +116 -0
- flukt-0.1.0/third_party/erfa/src/fk425.c +283 -0
- flukt-0.1.0/third_party/erfa/src/fk45z.c +213 -0
- flukt-0.1.0/third_party/erfa/src/fk524.c +295 -0
- flukt-0.1.0/third_party/erfa/src/fk52h.c +154 -0
- flukt-0.1.0/third_party/erfa/src/fk54z.c +154 -0
- flukt-0.1.0/third_party/erfa/src/fk5hip.c +138 -0
- flukt-0.1.0/third_party/erfa/src/fk5hz.c +172 -0
- flukt-0.1.0/third_party/erfa/src/fw2m.c +150 -0
- flukt-0.1.0/third_party/erfa/src/fw2xy.c +132 -0
- flukt-0.1.0/third_party/erfa/src/g2icrs.c +173 -0
- flukt-0.1.0/third_party/erfa/src/gc2gd.c +148 -0
- flukt-0.1.0/third_party/erfa/src/gc2gde.c +213 -0
- flukt-0.1.0/third_party/erfa/src/gd2gc.c +147 -0
- flukt-0.1.0/third_party/erfa/src/gd2gce.c +151 -0
- flukt-0.1.0/third_party/erfa/src/gmst00.c +159 -0
- flukt-0.1.0/third_party/erfa/src/gmst06.c +150 -0
- flukt-0.1.0/third_party/erfa/src/gmst82.c +164 -0
- flukt-0.1.0/third_party/erfa/src/gst00a.c +151 -0
- flukt-0.1.0/third_party/erfa/src/gst00b.c +159 -0
- flukt-0.1.0/third_party/erfa/src/gst06.c +153 -0
- flukt-0.1.0/third_party/erfa/src/gst06a.c +144 -0
- flukt-0.1.0/third_party/erfa/src/gst94.c +144 -0
- flukt-0.1.0/third_party/erfa/src/h2fk5.c +159 -0
- flukt-0.1.0/third_party/erfa/src/hd2ae.c +153 -0
- flukt-0.1.0/third_party/erfa/src/hd2pa.c +126 -0
- flukt-0.1.0/third_party/erfa/src/hfk5z.c +187 -0
- flukt-0.1.0/third_party/erfa/src/icrs2g.c +172 -0
- flukt-0.1.0/third_party/erfa/src/ir.c +94 -0
- flukt-0.1.0/third_party/erfa/src/jd2cal.c +212 -0
- flukt-0.1.0/third_party/erfa/src/jdcalf.c +187 -0
- flukt-0.1.0/third_party/erfa/src/ld.c +164 -0
- flukt-0.1.0/third_party/erfa/src/ldn.c +186 -0
- flukt-0.1.0/third_party/erfa/src/ldsun.c +117 -0
- flukt-0.1.0/third_party/erfa/src/lteceq.c +142 -0
- flukt-0.1.0/third_party/erfa/src/ltecm.c +162 -0
- flukt-0.1.0/third_party/erfa/src/lteqec.c +142 -0
- flukt-0.1.0/third_party/erfa/src/ltp.c +144 -0
- flukt-0.1.0/third_party/erfa/src/ltpb.c +138 -0
- flukt-0.1.0/third_party/erfa/src/ltpecl.c +182 -0
- flukt-0.1.0/third_party/erfa/src/ltpequ.c +182 -0
- flukt-0.1.0/third_party/erfa/src/moon98.c +615 -0
- flukt-0.1.0/third_party/erfa/src/num00a.c +132 -0
- flukt-0.1.0/third_party/erfa/src/num00b.c +132 -0
- flukt-0.1.0/third_party/erfa/src/num06a.c +136 -0
- flukt-0.1.0/third_party/erfa/src/numat.c +120 -0
- flukt-0.1.0/third_party/erfa/src/nut00a.c +2059 -0
- flukt-0.1.0/third_party/erfa/src/nut00b.c +384 -0
- flukt-0.1.0/third_party/erfa/src/nut06a.c +165 -0
- flukt-0.1.0/third_party/erfa/src/nut80.c +337 -0
- flukt-0.1.0/third_party/erfa/src/nutm80.c +128 -0
- flukt-0.1.0/third_party/erfa/src/obl06.c +132 -0
- flukt-0.1.0/third_party/erfa/src/obl80.c +132 -0
- flukt-0.1.0/third_party/erfa/src/p06e.c +340 -0
- flukt-0.1.0/third_party/erfa/src/p2pv.c +94 -0
- flukt-0.1.0/third_party/erfa/src/p2s.c +102 -0
- flukt-0.1.0/third_party/erfa/src/pap.c +152 -0
- flukt-0.1.0/third_party/erfa/src/pas.c +109 -0
- flukt-0.1.0/third_party/erfa/src/pb06.c +163 -0
- flukt-0.1.0/third_party/erfa/src/pdp.c +97 -0
- flukt-0.1.0/third_party/erfa/src/pfw06.c +177 -0
- flukt-0.1.0/third_party/erfa/src/plan94.c +530 -0
- flukt-0.1.0/third_party/erfa/src/pm.c +89 -0
- flukt-0.1.0/third_party/erfa/src/pmat00.c +129 -0
- flukt-0.1.0/third_party/erfa/src/pmat06.c +137 -0
- flukt-0.1.0/third_party/erfa/src/pmat76.c +153 -0
- flukt-0.1.0/third_party/erfa/src/pmp.c +96 -0
- flukt-0.1.0/third_party/erfa/src/pmpx.c +156 -0
- flukt-0.1.0/third_party/erfa/src/pmsafe.c +208 -0
- flukt-0.1.0/third_party/erfa/src/pn.c +120 -0
- flukt-0.1.0/third_party/erfa/src/pn00.c +188 -0
- flukt-0.1.0/third_party/erfa/src/pn00a.c +174 -0
- flukt-0.1.0/third_party/erfa/src/pn00b.c +174 -0
- flukt-0.1.0/third_party/erfa/src/pn06.c +199 -0
- flukt-0.1.0/third_party/erfa/src/pn06a.c +164 -0
- flukt-0.1.0/third_party/erfa/src/pnm00a.c +132 -0
- flukt-0.1.0/third_party/erfa/src/pnm00b.c +132 -0
- flukt-0.1.0/third_party/erfa/src/pnm06a.c +136 -0
- flukt-0.1.0/third_party/erfa/src/pnm80.c +137 -0
- flukt-0.1.0/third_party/erfa/src/pom00.c +126 -0
- flukt-0.1.0/third_party/erfa/src/ppp.c +96 -0
- flukt-0.1.0/third_party/erfa/src/ppsp.c +105 -0
- flukt-0.1.0/third_party/erfa/src/pr00.c +154 -0
- flukt-0.1.0/third_party/erfa/src/prec76.c +160 -0
- flukt-0.1.0/third_party/erfa/src/pv2p.c +92 -0
- flukt-0.1.0/third_party/erfa/src/pv2s.c +155 -0
- flukt-0.1.0/third_party/erfa/src/pvdpv.c +113 -0
- flukt-0.1.0/third_party/erfa/src/pvm.c +97 -0
- flukt-0.1.0/third_party/erfa/src/pvmpv.c +98 -0
- flukt-0.1.0/third_party/erfa/src/pvppv.c +98 -0
- flukt-0.1.0/third_party/erfa/src/pvstar.c +219 -0
- flukt-0.1.0/third_party/erfa/src/pvtob.c +165 -0
- flukt-0.1.0/third_party/erfa/src/pvu.c +104 -0
- flukt-0.1.0/third_party/erfa/src/pvup.c +99 -0
- flukt-0.1.0/third_party/erfa/src/pvxpv.c +118 -0
- flukt-0.1.0/third_party/erfa/src/pxp.c +105 -0
- flukt-0.1.0/third_party/erfa/src/refco.c +269 -0
- flukt-0.1.0/third_party/erfa/src/rm2v.c +122 -0
- flukt-0.1.0/third_party/erfa/src/rv2m.c +129 -0
- flukt-0.1.0/third_party/erfa/src/rx.c +121 -0
- flukt-0.1.0/third_party/erfa/src/rxp.c +110 -0
- flukt-0.1.0/third_party/erfa/src/rxpv.c +103 -0
- flukt-0.1.0/third_party/erfa/src/rxr.c +110 -0
- flukt-0.1.0/third_party/erfa/src/ry.c +121 -0
- flukt-0.1.0/third_party/erfa/src/rz.c +121 -0
- flukt-0.1.0/third_party/erfa/src/s00.c +385 -0
- flukt-0.1.0/third_party/erfa/src/s00a.c +156 -0
- flukt-0.1.0/third_party/erfa/src/s00b.c +156 -0
- flukt-0.1.0/third_party/erfa/src/s06.c +382 -0
- flukt-0.1.0/third_party/erfa/src/s06a.c +158 -0
- flukt-0.1.0/third_party/erfa/src/s2c.c +96 -0
- flukt-0.1.0/third_party/erfa/src/s2p.c +99 -0
- flukt-0.1.0/third_party/erfa/src/s2pv.c +114 -0
- flukt-0.1.0/third_party/erfa/src/s2xpv.c +98 -0
- flukt-0.1.0/third_party/erfa/src/sepp.c +118 -0
- flukt-0.1.0/third_party/erfa/src/seps.c +106 -0
- flukt-0.1.0/third_party/erfa/src/sp00.c +132 -0
- flukt-0.1.0/third_party/erfa/src/starpm.c +219 -0
- flukt-0.1.0/third_party/erfa/src/starpv.c +278 -0
- flukt-0.1.0/third_party/erfa/src/sxp.c +95 -0
- flukt-0.1.0/third_party/erfa/src/sxpv.c +96 -0
- flukt-0.1.0/third_party/erfa/src/taitt.c +124 -0
- flukt-0.1.0/third_party/erfa/src/taiut1.c +125 -0
- flukt-0.1.0/third_party/erfa/src/taiutc.c +172 -0
- flukt-0.1.0/third_party/erfa/src/tcbtdb.c +146 -0
- flukt-0.1.0/third_party/erfa/src/tcgtt.c +123 -0
- flukt-0.1.0/third_party/erfa/src/tdbtcb.c +151 -0
- flukt-0.1.0/third_party/erfa/src/tdbtt.c +135 -0
- flukt-0.1.0/third_party/erfa/src/tf2a.c +121 -0
- flukt-0.1.0/third_party/erfa/src/tf2d.c +121 -0
- flukt-0.1.0/third_party/erfa/src/tpors.c +183 -0
- flukt-0.1.0/third_party/erfa/src/tporv.c +180 -0
- flukt-0.1.0/third_party/erfa/src/tpsts.c +131 -0
- flukt-0.1.0/third_party/erfa/src/tpstv.c +155 -0
- flukt-0.1.0/third_party/erfa/src/tpxes.c +164 -0
- flukt-0.1.0/third_party/erfa/src/tpxev.c +184 -0
- flukt-0.1.0/third_party/erfa/src/tr.c +104 -0
- flukt-0.1.0/third_party/erfa/src/trxp.c +104 -0
- flukt-0.1.0/third_party/erfa/src/trxpv.c +110 -0
- flukt-0.1.0/third_party/erfa/src/tttai.c +124 -0
- flukt-0.1.0/third_party/erfa/src/tttcg.c +126 -0
- flukt-0.1.0/third_party/erfa/src/tttdb.c +135 -0
- flukt-0.1.0/third_party/erfa/src/ttut1.c +124 -0
- flukt-0.1.0/third_party/erfa/src/ut1tai.c +125 -0
- flukt-0.1.0/third_party/erfa/src/ut1tt.c +124 -0
- flukt-0.1.0/third_party/erfa/src/ut1utc.c +207 -0
- flukt-0.1.0/third_party/erfa/src/utctai.c +191 -0
- flukt-0.1.0/third_party/erfa/src/utcut1.c +160 -0
- flukt-0.1.0/third_party/erfa/src/xy06.c +2770 -0
- flukt-0.1.0/third_party/erfa/src/xys00a.c +144 -0
- flukt-0.1.0/third_party/erfa/src/xys00b.c +144 -0
- flukt-0.1.0/third_party/erfa/src/xys06a.c +144 -0
- flukt-0.1.0/third_party/erfa/src/zp.c +88 -0
- flukt-0.1.0/third_party/erfa/src/zpv.c +90 -0
- flukt-0.1.0/third_party/erfa/src/zr.c +94 -0
- flukt-0.1.0/third_party/fmi/LICENSE.txt +28 -0
- flukt-0.1.0/third_party/fmi/headers/fmi2FunctionTypes.h +271 -0
- flukt-0.1.0/third_party/fmi/headers/fmi2Functions.h +317 -0
- flukt-0.1.0/third_party/fmi/headers/fmi2TypesPlatform.h +108 -0
- flukt-0.1.0/third_party/fmi/headers/fmi3FunctionTypes.h +638 -0
- flukt-0.1.0/third_party/fmi/headers/fmi3Functions.h +343 -0
- flukt-0.1.0/third_party/fmi/headers/fmi3PlatformTypes.h +94 -0
- flukt-0.1.0/third_party/geomag/WMM2025.COF +93 -0
- flukt-0.1.0/third_party/geomag/igrf14coeffs.txt +199 -0
- flukt-0.1.0/third_party/geomag/make_coefficients.py +86 -0
- flukt-0.1.0/third_party/json/LICENSE.MIT +21 -0
- flukt-0.1.0/third_party/json/include/nlohmann/json.hpp +25526 -0
- flukt-0.1.0/third_party/lua/LICENSE +20 -0
- flukt-0.1.0/third_party/lua/src/lapi.c +1479 -0
- flukt-0.1.0/third_party/lua/src/lapi.h +65 -0
- flukt-0.1.0/third_party/lua/src/lauxlib.c +1215 -0
- flukt-0.1.0/third_party/lua/src/lauxlib.h +271 -0
- flukt-0.1.0/third_party/lua/src/lbaselib.c +552 -0
- flukt-0.1.0/third_party/lua/src/lcode.c +1970 -0
- flukt-0.1.0/third_party/lua/src/lcode.h +105 -0
- flukt-0.1.0/third_party/lua/src/lcorolib.c +225 -0
- flukt-0.1.0/third_party/lua/src/lctype.c +64 -0
- flukt-0.1.0/third_party/lua/src/lctype.h +101 -0
- flukt-0.1.0/third_party/lua/src/ldblib.c +477 -0
- flukt-0.1.0/third_party/lua/src/ldebug.c +979 -0
- flukt-0.1.0/third_party/lua/src/ldebug.h +65 -0
- flukt-0.1.0/third_party/lua/src/ldo.c +1192 -0
- flukt-0.1.0/third_party/lua/src/ldo.h +99 -0
- flukt-0.1.0/third_party/lua/src/ldump.c +307 -0
- flukt-0.1.0/third_party/lua/src/lfunc.c +314 -0
- flukt-0.1.0/third_party/lua/src/lfunc.h +65 -0
- flukt-0.1.0/third_party/lua/src/lgc.c +1804 -0
- flukt-0.1.0/third_party/lua/src/lgc.h +268 -0
- flukt-0.1.0/third_party/lua/src/linit.c +63 -0
- flukt-0.1.0/third_party/lua/src/liolib.c +841 -0
- flukt-0.1.0/third_party/lua/src/ljumptab.h +114 -0
- flukt-0.1.0/third_party/lua/src/llex.c +604 -0
- flukt-0.1.0/third_party/lua/src/llex.h +93 -0
- flukt-0.1.0/third_party/lua/src/llimits.h +357 -0
- flukt-0.1.0/third_party/lua/src/lmathlib.c +765 -0
- flukt-0.1.0/third_party/lua/src/lmem.c +215 -0
- flukt-0.1.0/third_party/lua/src/lmem.h +96 -0
- flukt-0.1.0/third_party/lua/src/loadlib.c +748 -0
- flukt-0.1.0/third_party/lua/src/lobject.c +718 -0
- flukt-0.1.0/third_party/lua/src/lobject.h +865 -0
- flukt-0.1.0/third_party/lua/src/lopcodes.c +131 -0
- flukt-0.1.0/third_party/lua/src/lopcodes.h +444 -0
- flukt-0.1.0/third_party/lua/src/lopnames.h +105 -0
- flukt-0.1.0/third_party/lua/src/loslib.c +432 -0
- flukt-0.1.0/third_party/lua/src/lparser.c +2193 -0
- flukt-0.1.0/third_party/lua/src/lparser.h +197 -0
- flukt-0.1.0/third_party/lua/src/lprefix.h +45 -0
- flukt-0.1.0/third_party/lua/src/lstate.c +425 -0
- flukt-0.1.0/third_party/lua/src/lstate.h +451 -0
- flukt-0.1.0/third_party/lua/src/lstring.c +353 -0
- flukt-0.1.0/third_party/lua/src/lstring.h +73 -0
- flukt-0.1.0/third_party/lua/src/lstrlib.c +1900 -0
- flukt-0.1.0/third_party/lua/src/ltable.c +1355 -0
- flukt-0.1.0/third_party/lua/src/ltable.h +184 -0
- flukt-0.1.0/third_party/lua/src/ltablib.c +429 -0
- flukt-0.1.0/third_party/lua/src/ltm.c +364 -0
- flukt-0.1.0/third_party/lua/src/ltm.h +105 -0
- flukt-0.1.0/third_party/lua/src/lua.h +547 -0
- flukt-0.1.0/third_party/lua/src/lua.hpp +10 -0
- flukt-0.1.0/third_party/lua/src/luaconf.h +756 -0
- flukt-0.1.0/third_party/lua/src/lualib.h +65 -0
- flukt-0.1.0/third_party/lua/src/lundump.c +421 -0
- flukt-0.1.0/third_party/lua/src/lundump.h +40 -0
- flukt-0.1.0/third_party/lua/src/lutf8lib.c +294 -0
- flukt-0.1.0/third_party/lua/src/lvm.c +1978 -0
- flukt-0.1.0/third_party/lua/src/lvm.h +136 -0
- flukt-0.1.0/third_party/lua/src/lzio.c +89 -0
- flukt-0.1.0/third_party/lua/src/lzio.h +67 -0
- flukt-0.1.0/third_party/naif/gm_de440.tpc +302 -0
- flukt-0.1.0/third_party/naif/make_body_data.py +119 -0
- flukt-0.1.0/third_party/naif/pck00011.tpc +4318 -0
- flukt-0.1.0/third_party/nrlmsise00/make_coefficients.py +87 -0
- flukt-0.1.0/third_party/nrlmsise00/nrlmsise00_driver.for +114 -0
- flukt-0.1.0/third_party/nrlmsise00/nrlmsise00_output.txt +157 -0
- flukt-0.1.0/third_party/nrlmsise00/nrlmsise00_sub.for +2435 -0
- flukt-0.1.0/tools/daveml_to_flukt.py +419 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
BasedOnStyle: LLVM
|
|
3
|
+
Language: Cpp
|
|
4
|
+
Standard: c++20
|
|
5
|
+
IndentWidth: 4
|
|
6
|
+
AccessModifierOffset: -4
|
|
7
|
+
ColumnLimit: 100
|
|
8
|
+
PointerAlignment: Left
|
|
9
|
+
DerivePointerAlignment: false
|
|
10
|
+
AllowShortFunctionsOnASingleLine: Inline
|
|
11
|
+
AllowShortIfStatementsOnASingleLine: Never
|
|
12
|
+
AllowShortLoopsOnASingleLine: false
|
|
13
|
+
AllowShortLambdasOnASingleLine: Inline
|
|
14
|
+
AlwaysBreakTemplateDeclarations: Yes
|
|
15
|
+
BreakBeforeBraces: Attach
|
|
16
|
+
NamespaceIndentation: None
|
|
17
|
+
FixNamespaceComments: true
|
|
18
|
+
IncludeBlocks: Regroup
|
|
19
|
+
IncludeCategories:
|
|
20
|
+
- Regex: '^"'
|
|
21
|
+
Priority: 1
|
|
22
|
+
- Regex: '^<flukt/'
|
|
23
|
+
Priority: 2
|
|
24
|
+
- Regex: '^<(nlohmann|doctest|pybind11)/'
|
|
25
|
+
Priority: 3
|
|
26
|
+
- Regex: '^<'
|
|
27
|
+
Priority: 4
|
|
28
|
+
SortIncludes: CaseSensitive
|
|
29
|
+
SpaceAfterTemplateKeyword: true
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
# Every push and pull request runs every job: Linux GCC (with the Python module), Linux Clang
|
|
4
|
+
# (also without Lua and ERFA), the sanitizers, the oldest compilers Flukt supports, Windows,
|
|
5
|
+
# macOS, WebAssembly and the Python wheels. Compiled objects are cached between runs. A run
|
|
6
|
+
# started by hand can be limited to one job. Releases are made by release.yml. The documentation
|
|
7
|
+
# is built into the program and tested, so only changes to the top-level notes skip the checks.
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
push:
|
|
11
|
+
branches: [main]
|
|
12
|
+
paths-ignore: ["README.md", "CHANGELOG.md", "CONTRIBUTING.md", "SECURITY.md", "LICENSE", ".gitignore"]
|
|
13
|
+
pull_request:
|
|
14
|
+
paths-ignore: ["README.md", "CHANGELOG.md", "CONTRIBUTING.md", "SECURITY.md", "LICENSE", ".gitignore"]
|
|
15
|
+
workflow_dispatch:
|
|
16
|
+
inputs:
|
|
17
|
+
only:
|
|
18
|
+
description: "Run every job, or only one (to check a fix on one platform)"
|
|
19
|
+
type: choice
|
|
20
|
+
default: all
|
|
21
|
+
options: [all, linux, sanitizers, oldest, wheels, windows, emscripten, macos]
|
|
22
|
+
|
|
23
|
+
# A newer run replaces an older one on the same branch; a run of a single job, started by hand,
|
|
24
|
+
# has its own group, so that it does not stop the checks of a push.
|
|
25
|
+
concurrency:
|
|
26
|
+
group: ci-${{ github.ref }}-${{ github.event_name == 'workflow_dispatch' && inputs.only != 'all' && inputs.only || 'all' }}
|
|
27
|
+
cancel-in-progress: true
|
|
28
|
+
|
|
29
|
+
permissions:
|
|
30
|
+
contents: read
|
|
31
|
+
|
|
32
|
+
env:
|
|
33
|
+
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
|
34
|
+
CCACHE_MAXSIZE: 500M
|
|
35
|
+
CCACHE_BASEDIR: ${{ github.workspace }}
|
|
36
|
+
|
|
37
|
+
jobs:
|
|
38
|
+
linux:
|
|
39
|
+
name: Linux ${{ matrix.compiler }}
|
|
40
|
+
if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'linux' }}
|
|
41
|
+
runs-on: ubuntu-24.04
|
|
42
|
+
strategy:
|
|
43
|
+
fail-fast: false
|
|
44
|
+
matrix:
|
|
45
|
+
compiler: [gcc, clang]
|
|
46
|
+
steps:
|
|
47
|
+
- uses: actions/checkout@v5
|
|
48
|
+
- uses: actions/setup-python@v6
|
|
49
|
+
if: matrix.compiler == 'gcc'
|
|
50
|
+
with:
|
|
51
|
+
python-version: "3.13"
|
|
52
|
+
- name: Install tools
|
|
53
|
+
run: |
|
|
54
|
+
sudo apt-get update && sudo apt-get install -y ninja-build ccache
|
|
55
|
+
if [ "${{ matrix.compiler }}" = gcc ]; then
|
|
56
|
+
python -m pip install numpy pytest scipy jsonschema pandas pyarrow pint fmpy ppigrf sgp4 skyfield pymsis
|
|
57
|
+
fi
|
|
58
|
+
- uses: actions/cache@v4
|
|
59
|
+
with:
|
|
60
|
+
path: .ccache
|
|
61
|
+
key: ccache-linux-${{ matrix.compiler }}-${{ github.sha }}
|
|
62
|
+
restore-keys: ccache-linux-${{ matrix.compiler }}-
|
|
63
|
+
- name: Configure
|
|
64
|
+
# GCC also builds the Python module, whose tests run with the others.
|
|
65
|
+
run: >
|
|
66
|
+
cmake --preset ${{ matrix.compiler }} -DFLUKT_WARNINGS_AS_ERRORS=ON
|
|
67
|
+
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
|
68
|
+
${{ matrix.compiler == 'gcc' && '-DFLUKT_BUILD_PYTHON=ON -DPython_EXECUTABLE="$(which python)"' || '' }}
|
|
69
|
+
- name: Build
|
|
70
|
+
run: cmake --build --preset ${{ matrix.compiler }}
|
|
71
|
+
- name: Test
|
|
72
|
+
run: ctest --preset ${{ matrix.compiler }}
|
|
73
|
+
- name: Install, and build a project with find_package(flukt) and a plugin
|
|
74
|
+
if: matrix.compiler == 'gcc'
|
|
75
|
+
run: cmake -DBUILD_DIR=build/gcc -DWORK_DIR="$RUNNER_TEMP/flukt-package" -P tests/cmake/check_package.cmake
|
|
76
|
+
- name: Build and test without Lua and ERFA
|
|
77
|
+
if: matrix.compiler == 'clang'
|
|
78
|
+
run: |
|
|
79
|
+
cmake --preset clang -B build/clang-minimal -DFLUKT_WARNINGS_AS_ERRORS=ON -DFLUKT_WITH_LUA=OFF -DFLUKT_WITH_ERFA=OFF -DFLUKT_BUILD_BENCHMARKS=OFF -DFLUKT_BUILD_CLI=OFF -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
|
80
|
+
cmake --build build/clang-minimal
|
|
81
|
+
./build/clang-minimal/tests/flukt_tests
|
|
82
|
+
- name: Compiler cache
|
|
83
|
+
run: ccache --show-stats
|
|
84
|
+
|
|
85
|
+
sanitizers:
|
|
86
|
+
name: Linux sanitizers
|
|
87
|
+
if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'sanitizers' }}
|
|
88
|
+
runs-on: ubuntu-24.04
|
|
89
|
+
steps:
|
|
90
|
+
- uses: actions/checkout@v5
|
|
91
|
+
- name: Install tools
|
|
92
|
+
run: sudo apt-get update && sudo apt-get install -y ninja-build ccache
|
|
93
|
+
- uses: actions/cache@v4
|
|
94
|
+
with:
|
|
95
|
+
path: .ccache
|
|
96
|
+
key: ccache-linux-sanitize-${{ github.sha }}
|
|
97
|
+
restore-keys: ccache-linux-sanitize-
|
|
98
|
+
- name: Configure
|
|
99
|
+
run: cmake --preset sanitize -DFLUKT_WARNINGS_AS_ERRORS=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
|
100
|
+
- name: Build
|
|
101
|
+
run: cmake --build --preset sanitize
|
|
102
|
+
- name: Test
|
|
103
|
+
run: ctest --preset sanitize
|
|
104
|
+
- name: Compiler cache
|
|
105
|
+
run: ccache --show-stats
|
|
106
|
+
|
|
107
|
+
# The oldest compilers Flukt supports (docs/design/cpp20.md): GCC 11 and Clang 14, the
|
|
108
|
+
# defaults of Ubuntu 22.04. Warnings are not errors here: old compilers raise false alarms.
|
|
109
|
+
oldest:
|
|
110
|
+
name: Linux ${{ matrix.compiler }} (oldest supported)
|
|
111
|
+
if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'oldest' }}
|
|
112
|
+
runs-on: ubuntu-22.04
|
|
113
|
+
strategy:
|
|
114
|
+
fail-fast: false
|
|
115
|
+
matrix:
|
|
116
|
+
include:
|
|
117
|
+
- compiler: gcc-11
|
|
118
|
+
preset: gcc
|
|
119
|
+
cc: gcc-11
|
|
120
|
+
cxx: g++-11
|
|
121
|
+
package: g++-11
|
|
122
|
+
- compiler: clang-14
|
|
123
|
+
preset: clang
|
|
124
|
+
cc: clang-14
|
|
125
|
+
cxx: clang++-14
|
|
126
|
+
package: clang-14
|
|
127
|
+
steps:
|
|
128
|
+
- uses: actions/checkout@v5
|
|
129
|
+
- name: Install tools
|
|
130
|
+
run: sudo apt-get update && sudo apt-get install -y ninja-build ccache ${{ matrix.package }}
|
|
131
|
+
- uses: actions/cache@v4
|
|
132
|
+
with:
|
|
133
|
+
path: .ccache
|
|
134
|
+
key: ccache-oldest-${{ matrix.compiler }}-${{ github.sha }}
|
|
135
|
+
restore-keys: ccache-oldest-${{ matrix.compiler }}-
|
|
136
|
+
- name: Configure
|
|
137
|
+
run: >
|
|
138
|
+
cmake --preset ${{ matrix.preset }} -B build/oldest
|
|
139
|
+
-DCMAKE_C_COMPILER=${{ matrix.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx }}
|
|
140
|
+
-DFLUKT_BUILD_BENCHMARKS=OFF
|
|
141
|
+
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
|
142
|
+
- name: Build
|
|
143
|
+
run: cmake --build build/oldest
|
|
144
|
+
- name: Test
|
|
145
|
+
run: ctest --test-dir build/oldest --output-on-failure
|
|
146
|
+
- name: Compiler cache
|
|
147
|
+
run: ccache --show-stats
|
|
148
|
+
|
|
149
|
+
wheels:
|
|
150
|
+
name: Python wheels (${{ matrix.os }})
|
|
151
|
+
if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'wheels' }}
|
|
152
|
+
strategy:
|
|
153
|
+
fail-fast: false
|
|
154
|
+
matrix:
|
|
155
|
+
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-latest, macos-latest]
|
|
156
|
+
runs-on: ${{ matrix.os }}
|
|
157
|
+
steps:
|
|
158
|
+
- uses: actions/checkout@v5
|
|
159
|
+
- uses: actions/setup-python@v6
|
|
160
|
+
with:
|
|
161
|
+
python-version: "3.13"
|
|
162
|
+
- name: Build and test the wheels
|
|
163
|
+
# One Python version here; a release builds them all (release.yml).
|
|
164
|
+
env:
|
|
165
|
+
CIBW_BUILD: cp313-*
|
|
166
|
+
run: |
|
|
167
|
+
python -m pip install "cibuildwheel>=3,<4"
|
|
168
|
+
python -m cibuildwheel --output-dir wheelhouse
|
|
169
|
+
- name: Keep the wheels
|
|
170
|
+
uses: actions/upload-artifact@v4
|
|
171
|
+
with:
|
|
172
|
+
name: wheels-${{ matrix.os }}
|
|
173
|
+
path: wheelhouse/*.whl
|
|
174
|
+
|
|
175
|
+
windows:
|
|
176
|
+
name: Windows MSVC
|
|
177
|
+
if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'windows' }}
|
|
178
|
+
runs-on: windows-latest
|
|
179
|
+
steps:
|
|
180
|
+
- uses: actions/checkout@v5
|
|
181
|
+
- name: Configure
|
|
182
|
+
run: cmake --preset msvc -DFLUKT_WARNINGS_AS_ERRORS=ON
|
|
183
|
+
- name: Build
|
|
184
|
+
run: cmake --build --preset msvc
|
|
185
|
+
- name: Test
|
|
186
|
+
run: ctest --preset msvc
|
|
187
|
+
|
|
188
|
+
emscripten:
|
|
189
|
+
name: WebAssembly (Emscripten)
|
|
190
|
+
if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'emscripten' }}
|
|
191
|
+
runs-on: ubuntu-24.04
|
|
192
|
+
steps:
|
|
193
|
+
- uses: actions/checkout@v5
|
|
194
|
+
- name: Install Ninja
|
|
195
|
+
run: sudo apt-get update && sudo apt-get install -y ninja-build
|
|
196
|
+
- name: Install Emscripten
|
|
197
|
+
uses: mymindstorm/setup-emsdk@v14
|
|
198
|
+
with:
|
|
199
|
+
version: 4.0.10
|
|
200
|
+
- name: Configure
|
|
201
|
+
run: cmake --preset emscripten -DFLUKT_WARNINGS_AS_ERRORS=ON
|
|
202
|
+
- name: Build
|
|
203
|
+
run: cmake --build --preset emscripten
|
|
204
|
+
- name: Test
|
|
205
|
+
run: ctest --preset emscripten --output-on-failure
|
|
206
|
+
- name: Keep the JavaScript module and the browser demonstration
|
|
207
|
+
uses: actions/upload-artifact@v4
|
|
208
|
+
with:
|
|
209
|
+
name: flukt-web
|
|
210
|
+
path: |
|
|
211
|
+
build/emscripten/web/flukt.js
|
|
212
|
+
build/emscripten/web/flukt.wasm
|
|
213
|
+
build/emscripten/web/flukt.d.ts
|
|
214
|
+
build/emscripten/web/flukt-single.js
|
|
215
|
+
build/emscripten/web/flukt-demo.html
|
|
216
|
+
|
|
217
|
+
macos:
|
|
218
|
+
name: macOS Clang
|
|
219
|
+
if: ${{ github.event_name != 'workflow_dispatch' || inputs.only == 'all' || inputs.only == 'macos' }}
|
|
220
|
+
runs-on: macos-latest
|
|
221
|
+
steps:
|
|
222
|
+
- uses: actions/checkout@v5
|
|
223
|
+
- name: Install tools
|
|
224
|
+
run: brew install ninja ccache
|
|
225
|
+
- uses: actions/cache@v4
|
|
226
|
+
with:
|
|
227
|
+
path: .ccache
|
|
228
|
+
key: ccache-macos-clang-${{ github.sha }}
|
|
229
|
+
restore-keys: ccache-macos-clang-
|
|
230
|
+
- name: Configure
|
|
231
|
+
run: cmake --preset clang -DFLUKT_WARNINGS_AS_ERRORS=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
|
232
|
+
- name: Build
|
|
233
|
+
run: cmake --build --preset clang
|
|
234
|
+
- name: Test
|
|
235
|
+
run: ctest --preset clang
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Builds the wheels for every supported Python version on Linux (x86-64 and ARM), Windows and
|
|
4
|
+
# macOS (Apple silicon), tests them, builds the source distribution, and publishes them on the
|
|
5
|
+
# Python Package Index through its trusted publishing: no password or token is stored here.
|
|
6
|
+
#
|
|
7
|
+
# - Started by hand, it publishes on TestPyPI (or on PyPI, if chosen), to try a release first.
|
|
8
|
+
# - A tag such as v0.1.0 publishes on PyPI. The tag must match the version in CMakeLists.txt.
|
|
9
|
+
#
|
|
10
|
+
# Before the first release, PyPI and TestPyPI must each list this repository, this workflow
|
|
11
|
+
# (release.yml) and its environment ("pypi" or "testpypi") as a trusted publisher of the project
|
|
12
|
+
# "flukt", and the repository should have those two environments.
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
push:
|
|
16
|
+
tags: ["v*"]
|
|
17
|
+
workflow_dispatch:
|
|
18
|
+
inputs:
|
|
19
|
+
target:
|
|
20
|
+
description: "Where to publish"
|
|
21
|
+
type: choice
|
|
22
|
+
default: testpypi
|
|
23
|
+
options: [testpypi, pypi]
|
|
24
|
+
|
|
25
|
+
permissions:
|
|
26
|
+
contents: read
|
|
27
|
+
|
|
28
|
+
jobs:
|
|
29
|
+
version:
|
|
30
|
+
name: The tag matches the version
|
|
31
|
+
if: github.event_name == 'push'
|
|
32
|
+
runs-on: ubuntu-24.04
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v5
|
|
35
|
+
- run: |
|
|
36
|
+
version=$(sed -n 's/.*VERSION \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p' CMakeLists.txt | head -1)
|
|
37
|
+
if [ "v$version" != "${GITHUB_REF_NAME}" ]; then
|
|
38
|
+
echo "The tag ${GITHUB_REF_NAME} does not match the version $version in CMakeLists.txt"
|
|
39
|
+
exit 1
|
|
40
|
+
fi
|
|
41
|
+
|
|
42
|
+
wheels:
|
|
43
|
+
name: Wheels (${{ matrix.os }})
|
|
44
|
+
needs: version
|
|
45
|
+
if: ${{ !cancelled() && !failure() }}
|
|
46
|
+
strategy:
|
|
47
|
+
fail-fast: false
|
|
48
|
+
matrix:
|
|
49
|
+
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-latest, macos-latest]
|
|
50
|
+
runs-on: ${{ matrix.os }}
|
|
51
|
+
steps:
|
|
52
|
+
- uses: actions/checkout@v5
|
|
53
|
+
- uses: actions/setup-python@v6
|
|
54
|
+
with:
|
|
55
|
+
python-version: "3.13"
|
|
56
|
+
- name: Build and test the wheels
|
|
57
|
+
env:
|
|
58
|
+
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
|
|
59
|
+
run: |
|
|
60
|
+
python -m pip install "cibuildwheel>=3,<4"
|
|
61
|
+
python -m cibuildwheel --output-dir wheelhouse
|
|
62
|
+
- uses: actions/upload-artifact@v4
|
|
63
|
+
with:
|
|
64
|
+
name: wheels-${{ matrix.os }}
|
|
65
|
+
path: wheelhouse/*.whl
|
|
66
|
+
|
|
67
|
+
sdist:
|
|
68
|
+
name: Source distribution
|
|
69
|
+
needs: version
|
|
70
|
+
if: ${{ !cancelled() && !failure() }}
|
|
71
|
+
runs-on: ubuntu-24.04
|
|
72
|
+
steps:
|
|
73
|
+
- uses: actions/checkout@v5
|
|
74
|
+
- uses: actions/setup-python@v6
|
|
75
|
+
with:
|
|
76
|
+
python-version: "3.13"
|
|
77
|
+
- run: |
|
|
78
|
+
python -m pip install build
|
|
79
|
+
python -m build --sdist
|
|
80
|
+
- uses: actions/upload-artifact@v4
|
|
81
|
+
with:
|
|
82
|
+
name: sdist
|
|
83
|
+
path: dist/*.tar.gz
|
|
84
|
+
|
|
85
|
+
testpypi:
|
|
86
|
+
name: Publish on TestPyPI
|
|
87
|
+
needs: [wheels, sdist]
|
|
88
|
+
if: ${{ !cancelled() && !failure() && github.event_name == 'workflow_dispatch' && inputs.target == 'testpypi' }}
|
|
89
|
+
runs-on: ubuntu-24.04
|
|
90
|
+
environment: testpypi
|
|
91
|
+
permissions:
|
|
92
|
+
id-token: write
|
|
93
|
+
steps:
|
|
94
|
+
- uses: actions/download-artifact@v4
|
|
95
|
+
with:
|
|
96
|
+
path: dist
|
|
97
|
+
merge-multiple: true
|
|
98
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
99
|
+
with:
|
|
100
|
+
repository-url: https://test.pypi.org/legacy/
|
|
101
|
+
|
|
102
|
+
pypi:
|
|
103
|
+
name: Publish on PyPI
|
|
104
|
+
needs: [wheels, sdist]
|
|
105
|
+
if: ${{ !cancelled() && !failure() && (github.event_name == 'push' || inputs.target == 'pypi') }}
|
|
106
|
+
runs-on: ubuntu-24.04
|
|
107
|
+
environment: pypi
|
|
108
|
+
permissions:
|
|
109
|
+
id-token: write
|
|
110
|
+
steps:
|
|
111
|
+
- uses: actions/download-artifact@v4
|
|
112
|
+
with:
|
|
113
|
+
path: dist
|
|
114
|
+
merge-multiple: true
|
|
115
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
flukt-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Build output
|
|
2
|
+
/build/
|
|
3
|
+
/out/
|
|
4
|
+
/dist/
|
|
5
|
+
*.egg-info/
|
|
6
|
+
|
|
7
|
+
# Local CMake settings, such as compiler paths on one machine
|
|
8
|
+
CMakeUserPresets.json
|
|
9
|
+
|
|
10
|
+
# Editors and IDEs
|
|
11
|
+
/.vs/
|
|
12
|
+
/.vscode/
|
|
13
|
+
/.idea/
|
|
14
|
+
*.swp
|
|
15
|
+
|
|
16
|
+
# Python
|
|
17
|
+
__pycache__/
|
|
18
|
+
*.pyc
|
|
19
|
+
/.venv/
|
|
20
|
+
/.pytest_cache/
|
flukt-0.1.0/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Every change that a user of Flukt may notice: in the configuration format, the command-line program, the Python, C, C++ and JavaScript interfaces, and the results. Versions before 1.0 may change the format and the interfaces; each such change is listed here, with what to do about it.
|
|
4
|
+
|
|
5
|
+
## 0.1.0 (2026-12-02)
|
|
6
|
+
|
|
7
|
+
The first public release.
|
|
8
|
+
|
|
9
|
+
- **Flight of one rigid body**: rockets, aircraft, balloons and airships, satellites and probes; 3-DOF and 6-DOF motion, rails and holds; phases, events, controllers and actuators; trim; the changing mass of a vehicle that burns propellant (`docs/user_guide.md`).
|
|
10
|
+
- **The world**: a flat Earth, the round and rotating Earth (WGS-84, IAU 2006/2000A orientation, time scales with leap seconds), the Moon, Mars and other bodies; gravity fields, third bodies, tides; the US 1976 and NRLMSISE-00 atmospheres, wind, turbulence and gusts; the Earth's magnetic field; sunlight; terrain (`docs/orbits.md`, `docs/frames_and_time.md`, `docs/spacecraft.md`, `docs/vehicle_physics.md`).
|
|
11
|
+
- **Configurations in JSON**, with units where wanted, expressions, tables and Lua; vehicle files apart from the scenarios that fly them; groups of vehicles flown together, which can sense each other (`docs/vehicles.md`, `docs/groups.md`, `docs/sensing.md`).
|
|
12
|
+
- **Studies**: batches and Monte Carlo studies on all cores, linear models and sensitivities, saving and restoring runs; results in JSON, CSV, Parquet and MAT (`docs/batch_runs_and_optimisation.md`, `docs/analysis.md`, `docs/results.md`).
|
|
13
|
+
- **Interfaces**: the command-line program `flukt`, Python, C, C++, JavaScript (WebAssembly), plugins in C or C++, and FMUs for Simulink and other tools.
|
|
14
|
+
- **For people and AI agents writing configurations**: `flukt guide`, the documentation and examples in the program (`flukt docs`, `flukt examples`), `flukt reference <name>`, `--json` on every command, a summary of every run, and warnings of what is allowed but probably not meant (`docs/writing_configurations.md`).
|
|
15
|
+
- **Checked** against NASA's check cases, Orekit, RocketPy, Astropy, JPL's ephemerides and published data (`docs/validation.md`); every simplification is listed in `docs/simplifications.md`.
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.25)
|
|
2
|
+
|
|
3
|
+
project(flukt
|
|
4
|
+
VERSION 0.1.0
|
|
5
|
+
DESCRIPTION "Flukt, a simulation framework for flying rigid bodies"
|
|
6
|
+
LANGUAGES C CXX)
|
|
7
|
+
|
|
8
|
+
option(FLUKT_BUILD_TESTS "Build the tests" ${PROJECT_IS_TOP_LEVEL})
|
|
9
|
+
option(FLUKT_BUILD_BENCHMARKS "Build the benchmarks" ${PROJECT_IS_TOP_LEVEL})
|
|
10
|
+
option(FLUKT_BUILD_CLI "Build the command-line program" ${PROJECT_IS_TOP_LEVEL})
|
|
11
|
+
option(FLUKT_BUILD_PYTHON "Build the Python module (downloads pybind11)" OFF)
|
|
12
|
+
option(FLUKT_BUILD_FMU "Build the library inside FMUs (flukt fmu)" ON)
|
|
13
|
+
if(EMSCRIPTEN)
|
|
14
|
+
set(FLUKT_C_API_DEFAULT OFF)
|
|
15
|
+
else()
|
|
16
|
+
set(FLUKT_C_API_DEFAULT ${PROJECT_IS_TOP_LEVEL})
|
|
17
|
+
endif()
|
|
18
|
+
option(FLUKT_BUILD_C_API "Build the plain C interface as a shared library (flukt_c)" ${FLUKT_C_API_DEFAULT})
|
|
19
|
+
option(FLUKT_WITH_LUA "Build with Lua scripting" ON)
|
|
20
|
+
option(FLUKT_WITH_ERFA "Build with ERFA for Earth orientation and time scales" ON)
|
|
21
|
+
option(FLUKT_WARNINGS_AS_ERRORS "Treat compiler warnings as errors" OFF)
|
|
22
|
+
option(FLUKT_SANITIZE "Build with the address and undefined-behaviour sanitizers (GCC and Clang)" OFF)
|
|
23
|
+
option(FLUKT_INSTALL "Install the library, its headers, the programs and the CMake package" ${PROJECT_IS_TOP_LEVEL})
|
|
24
|
+
option(FLUKT_BOUNDS_CHECKS "Check every index into spans, vectors and strings (the standard library's own checks); on with FLUKT_SANITIZE" OFF)
|
|
25
|
+
|
|
26
|
+
include(GNUInstallDirs)
|
|
27
|
+
|
|
28
|
+
set(CMAKE_CXX_STANDARD 20)
|
|
29
|
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
30
|
+
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
31
|
+
set(CMAKE_C_STANDARD 99)
|
|
32
|
+
set(CMAKE_C_STANDARD_REQUIRED ON)
|
|
33
|
+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
34
|
+
|
|
35
|
+
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
36
|
+
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
|
|
37
|
+
endif()
|
|
38
|
+
|
|
39
|
+
# Options that must apply to every target, third-party code included.
|
|
40
|
+
if(EMSCRIPTEN)
|
|
41
|
+
# Setup errors are C++ exceptions; WebAssembly exceptions cost nothing when none is thrown.
|
|
42
|
+
add_compile_options(-fwasm-exceptions)
|
|
43
|
+
add_link_options(-fwasm-exceptions)
|
|
44
|
+
endif()
|
|
45
|
+
if(FLUKT_SANITIZE)
|
|
46
|
+
if(MSVC)
|
|
47
|
+
message(FATAL_ERROR "FLUKT_SANITIZE is only supported with GCC and Clang")
|
|
48
|
+
endif()
|
|
49
|
+
add_compile_options(-fsanitize=address,undefined -fno-sanitize-recover=all -fno-omit-frame-pointer)
|
|
50
|
+
add_link_options(-fsanitize=address,undefined)
|
|
51
|
+
endif()
|
|
52
|
+
if(FLUKT_SANITIZE OR FLUKT_BOUNDS_CHECKS)
|
|
53
|
+
# libstdc++ (GCC), libc++ (Clang, Apple) and Microsoft's library each check indices into
|
|
54
|
+
# std::span, std::vector and others with these; none changes the binary interface.
|
|
55
|
+
add_compile_definitions(_GLIBCXX_ASSERTIONS
|
|
56
|
+
_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE
|
|
57
|
+
_MSVC_STL_HARDENING=1)
|
|
58
|
+
endif()
|
|
59
|
+
|
|
60
|
+
include(cmake/FluktOptions.cmake)
|
|
61
|
+
|
|
62
|
+
add_subdirectory(third_party)
|
|
63
|
+
|
|
64
|
+
# Version and Git revision headers.
|
|
65
|
+
set(FLUKT_GENERATED_DIR "${PROJECT_BINARY_DIR}/generated")
|
|
66
|
+
configure_file(cmake/flukt_version.hpp.in "${FLUKT_GENERATED_DIR}/flukt_version.hpp" @ONLY)
|
|
67
|
+
add_custom_target(flukt_revision
|
|
68
|
+
COMMAND "${CMAKE_COMMAND}"
|
|
69
|
+
"-DSOURCE_DIR=${PROJECT_SOURCE_DIR}"
|
|
70
|
+
"-DOUTPUT=${FLUKT_GENERATED_DIR}/flukt_revision.hpp"
|
|
71
|
+
-P "${PROJECT_SOURCE_DIR}/cmake/GenerateRevision.cmake"
|
|
72
|
+
BYPRODUCTS "${FLUKT_GENERATED_DIR}/flukt_revision.hpp"
|
|
73
|
+
COMMENT "Reading the Git revision"
|
|
74
|
+
VERBATIM)
|
|
75
|
+
|
|
76
|
+
# The library.
|
|
77
|
+
file(GLOB_RECURSE FLUKT_SOURCES CONFIGURE_DEPENDS "${PROJECT_SOURCE_DIR}/src/*.cpp")
|
|
78
|
+
file(GLOB_RECURSE FLUKT_HEADERS CONFIGURE_DEPENDS
|
|
79
|
+
"${PROJECT_SOURCE_DIR}/include/flukt/*.hpp"
|
|
80
|
+
"${PROJECT_SOURCE_DIR}/src/*.hpp")
|
|
81
|
+
add_library(flukt STATIC ${FLUKT_SOURCES} ${FLUKT_HEADERS})
|
|
82
|
+
add_library(flukt::flukt ALIAS flukt)
|
|
83
|
+
# Programs that use Flukt's C++ headers need C++20 too.
|
|
84
|
+
target_compile_features(flukt PUBLIC cxx_std_20)
|
|
85
|
+
add_dependencies(flukt flukt_revision)
|
|
86
|
+
target_include_directories(flukt
|
|
87
|
+
PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
|
|
88
|
+
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
|
|
89
|
+
PRIVATE "${PROJECT_SOURCE_DIR}/src" "${FLUKT_GENERATED_DIR}")
|
|
90
|
+
target_link_libraries(flukt PUBLIC flukt_json)
|
|
91
|
+
# Plugins are loaded with dlopen, which older C libraries keep in libdl.
|
|
92
|
+
if(CMAKE_DL_LIBS)
|
|
93
|
+
target_link_libraries(flukt PRIVATE ${CMAKE_DL_LIBS})
|
|
94
|
+
endif()
|
|
95
|
+
if(NOT EMSCRIPTEN)
|
|
96
|
+
find_package(Threads REQUIRED)
|
|
97
|
+
target_link_libraries(flukt PUBLIC Threads::Threads)
|
|
98
|
+
endif()
|
|
99
|
+
if(FLUKT_WITH_LUA)
|
|
100
|
+
target_link_libraries(flukt PRIVATE flukt_lua)
|
|
101
|
+
target_compile_definitions(flukt PUBLIC FLUKT_WITH_LUA=1)
|
|
102
|
+
endif()
|
|
103
|
+
if(FLUKT_WITH_ERFA)
|
|
104
|
+
target_link_libraries(flukt PRIVATE flukt_erfa)
|
|
105
|
+
target_compile_definitions(flukt PUBLIC FLUKT_WITH_ERFA=1)
|
|
106
|
+
endif()
|
|
107
|
+
set_target_properties(flukt PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
108
|
+
flukt_target_options(flukt)
|
|
109
|
+
|
|
110
|
+
# What a plugin needs: only the header flukt_plugin.h (plugins.md).
|
|
111
|
+
add_library(flukt_plugin INTERFACE)
|
|
112
|
+
add_library(flukt::plugin ALIAS flukt_plugin)
|
|
113
|
+
set_target_properties(flukt_plugin PROPERTIES EXPORT_NAME plugin)
|
|
114
|
+
target_include_directories(flukt_plugin INTERFACE
|
|
115
|
+
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
|
|
116
|
+
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
|
|
117
|
+
include(cmake/FluktPlugin.cmake)
|
|
118
|
+
|
|
119
|
+
if(FLUKT_BUILD_C_API)
|
|
120
|
+
add_subdirectory(bindings/c)
|
|
121
|
+
endif()
|
|
122
|
+
if(FLUKT_BUILD_FMU AND NOT EMSCRIPTEN)
|
|
123
|
+
add_subdirectory(bindings/fmi)
|
|
124
|
+
endif()
|
|
125
|
+
if(FLUKT_BUILD_TESTS)
|
|
126
|
+
enable_testing()
|
|
127
|
+
add_subdirectory(tests)
|
|
128
|
+
endif()
|
|
129
|
+
if(FLUKT_BUILD_BENCHMARKS)
|
|
130
|
+
add_subdirectory(bench)
|
|
131
|
+
endif()
|
|
132
|
+
if(FLUKT_BUILD_CLI)
|
|
133
|
+
add_subdirectory(apps)
|
|
134
|
+
endif()
|
|
135
|
+
if(FLUKT_BUILD_PYTHON)
|
|
136
|
+
add_subdirectory(bindings/python)
|
|
137
|
+
endif()
|
|
138
|
+
if(EMSCRIPTEN)
|
|
139
|
+
add_subdirectory(bindings/wasm)
|
|
140
|
+
endif()
|
|
141
|
+
|
|
142
|
+
# Installing: the library, its headers, the programs and a CMake package, so that other
|
|
143
|
+
# projects can use find_package(flukt) (cpp.md). Wheels install the Python package instead.
|
|
144
|
+
if(FLUKT_INSTALL AND NOT SKBUILD AND NOT EMSCRIPTEN)
|
|
145
|
+
include(CMakePackageConfigHelpers)
|
|
146
|
+
set(FLUKT_INSTALL_TARGETS flukt flukt_json flukt_plugin)
|
|
147
|
+
if(FLUKT_WITH_LUA)
|
|
148
|
+
list(APPEND FLUKT_INSTALL_TARGETS flukt_lua)
|
|
149
|
+
endif()
|
|
150
|
+
if(FLUKT_WITH_ERFA)
|
|
151
|
+
list(APPEND FLUKT_INSTALL_TARGETS flukt_erfa)
|
|
152
|
+
endif()
|
|
153
|
+
install(TARGETS ${FLUKT_INSTALL_TARGETS} EXPORT fluktTargets
|
|
154
|
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
155
|
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
156
|
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
157
|
+
install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/flukt"
|
|
158
|
+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
|
159
|
+
install(DIRECTORY "${PROJECT_SOURCE_DIR}/third_party/json/include/nlohmann"
|
|
160
|
+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/flukt/third_party")
|
|
161
|
+
install(FILES "${PROJECT_SOURCE_DIR}/third_party/json/LICENSE.MIT"
|
|
162
|
+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/flukt/third_party/nlohmann")
|
|
163
|
+
install(EXPORT fluktTargets NAMESPACE flukt::
|
|
164
|
+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/flukt")
|
|
165
|
+
configure_package_config_file(cmake/fluktConfig.cmake.in
|
|
166
|
+
"${PROJECT_BINARY_DIR}/fluktConfig.cmake"
|
|
167
|
+
INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/flukt")
|
|
168
|
+
# The C++ interface may change between minor versions before 1.0.
|
|
169
|
+
write_basic_package_version_file("${PROJECT_BINARY_DIR}/fluktConfigVersion.cmake"
|
|
170
|
+
COMPATIBILITY SameMinorVersion)
|
|
171
|
+
install(FILES "${PROJECT_BINARY_DIR}/fluktConfig.cmake"
|
|
172
|
+
"${PROJECT_BINARY_DIR}/fluktConfigVersion.cmake"
|
|
173
|
+
"${PROJECT_SOURCE_DIR}/cmake/FluktPlugin.cmake"
|
|
174
|
+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/flukt")
|
|
175
|
+
if(TARGET flukt_cli)
|
|
176
|
+
install(TARGETS flukt_cli RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
177
|
+
endif()
|
|
178
|
+
if(TARGET flukt_fmu)
|
|
179
|
+
# Next to the program, which looks for it there.
|
|
180
|
+
install(TARGETS flukt_fmu
|
|
181
|
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
182
|
+
LIBRARY DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
183
|
+
endif()
|
|
184
|
+
if(TARGET flukt_c)
|
|
185
|
+
install(TARGETS flukt_c
|
|
186
|
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
187
|
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
188
|
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
189
|
+
endif()
|
|
190
|
+
install(FILES "${PROJECT_SOURCE_DIR}/LICENSE" DESTINATION "${CMAKE_INSTALL_DATADIR}/flukt")
|
|
191
|
+
endif()
|