Skip to content
Snippets Groups Projects
Commit f603fcc0 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[tabulatedcomp] fill arrays on the fly

instead of filling all arrays during initialization, we fill the data
arrays when called. This gets rid of the try and catch blocks in the
initializing function and allows for static asserts in the components
within functions that are not overloaded. The overhead is one more
interpolation call during the first call to the property which should be
neglectable. For the pressure(t, rho) functions we have to introduce one
additional if statement within each call. But, for models using only
a small fraction of the properties, this gets rid of the long initialization
times.
parent e4b8b21e
No related branches found
No related tags found
1 merge request!861[tabulatedcomp] fill arrays on the fly
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment