Files
trick/trick_source/sim_services/CMakeLists.txt
Thomas Brain 16108b8382
Some checks failed
Linux Python 2 / build (clang-devel gcc gcc-c++ java-11-openjdk-devel libxml2-devel llvm-devel llvm-static ncurses-devel openmotif openmotif-devel perl perl-Digest-MD5 udunits2 udunits2-devel which zlib-devel python2-devel python3-devel, map[arch:rhel]) (push) Has been cancelled
Linux Python 2 / build (map[], echo package manager already configured, bison clang flex git llvm make maven cmake zip, install -y, echo gtest already installed) (push) Has been cancelled
Linux Python 2 / build (map[arch:debian arch_ver:12 os:ubuntu tag:22.04], 2) (push) Has been cancelled
Linux Python 2 / build (map[arch:rhel arch_ver:7], yum -y install epel-release yum -y update , libX11-devel libXt-devel swig3 gtest-devel, yum) (push) Has been cancelled
Linux Python 2 / build (map[arch:rhel arch_ver:8 os:oraclelinux tag:8], 2) (push) Has been cancelled
Linux Python 2 / build (map[arch:rhel arch_ver:8 os:rockylinux tag:8], 2) (push) Has been cancelled
Linux Python 2 / build (map[arch:rhel arch_ver:8], dnf -y install epel-release dnf -y update dnf install -y 'dnf-command(config-manager)' , dnf config-manager --enable powertools dnf install -y gtest-devel , dnf, swig diffutils) (push) Has been cancelled
Linux Python 2 / build (map[os:oraclelinux], dnf config-manager --enable ol8_codeready_builder dnf install -y gtest-devel ) (push) Has been cancelled
Linux Python 2 / build (swig curl g++ libx11-dev libxml2-dev libxt-dev libmotif-common libmotif-dev zlib1g-dev llvm-dev libclang-dev libudunits2-dev libgtest-dev default-jdk python2.7-dev python3-dev python3-pip python3-venv, map[arch:debian], apt-get update, apt-get i… (push) Has been cancelled
32-bit Oracle / trick_32bit_oracle (push) Has been cancelled
Test Docker Hub Images / latest (trick_ubuntu1804) (push) Has been cancelled
More Linux / build (clang-devel gcc gcc-c++ java-11-openjdk-devel libxml2-devel llvm-devel llvm-static ncurses-devel openmotif openmotif-devel perl perl-Digest-MD5 udunits2 udunits2-devel which zlib-devel python2-devel python3-devel, map[arch:rhel]) (push) Has been cancelled
More Linux / build (map[], echo package manager already configured, bison clang flex git llvm make maven cmake zip, install -y, echo gtest already installed) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:10 os:debian tag:10], 2) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:10 os:debian tag:10], 3) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:10], apt-get install -y libgtest-dev cd /usr/src/gtest cmake . make cp libgtest* /usr/lib/ ) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:11 os:debian tag:11], 2) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:11 os:debian tag:11], 3) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:11 os:ubuntu tag:20.04], 2) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:11 os:ubuntu tag:20.04], 3) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:11], export DEBIAN_FRONTEND=noninteractive apt-get update apt-get install -y tzdata ) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:12 os:debian tag:bookworm], 2) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:12 os:debian tag:bookworm], 3) (push) Has been cancelled
More Linux / build (map[arch:debian], 2, python2.7-dev) (push) Has been cancelled
More Linux / build (map[arch:rhel arch_ver:8 os:almalinux tag:8], 2) (push) Has been cancelled
More Linux / build (map[arch:rhel arch_ver:8 os:almalinux tag:8], 3) (push) Has been cancelled
More Linux / build (map[arch:rhel arch_ver:8], dnf -y install epel-release dnf -y update dnf install -y 'dnf-command(config-manager)' , dnf config-manager --enable powertools dnf install -y gtest-devel , dnf, swig diffutils) (push) Has been cancelled
More Linux / build (swig curl g++ libx11-dev libxml2-dev libxt-dev libmotif-common libmotif-dev zlib1g-dev llvm-dev libclang-dev libudunits2-dev libgtest-dev default-jdk python3-dev python3-pip python3-venv, map[arch:debian], apt-get update, apt-get install -y libg… (push) Has been cancelled
Integrated MultiDtInteg classes into Trick build. (#1844)
* Integrated MultiDtInteg classes into Trick build.

* Corrected some comments

* Cleaned up version and added test

* Small fixes and more interesting test case

* Added MultiDt integration User's Guide section.

* Correct numbered solutions

* Newline fix

* Added check that an integration rate can be represented in trick tics

* Fixed doc comment and added baseline sat2d_multidt sim. Need to add specific rates.

* Fixed some tics vs doubles issues. Added testing and comparison vs single rate. exact match

* cleaned up unit test input files and prevent both realtime and any guis if unit tests are enabled

* Fix input file syntax error
2025-04-22 14:49:28 -05:00

248 lines
8.6 KiB
CMake

# Sim services C/C++ files
set( SS_SRC
CheckPointAgent/CheckPointAgent
CheckPointAgent/ChkPtParseContext
CheckPointAgent/ClassicCheckPointerAgent
CheckPointAgent/PythonPrint
CheckPointRestart/CheckPointRestart
CheckPointRestart/CheckPointRestart_c_intf
CheckPointRestart/next_attr_name
CheckPointRestart/stl_type_name_convert
Clock/BC635Clock
Clock/Clock
Clock/GetTimeOfDayClock
Clock/TPROCTEClock
Clock/clock_c_intf
Collect/collect
CommandLineArguments/CommandLineArguments
CommandLineArguments/command_line_c_intf
DataRecord/DRAscii
DataRecord/DRBinary
DataRecord/DRHDF5
DataRecord/DataRecordDispatcher
DataRecord/DataRecordGroup
DataRecord/data_record_utilities
DebugPause/DebugPause
DebugPause/DebugPause_c_intf
EchoJobs/EchoJobs
EchoJobs/EchoJobs_c_intf
Environment/Environment
Environment/Environment_c_intf
EventManager/EventInstrument
EventManager/EventManager
EventManager/EventManager_c_intf
EventManager/EventProcessor
Executive/Executive
Executive/ExecutiveException
Executive/Executive_add_depends_on_job
Executive/Executive_add_jobs_to_queue
Executive/Executive_add_scheduled_job_class
Executive/Executive_add_sim_object
Executive/Executive_advance_sim_time
Executive/Executive_c_intf
Executive/Executive_call_default_data
Executive/Executive_call_initialization
Executive/Executive_call_input_processor
Executive/Executive_check_all_job_cycle_times
Executive/Executive_check_all_jobs_handled
Executive/Executive_checkpoint
Executive/Executive_clear_scheduled_queues
Executive/Executive_create_threads
Executive/Executive_fpe_handler
Executive/Executive_freeze
Executive/Executive_freeze_loop
Executive/Executive_get_curr_job
Executive/Executive_get_job
Executive/Executive_get_job_cycle
Executive/Executive_get_process_id
Executive/Executive_get_sim_time
Executive/Executive_init
Executive/Executive_init_freeze_scheduled
Executive/Executive_init_signal_handlers
Executive/Executive_instrument_job
Executive/Executive_isThreadReadyToRun
Executive/Executive_loop
Executive/Executive_loop_multi_thread
Executive/Executive_loop_single_thread
Executive/Executive_post_checkpoint
Executive/Executive_process_sim_args
Executive/Executive_register_scheduler
Executive/Executive_remove_jobs
Executive/Executive_remove_sim_object
Executive/Executive_restart
Executive/Executive_run
Executive/Executive_scheduled_thread_sync
Executive/Executive_set_job_cycle
Executive/Executive_set_job_onoff
Executive/Executive_set_simobject_onoff
Executive/Executive_set_thread_amf_cycle_time
Executive/Executive_set_thread_async_wait
Executive/Executive_set_thread_cpu_affinity
Executive/Executive_set_thread_enabled
Executive/Executive_set_thread_priority
Executive/Executive_set_thread_process_type
Executive/Executive_set_thread_rt_semaphore
Executive/Executive_set_time_tic_value
Executive/Executive_shutdown
Executive/Executive_signal_handler
Executive/Executive_stop
Executive/Executive_terminate
Executive/Executive_thread_sync
Executive/Executive_write_s_job_execution
Executive/Executive_write_s_run_summary
Executive/ThreadTrigger
Executive/Threads
Executive/Threads_child
Executive/Threads_set_amf_cycle_tics
Executive/Threads_set_async_wait
Executive/Threads_set_process_type
Executive/child_handler
Executive/fpe_handler
Executive/sig_hand
ExternalApplications/ExternalApplication
ExternalApplications/ExternalApplicationManager
ExternalApplications/ExternalApplication_c_intf
ExternalApplications/MalfunctionsTrickView
ExternalApplications/MonteMonitor
ExternalApplications/SimControlPanel
ExternalApplications/StripChart
ExternalApplications/TrickView
FrameLog/FrameDataRecordGroup
FrameLog/FrameLog
FrameLog/FrameLog_c_intf
Integrator/src/IntegLoopManager
Integrator/src/IntegLoopScheduler
Integrator/src/IntegLoopSimObject
Integrator/src/MultiDtIntegLoopScheduler
Integrator/src/MultiDtIntegLoopSimObject
Integrator/src/Integrator
Integrator/src/Integrator_C_Intf
Integrator/src/getIntegrator
Integrator/src/regula_falsi
Integrator/src/reset_regula_falsi
JITInputFile/JITEvent
JITInputFile/JITInputFile
JITInputFile/jit_input_file_c_intf
JSONVariableServer/JSONVariableServer
JSONVariableServer/JSONVariableServerSessionThread
MasterSlave/MSSharedMem
MasterSlave/MSSocket
MasterSlave/Master
MasterSlave/Slave
Message/MessageCout
Message/MessageFile
Message/MessageHSFile
Message/MessageCustomFile
Message/MessageLCout
Message/MessagePublisher
Message/MessageSubscriber
Message/MessageTCDevice
Message/MessageThreadedCout
Message/Message_c_intf
Message/PlaybackFile
Message/message_publish_standalone
MonteCarlo/MonteCarlo
MonteCarlo/MonteCarlo_c_intf
MonteCarlo/MonteCarlo_dispatch_run_to_slave
MonteCarlo/MonteCarlo_dryrun
MonteCarlo/MonteCarlo_execute_monte
MonteCarlo/MonteCarlo_funcs
MonteCarlo/MonteCarlo_initialize_sockets
MonteCarlo/MonteCarlo_master
MonteCarlo/MonteCarlo_master_file_io
MonteCarlo/MonteCarlo_master_init
MonteCarlo/MonteCarlo_master_shutdown
MonteCarlo/MonteCarlo_receive_results
MonteCarlo/MonteCarlo_run_queue
MonteCarlo/MonteCarlo_slave
MonteCarlo/MonteCarlo_slave_funcs
MonteCarlo/MonteCarlo_slave_init
MonteCarlo/MonteCarlo_slave_process_run
MonteCarlo/MonteCarlo_spawn_slaves
MonteCarlo/MonteVarCalculated
MonteCarlo/MonteVarFile
MonteCarlo/MonteVarFixed
MonteCarlo/MonteVarRandom
MonteCarlo/StlRandomGenerator
RealtimeInjector/RtiEvent
RealtimeInjector/RtiExec
RealtimeInjector/RtiList
RealtimeInjector/RtiStager
RealtimeSync/RealtimeSync
RealtimeSync/RealtimeSync_c_intf
ScheduledJobQueue/ScheduledJobQueue
ScheduledJobQueue/ScheduledJobQueueInstrument
Scheduler/Scheduler
Sie/AttributesMap
Sie/EnumAttributesMap
Sie/Sie
Sie/sie_c_intf
SimObject/JobData
SimObject/SimObject
SimTime/SimTime
SimTime/SimTime_c_intf
ThreadBase/ThreadBase
Timer/ITimer
Timer/Timer
Timer/it_handler
UdUnits/UdUnits
UdUnits/map_trick_units_to_udunits
UnitTest/UnitTest
UnitTest/UnitTest_c_intf
UnitsMap/UnitsMap
VariableServer/VariableReference
VariableServer/VariableServer
VariableServer/VariableServerListenThread
VariableServer/VariableServerSessionThread
VariableServer/VariableServerSessionThread_commands
VariableServer/VariableServerSessionThread_connect
VariableServer/VariableServerSessionThread_copy_data
VariableServer/VariableServerSessionThread_copy_sim_data
VariableServer/VariableServerSessionThread_create_socket
VariableServer/VariableServerSessionThread_freeze_init
VariableServer/VariableServerSessionThread_loop
VariableServer/VariableServerSessionThread_restart
VariableServer/VariableServerSessionThread_write_data
VariableServer/VariableServerSessionThread_write_stdio
VariableServer/VariableServer_copy_and_write_freeze
VariableServer/VariableServer_copy_and_write_freeze_scheduled
VariableServer/VariableServer_copy_and_write_scheduled
VariableServer/VariableServer_copy_and_write_top
VariableServer/VariableServer_default_data
VariableServer/VariableServer_freeze_init
VariableServer/VariableServer_get_next_freeze_call_time
VariableServer/VariableServer_get_next_sync_call_time
VariableServer/VariableServer_open_additional_servers
VariableServer/VariableServer_init
VariableServer/VariableServer_restart
VariableServer/VariableServer_shutdown
VariableServer/exit_var_thread
VariableServer/var_server_ext
Zeroconf/Zeroconf
mains/master
)
# Sim services Lex/Yacc files
set( SS_LEX_YACC_SRC
${CMAKE_BINARY_DIR}/temp_src/lex_yacc/input_parser.lex
${CMAKE_BINARY_DIR}/temp_src/lex_yacc/input_parser.tab
)
add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/temp_src/lex_yacc/input_parser.lex.cpp
COMMAND ${FLEX_EXECUTABLE} -d -o ${CMAKE_BINARY_DIR}/temp_src/lex_yacc/input_parser.lex.cpp ${CMAKE_CURRENT_SOURCE_DIR}/CheckPointAgent/input_parser.l
MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/CheckPointAgent/input_parser.l
)
add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/temp_src/lex_yacc/input_parser.tab.cpp ${CMAKE_BINARY_DIR}/temp_src/lex_yacc/input_parser.tab.hpp
COMMAND ${BISON_EXECUTABLE} -d -o ${CMAKE_BINARY_DIR}/temp_src/lex_yacc/input_parser.tab.cpp ${CMAKE_CURRENT_SOURCE_DIR}/CheckPointAgent/input_parser.y
MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/CheckPointAgent/input_parser.y
)
add_library( sim_services_objs OBJECT ${SS_SRC} ${SS_LEX_YACC_SRC})
target_include_directories( sim_services_objs PUBLIC ${PYTHON_INCLUDE_DIRS} )
target_include_directories( sim_services_objs PUBLIC ${UDUNITS2_INCLUDES} )
add_subdirectory(MemoryManager)
add_subdirectory(InputProcessor)