eighthill / Slime_Mold_Simulation

A student project simulating smile mold🧫
MIT License
6 stars 0 forks source link

optimized boundary reflection and ensured boundary checking #24

Closed eighthill closed 8 months ago

eighthill commented 8 months ago

Updated reflect_at_boundary() and made a small change in mapping_int_to_float().

Tried the new changes of reflect_at_boundary() without changes to mapping_int_to_float() -> results in IndexOutOfBoundsError Implemented boundary-checking in the mapping_int_to_float() method to ensure that no indices go out of bounds