NCAR / micm

A model-independent chemistry module for atmosphere models
https://ncar.github.io/micm/
Apache License 2.0
5 stars 5 forks source link

Restructure RateConstant class for optimization #434

Closed boulderdaze closed 4 months ago

boulderdaze commented 5 months ago

Restructure RateConstant class to optimize the performance for UpdateState() that has to look up a V-table for each rate constant for its operation.

K20shores commented 4 months ago

Since UpdateState is called only once in the Solve routine, the performance hit won't noticeably affect the solving time and it's not worth our time to do this ticket