Dear all,
I am currently using in my Kratos application a lot of std::maps to get for a specific node Id a corresponding double value. I use something like the following:
std::map<int,double> m_filtered_dFdX;
std::map<int,double> m_filtered_dCdX;
std::map<int,double> m_search_direction;
I noticed std::maps are slowing down my process noticeably. So I want to avoid them. Now I was thinking to simply store all these values on the node by creating dedicated local variables in my application (which then would be quite some). These are no solution variables I just need to update them once in a while. I am however not sure if this is a good way, so I wanted to post the question here: Is it recommended or good practice in such a case to store the values directly on the node using local variables or is there other recommendations?
Thanks a lot in advance!
Best
Daniel