Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
0b3b5e8
Adding RT Support to Cadmium V2 - Step 1
jonmenard Aug 10, 2022
9177e6b
Creating a model to run in RT - Step 2
jonmenard Aug 14, 2022
f1b3939
Removing the logger when running in RT - Step 3
jonmenard Aug 16, 2022
8b37524
Adding Support for Asynchronous Events - Step 4
jonmenard Aug 19, 2022
16c7b48
Adding RT-Atomic Models - Step 5
jonmenard Aug 19, 2022
cdfa23c
Copyright formalities
jonmenard Aug 19, 2022
215d200
small fix so rt works with simulating non rt models normally
jonmenard Sep 30, 2022
439c1c1
Merge branch 'devel' into dev-rt
romancardenas Nov 18, 2022
c3a4bae
Separation of concerns
romancardenas Nov 18, 2022
dbae68f
Small change in CMakeLists.txt for release/debug compilation
romancardenas Nov 25, 2022
1fe4800
First working version of RT
romancardenas Feb 14, 2023
af5deb3
OpenMP for MacOS fixed
romancardenas Feb 14, 2023
8dd32c5
Minor changes
romancardenas Feb 15, 2023
94793f2
Added stdout logger for printing on standard out (for mbed it means s…
epecker Apr 17, 2023
fc5322c
Fixed the path to atomic.hpp library in all the atomics for managing …
epecker Apr 17, 2023
6bae973
Removed some printf in mbedclock.hpp used for debugging.
epecker Apr 17, 2023
a42081d
Added Blinky example.
epecker Apr 17, 2023
18e9608
Minor changes, mostly adding comments and removing preprocessor direc…
epecker Apr 18, 2023
8e53595
Moved the atomics for reading/writing gpios with mbed-os to the examp…
epecker Apr 18, 2023
8f34253
Added mbed compile profile for working with cadmium_v2.
epecker Apr 18, 2023
b54b183
Renamed the example Blinky to rt_mbed.
epecker Apr 18, 2023
1fa5a82
Added some missing files for the rt_mbed example.
epecker Apr 18, 2023
1fb1b53
Fixed doxygen documentation on stdout logger.
epecker Jun 10, 2023
1122515
Fixed doxygen documentation on stdout logger.
epecker Jun 10, 2023
b2f8876
In the BEDClockclass renamed some methods and reformated documentation.
epecker Jun 11, 2023
7035b1c
Removed mbed-os as a git submodule and added the mbed-os.lib to manag…
epecker Jun 12, 2023
e25b2ab
Added a README file for the rt_mbed example.
epecker Jun 12, 2023
be7475f
Made waitUntil() method in RealTimeClock class (rt_clock.hpp) return …
epecker Jun 17, 2023
3c2baed
Made waitUntil() method in ChronoClock class (chrono.hpp) return a do…
epecker Jun 17, 2023
ef67bd3
Added changes on method waitUntil() in MBEDClock class to return the …
epecker Jun 17, 2023
0e426e7
use waitUntil return value in RT coordinator
romancardenas Jun 22, 2023
5431af8
No logging
Srijan1972 Jun 27, 2023
c9bb50e
Undefined reference issue
Srijan1972 Jul 4, 2023
90e6346
Using asm delay
Srijan1972 Jul 6, 2023
e5cc5d0
Using timer32
Srijan1972 Jul 10, 2023
9d30a6a
I/O working
Srijan1972 Jul 11, 2023
7db296b
Blinky working
Srijan1972 Jul 12, 2023
76dd538
MSP
Srijan1972 Jul 20, 2023
4d55b5a
MSP README
Srijan1972 Jul 21, 2023
8d52e81
Fixed some issues on mbedclock.hpp.
epecker Aug 3, 2023
e5c8594
Merge branch 'dev-rt2' of https://github.com/Srijan1972/cadmium_v2 in…
epecker Aug 3, 2023
7acd7f5
Added NO_LOGGING macro toavoid including loggers in the main file of …
epecker Aug 6, 2023
a329377
Added NO_LOGGING macro delaration in profile cadmium.json for rt_mbed…
epecker Aug 6, 2023
73f840c
Added NO_LOGGING macro to the atomics for the rt_mbed example.
epecker Aug 6, 2023
e595c8a
Merge pull request #22 from SimulationEverywhere/dev-rt2
romancardenas Aug 10, 2023
2f774c6
NO_LOGGING
Srijan1972 Aug 22, 2023
2171b52
Merge pull request #24 from Srijan1972/dev-rt2
romancardenas Sep 8, 2023
20d6a20
MSP432P401R Support
Srijan1972 Sep 8, 2023
ad09fcb
New example file structure
Jeg27 Sep 16, 2023
3a45183
Delete example/MSP432P401R directory
Jeg27 Sep 16, 2023
bd4c1ee
Merge pull request #25 from Srijan1972/dev-rt2
romancardenas Sep 17, 2023
9cd4640
Delete example/rt_msp432/Example_0_Blank_Template.zip
Jeg27 Sep 26, 2023
f2402f2
Delete example/rt_msp432/Example_2_IO_Testing_Digital.zip
Jeg27 Sep 26, 2023
a083f03
Delete example/rt_msp432/Example_2_IO_Testing_Digital_Diagram.png
Jeg27 Sep 26, 2023
dcee778
Delete example/rt_msp432/Example_3_IO_Testing_Analog.zip
Jeg27 Sep 26, 2023
005928c
Delete example/rt_msp432/Example_3_IO_Testing_Analog_Diagram.png
Jeg27 Sep 26, 2023
46fd0c2
Delete example/rt_msp432/Example_4_Garage_Door_Opener.zip
Jeg27 Sep 26, 2023
2617eae
Delete example/rt_msp432/Example_4_Garage_Door_Opener_Diagram.png
Jeg27 Sep 26, 2023
15db3b3
Delete example/rt_msp432/updateCadmiumLINUXorUBUNTU.sh
Jeg27 Sep 26, 2023
4351a80
Delete example/rt_msp432/updateCadmiumWINDOWS.bat
Jeg27 Sep 26, 2023
9d97efd
Adding files for embedded execution.
Jeg27 Sep 26, 2023
242ddd5
Delete example/rt_msp432/cadmium directory
Jeg27 Oct 5, 2023
d962b6d
Merge pull request #26 from Jeg27/Srijan1972-dev-rt2
romancardenas Oct 5, 2023
9354ce6
Add mbedos submodule. Add IC. fix main_efp. colors to stdout. Add ESPCLK
Sasisekhar Sep 26, 2024
0a056a7
WIP fixing build script
Nov 29, 2024
6922f9b
change installation script
Jan 13, 2025
3cea7df
remove mbedos
Sasisekhar Jan 30, 2025
8098510
add progress to submodule
Sasisekhar Jan 30, 2025
d72ed99
fixing csv logger
Sasisekhar Jan 31, 2025
a3f6547
Making Interrupt Handler generic
Sasisekhar Feb 13, 2025
d48263b
adding input logging
Sasisekhar Feb 13, 2025
defb80d
Fixing logger
Sasisekhar Feb 18, 2025
590101e
Modify esp_clock for std::variant<> async input
Sasisekhar Feb 23, 2025
800d475
Fix power domain errors in clock
Sasisekhar Feb 23, 2025
a3936bc
Merge pull request #33 from Sasisekhar/dev-rt
romancardenas Mar 7, 2025
d83c98b
ESPclock backwards compatible; fix celldevs examples 'model'
Sasisekhar Mar 17, 2025
9c2c628
Relicensing to more permissive license MIT
sdavtaker Jan 8, 2026
7f557ac
Merge pull request #37 from SimulationEverywhere/update-license-dev-rt
sdavtaker Jan 9, 2026
ce915aa
resolve conflicts between main and dev-rt
Jan 13, 2026
aee78e6
fixed build script for fedora
Sasisekhar Jan 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ project(cadmium)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")

add_library(cadmium INTERFACE)
target_include_directories(cadmium INTERFACE include/ json/include)

Expand All @@ -31,8 +37,26 @@ foreach(exampleSrc ${Examples})
add_example(${exampleSrc})
endforeach(exampleSrc)

if(APPLE)
# Apple Clang does not pack OpenMP. We must install it via HomeBrew and link it manually
if(CMAKE_C_COMPILER_ID MATCHES "Clang\$")
set(OpenMP_C_FLAGS "-Xpreprocessor -fopenmp")
set(OpenMP_C_LIB_NAMES "omp")
set(OpenMP_omp_LIBRARY omp)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang\$")
set(OpenMP_CXX_FLAGS "-Xpreprocessor -fopenmp")
set(OpenMP_CXX_LIB_NAMES "omp")
set(OpenMP_omp_LIBRARY omp)
endif()
endif()
find_package(OpenMP)
if(OpenMP_CXX_FOUND)
if (APPLE)
# HomeBrew leaves a symlink to the installed version of OpenMP in these directories
include_directories("/usr/local/opt/libomp/include")
link_directories("/usr/local/opt/libomp/lib")
endif()
FILE(GLOB Examples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} example/*/parallel_main_*.cpp)
foreach(exampleSrc ${Examples})
add_example(${exampleSrc})
Expand Down
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# SPDX-License-Identifier: MIT
# Copyright (c) 2021-present Román Cárdenas Rodríguez
# Copyright (c) 2022-present Román Cárdenas Rodríguez
# ARSLab - Carleton University
#

Expand Down
55 changes: 53 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,67 @@
#! /bin/bash
#
# SPDX-License-Identifier: MIT
# Copyright (c) 2022-present jsoulier
# ARSLab - Carleton University
# Copyright (c) 2022-present Román Cárdenas Rodríguez
# Copyright (c) 2025-present Sasisekhar
# ARSLab - Carleton University
#

#Function to install deps depending on OS
install_deps() {
if command -v apt >/dev/null 2>&1; then
echo "Detected apt (Debian/Ubuntu)"
sudo apt update
sudo apt install -y build-essential make cmake git

elif command -v dnf >/dev/null 2>&1; then
echo "Detected dnf (Fedora)"
sudo dnf group install -y development-tools
sudo dnf install -y gcc gcc-c++ make cmake git boost-devel

else
echo "No supported package manager found."
echo "Please install build tools, make, cmake, and git manually."
exit 1
fi
}

# Function to add the CADMIUM variable to the environment
add_cadmium_env() {
# Check if CADMIUM is already set in .bashrc
if ! grep -Fxq "export CADMIUM=$(pwd)" ~/.bashrc; then
echo "export CADMIUM=$(pwd)" >> ~/.bashrc
echo "The CADMIUM variable has been set to $(pwd) in ~/.bashrc."
else
echo "The CADMIUM variable is already set in ~/.bashrc."
fi

# Source the updated .bashrc
source ~/.bashrc
}


echo Downloading all the dependencies...
git submodule update --init --recursive
install_deps
git pull
git submodule update --init --recursive --progress
mkdir build
cd build || exit
cmake ..
cmake --build .
cd ..
echo Compilation done. All the examples are in the bin folder

cd include
# Prompt the user for confirmation
echo "Do you want to add cadmium ($(pwd)) as an environment variable? (yes/no)"
read -r response

# Check the response and take action
if [[ "$response" =~ ^[Yy][Ee][Ss]$ || "$response" =~ ^[Yy]$ ]]; then
add_cadmium_env
elif [[ "$response" =~ ^[Nn][Oo]$ || "$response" =~ ^[Nn]$ ]]; then
echo "Operation canceled. The $(pwd) was not added to PATH."
else
echo "Invalid response. Please run the script again and respond with 'yes' or 'no'."
fi
11 changes: 8 additions & 3 deletions example/celldevs_benchmark/benchmark_config.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
{
"scenario": {
"shape": [50, 50], "origin": [-24, -24]
"shape": [50, 50], "origin": [0, 0]
},
"cells": {
"default": {
"delay": "inertial",
"cell_type": "benchmark",
"model": "benchmark",
"state": {"digit": 0},
"neighborhood": [
{"type": "von_neumann", "vicinity": 0.25, "range": 1},
{"type": "relative", "vicinity": 1, "neighbors": [[0, 0]]}
]
}
}
},
"viewer": [{
"colors": [[0, 0, 0], [255, 0, 0]],
"breaks": [0, 0.5, 1],
"field": "digit"
}]
}
9 changes: 4 additions & 5 deletions example/celldevs_benchmark/include/benchmark_grid_cell.hpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2022-present Guillermo Trabes
* ARSLab - Carleton University
* Copyright (c) 2022-present Román Cárdenas Rodríguez
* ARSLab - Carleton University
* Copyright (c) 2023-present Román Cárdenas Rodríguez
* ArSLab - Carleton University
*/

#ifndef CADMIUM_EXAMPLE_CELLDEVS_BENCHMARK_CELL_HPP_
#define CADMIUM_EXAMPLE_CELLDEVS_BENCHMARK_CELL_HPP_

#include <cmath>
#include <nlohmann/json.hpp>
#include <cadmium/celldevs/grid/cell.hpp>
#include <cadmium/celldevs/grid/config.hpp>
#include <cadmium/modeling/celldevs/grid/cell.hpp>
#include <cadmium/modeling/celldevs/grid/config.hpp>
#include "state.hpp"

namespace cadmium::celldevs::example::benchmark {
Expand Down
11 changes: 5 additions & 6 deletions example/celldevs_benchmark/main_grid_benchmark.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2022-present Guillermo Trabes
* ARSLab - Carleton University
* Copyright (c) 2022-present Román Cárdenas Rodríguez
* Copyright (c) 2025-present Sasisekhar
* ARSLab - Carleton University
*/

#include <cadmium/celldevs/grid/coupled.hpp>
#include <cadmium/core/logger/csv.hpp>
#include <cadmium/core/simulation/root_coordinator.hpp>
#include <cadmium/modeling/celldevs/grid/coupled.hpp>
#include <cadmium/simulation/logger/csv.hpp>
#include <cadmium/simulation/root_coordinator.hpp>
#include <chrono>
#include <fstream>
#include <string>
Expand Down Expand Up @@ -43,8 +43,7 @@ int main(int argc, char ** argv) {

modelGenerated = std::chrono::high_resolution_clock::now();
auto rootCoordinator = cadmium::RootCoordinator(model);
auto logger = std::make_shared<cadmium::CSVLogger>("grid_log.csv", ";");
rootCoordinator.setLogger(logger);
rootCoordinator.setLogger<cadmium::CSVLogger>("grid_benchmark_log.csv", ";");
rootCoordinator.start();
auto engineStarted = std::chrono::high_resolution_clock::now();
std::cout << "Engine creation time: " << std::chrono::duration_cast<std::chrono::duration<double, std::ratio<1>>>(engineStarted - modelGenerated).count() << " seconds" << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion example/celldevs_sir/asymm_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": {
"default": {
"delay": "inertial",
"cell_type": "SIR",
"model": "SIR",
"state": {"p": 200, "s": 1, "i": 0, "r": 0},
"config": {"rec": 0.2, "susc": 0.8, "vir": 0.4}
},
Expand Down
2 changes: 1 addition & 1 deletion example/celldevs_sir/grid_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"cells": {
"default": {
"delay": "inertial",
"cell_type": "SIR",
"model": "SIR",
"state": {"p": 100, "s": 1, "i": 0, "r": 0},
"config": {"rec": 0.2, "susc": 0.8, "vir": 0.4},
"neighborhood": [
Expand Down
4 changes: 2 additions & 2 deletions example/celldevs_sir/include/asymm_sir_cell.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#include <cmath>
#include <nlohmann/json.hpp>
#include <cadmium/celldevs/asymm/cell.hpp>
#include <cadmium/celldevs/asymm/config.hpp>
#include <cadmium/modeling/celldevs/asymm/cell.hpp>
#include <cadmium/modeling/celldevs/asymm/config.hpp>
#include "state.hpp"

namespace cadmium::celldevs::example::sir {
Expand Down
4 changes: 2 additions & 2 deletions example/celldevs_sir/include/grid_sir_cell.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#include <cmath>
#include <nlohmann/json.hpp>
#include <cadmium/celldevs/grid/cell.hpp>
#include <cadmium/celldevs/grid/config.hpp>
#include <cadmium/modeling/celldevs/grid/cell.hpp>
#include <cadmium/modeling/celldevs/grid/config.hpp>
#include "state.hpp"

namespace cadmium::celldevs::example::sir {
Expand Down
22 changes: 16 additions & 6 deletions example/celldevs_sir/main_asymm_sir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* ARSLab - Carleton University
*/

#include <cadmium/celldevs/asymm/coupled.hpp>
#include <cadmium/core/logger/csv.hpp>
#include <cadmium/core/simulation/root_coordinator.hpp>
#include <cadmium/modeling/celldevs/asymm/coupled.hpp>
#include <cadmium/simulation/logger/csv.hpp>
#include <cadmium/simulation/root_coordinator.hpp>
#include <fstream>
#include <string>
#include "asymm_sir_cell.hpp"
Expand All @@ -31,13 +31,23 @@ int main(int argc, char ** argv) {
}
std::string configFilePath = argv[1];
double simTime = (argc > 2)? atof(argv[2]) : 500;
auto paramsProcessed = std::chrono::high_resolution_clock::now();

auto model = std::make_shared<AsymmCellDEVSCoupled<SIRState, double>>("sir", addAsymmCell, configFilePath);
model->buildModel();
auto modelGenerated = std::chrono::high_resolution_clock::now();
std::cout << "Model creation time: " << std::chrono::duration_cast<std::chrono::duration<double, std::ratio<1>>>( modelGenerated - paramsProcessed).count() << " seconds" << std::endl;

modelGenerated = std::chrono::high_resolution_clock::now();
auto rootCoordinator = cadmium::RootCoordinator(model);
auto logger = std::make_shared<cadmium::CSVLogger>("asymm_log.csv", ";");
rootCoordinator.setLogger(logger);
rootCoordinator.setLogger<cadmium::CSVLogger>("log_asymm_sir.csv", ";");
rootCoordinator.start();
rootCoordinator.simulate(simTime);
auto engineStarted = std::chrono::high_resolution_clock::now();
std::cout << "Engine creation time: " << std::chrono::duration_cast<std::chrono::duration<double, std::ratio<1>>>(engineStarted - modelGenerated).count() << " seconds" << std::endl;

engineStarted = std::chrono::high_resolution_clock::now();
rootCoordinator.simulate(simTime);
auto simulationDone = std::chrono::high_resolution_clock::now();
std::cout << "Simulation time: " << std::chrono::duration_cast<std::chrono::duration<double, std::ratio<1>>>(simulationDone - engineStarted).count() << " seconds" << std::endl;
rootCoordinator.stop();
}
9 changes: 4 additions & 5 deletions example/celldevs_sir/main_grid_sir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* ARSLab - Carleton University
*/

#include <cadmium/celldevs/grid/coupled.hpp>
#include <cadmium/core/logger/csv.hpp>
#include <cadmium/core/simulation/root_coordinator.hpp>
#include <cadmium/modeling/celldevs/grid/coupled.hpp>
#include <cadmium/simulation/logger/csv.hpp>
#include <cadmium/simulation/root_coordinator.hpp>
#include <chrono>
#include <fstream>
#include <string>
Expand Down Expand Up @@ -41,8 +41,7 @@ int main(int argc, char ** argv) {

modelGenerated = std::chrono::high_resolution_clock::now();
auto rootCoordinator = cadmium::RootCoordinator(model);
auto logger = std::make_shared<cadmium::CSVLogger>("grid_log.csv", ";");
rootCoordinator.setLogger(logger);
rootCoordinator.setLogger<cadmium::CSVLogger>("log_grid_sir.csv", ";");
rootCoordinator.start();
auto engineStarted = std::chrono::high_resolution_clock::now();
std::cout << "Engine creation time: " << std::chrono::duration_cast<std::chrono::duration<double, std::ratio<1>>>(engineStarted - modelGenerated).count() << " seconds" << std::endl;
Expand Down
10 changes: 4 additions & 6 deletions example/celldevs_sir/parallel_main_asymm_sir.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2022-present Guillermo Trabes
* ARSLab - Carleton University
* Copyright (c) 2022-present Román Cárdenas Rodríguez
* ARSLab - Carleton University
*/

#include <cadmium/celldevs/asymm/coupled.hpp>
#include <cadmium/core/logger/csv.hpp>
#include <cadmium/core/simulation/parallel_root_coordinator.hpp>
#include <cadmium/modeling/celldevs/asymm/coupled.hpp>
#include <cadmium/simulation/logger/csv.hpp>
#include <cadmium/simulation/parallel_root_coordinator.hpp>
#include <fstream>
#include <string>
#include "asymm_sir_cell.hpp"
Expand Down Expand Up @@ -37,8 +36,7 @@ int main(int argc, char ** argv) {
auto model = std::make_shared<AsymmCellDEVSCoupled<SIRState, double>>("sir", addAsymmCell, configFilePath);
model->buildModel();
auto rootCoordinator = cadmium::ParallelRootCoordinator(model);
auto logger = std::make_shared<cadmium::CSVLogger>("asymm_log.csv", ";");
rootCoordinator.setLogger(logger);
rootCoordinator.setLogger<cadmium::CSVLogger>("log_parallel_asymm_sir.csv", ";");
rootCoordinator.start();
rootCoordinator.simulate(simTime);
rootCoordinator.stop();
Expand Down
10 changes: 4 additions & 6 deletions example/celldevs_sir/parallel_main_grid_sir.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2022-present Guillermo Trabes
* ARSLab - Carleton University
* Copyright (c) 2022-present Román Cárdenas Rodríguez
* ARSLab - Carleton University
*/

#include <cadmium/celldevs/grid/coupled.hpp>
#include <cadmium/core/logger/csv.hpp>
#include <cadmium/core/simulation/parallel_root_coordinator.hpp>
#include <cadmium/modeling/celldevs/grid/coupled.hpp>
#include <cadmium/simulation/logger/csv.hpp>
#include <cadmium/simulation/parallel_root_coordinator.hpp>
#include <chrono>
#include <fstream>
#include <string>
Expand Down Expand Up @@ -43,8 +42,7 @@ int main(int argc, char ** argv) {

modelGenerated = std::chrono::high_resolution_clock::now();
auto rootCoordinator = cadmium::ParallelRootCoordinator(model);
auto logger = std::make_shared<cadmium::CSVLogger>("grid_log.csv", ";");
rootCoordinator.setLogger(logger);
rootCoordinator.setLogger<cadmium::CSVLogger>("grid_log.csv", ";");
rootCoordinator.start();
auto engineStarted = std::chrono::high_resolution_clock::now();
std::cout << "Engine creation time: " << std::chrono::duration_cast<std::chrono::duration<double, std::ratio<1>>>(engineStarted - modelGenerated).count() << " seconds" << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions example/devstone/include/devstone.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#ifndef CADMIUM_EXAMPLE_DEVSTONE_HPP_
#define CADMIUM_EXAMPLE_DEVSTONE_HPP_

#include <cadmium/core/modeling/coupled.hpp>
#include <cadmium/core/simulation/root_coordinator.hpp>
#include <cadmium/modeling/devs/coupled.hpp>
#include <cadmium/simulation/root_coordinator.hpp>
#include <memory>
#include "devstone_coupled.hpp"

Expand Down
2 changes: 1 addition & 1 deletion example/devstone/include/devstone_atomic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef CADMIUM_EXAMPLE_DEVSTONE_ATOMIC_HPP_
#define CADMIUM_EXAMPLE_DEVSTONE_ATOMIC_HPP_

#include <cadmium/core/modeling/atomic.hpp>
#include <cadmium/modeling/devs/atomic.hpp>
#include <iostream>

namespace cadmium::example::devstone {
Expand Down
4 changes: 2 additions & 2 deletions example/devstone/include/devstone_coupled.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#ifndef CADMIUM_EXAMPLE_DEVSTONE_COUPLED_HPP_
#define CADMIUM_EXAMPLE_DEVSTONE_COUPLED_HPP_

#include <cadmium/core/modeling/coupled.hpp>
#include <cadmium/core/simulation/root_coordinator.hpp>
#include <cadmium/modeling/devs/coupled.hpp>
#include <cadmium/simulation/root_coordinator.hpp>
#include <memory>

namespace cadmium::example::devstone {
Expand Down
2 changes: 1 addition & 1 deletion example/devstone/include/devstone_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef CADMIUM_EXAMPLE_DEVSTONE_GENERATOR_HPP_
#define CADMIUM_EXAMPLE_DEVSTONE_GENERATOR_HPP_

#include <cadmium/core/modeling/atomic.hpp>
#include <cadmium/modeling/devs/atomic.hpp>
#include <iostream>

namespace cadmium::example::devstone {
Expand Down
Loading
Loading