adamantine-sim / adamantine

Software to simulate heat transfer for additive manufacturing
https://adamantine-sim.github.io/adamantine/
Other
32 stars 9 forks source link

Simplify code using global variables #242

Closed Rombur closed 10 months ago

Rombur commented 11 months ago

There are many places where we need to know things like n_material_states. Right now every time we want to loop over the number of material states, we need to cast the enum to unsigned int. Instead this PR defines global variables that do the casting and that we can reuse through the code.

CI