Numerical modeling is a tool commonly used by both researchers and engineers. For several reasons, the quality of scientific codes frequently deprecates. One of the possible remedies is the application of advanced pro...
详细信息
Numerical modeling is a tool commonly used by both researchers and engineers. For several reasons, the quality of scientific codes frequently deprecates. One of the possible remedies is the application of advanced programming and software development methods. In this paper, we introduce the application of metaprogramming and generic programming in C++ to control the correctness of multiscale models. Additionally, it is shown how both methods increase reusability and quality of the code. A short introduction to metaprogramming and generic programming is included, as well as the proof of the concept. Exemplary codes are also included and discussed.
暂无评论