2024-01-13 15:21:17 +11:00
|
|
|
|
2024-01-13 17:33:53 +11:00
|
|
|
#include "reactor.hpp"
|
2024-01-13 15:21:17 +11:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2024-01-13 17:33:53 +11:00
|
|
|
sim::reactor reactor(5, {100, 200});
|
2024-01-13 15:21:17 +11:00
|
|
|
|
2024-01-13 17:33:53 +11:00
|
|
|
// react.set_reactivity(0);
|
2024-01-13 15:21:17 +11:00
|
|
|
|
|
|
|
for(;;)
|
|
|
|
{
|
2024-01-13 17:33:53 +11:00
|
|
|
for(int i = 0; i < 1e3; i++)
|
2024-01-13 15:21:17 +11:00
|
|
|
{
|
2024-01-13 17:33:53 +11:00
|
|
|
reactor.update(1e-3);
|
2024-01-13 15:21:17 +11:00
|
|
|
}
|
|
|
|
|
2024-01-13 17:33:53 +11:00
|
|
|
std::cout << "\n\nShow:\n\n" << reactor << "\n";
|
2024-01-13 15:21:17 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|