FLAMEGPU / FLAMEGPU2

FLAME GPU 2 is a GPU accelerated agent based modelling framework for CUDA C++ and Python
https://flamegpu.com
MIT License
105 stars 20 forks source link

AgentPython capture external constants. #1147

Closed Robadob closed 10 months ago

Robadob commented 11 months ago
import pyflamegpu
import typing
TEST: typing.Final = 5
TEST2: typing.Final = 12
TEST2: typing.Final = math.sqrt(12 * 36)
TEST3: pyflamegpu.constant = 12
TEST4: int = 14

converts to

constexpr auto TEST = 5;
constexpr auto TEST2 = 20.784609690826528;
constexpr auto TEST3 = 12;

todo

Closes #1144