zhouxinwei wrote:vorelj wrote:ES3 wrote:I pushed new version of numerical.cpp to the git library. This should fix the problem caused by the new version of mars
Honza
You should not directly include numerical.cpp into your project. It is intended for your reference to see how things are done.
numerical.cpp is irrelevant to the bug you are reporting.
It is irrelevant to the bug, but not to the update u did to fix the bug. The new mars.h omits some of the functions previously defined in numerical.cpp. And if it shouldn't be included why it is in the "lib" folder. In that case,move it into the folder unused (the same should be probably applied to materials.cpp as well). Why do you place unused files into the source folders? And if this shouldn't be used where can we find the promised mathematical functions?
Regards,
Honza
mars.h and MARS libraries should be used together from the package you download from our server, I guess you already know that, then you don't need to make any changes in your code.
You don't need to change anything in your numerical.cpp, because it should not be included in your project. I am saying you just use the functions in it, but not include the file itself into your project, which of course will cause conflicts.
Xinwei
I got it, but my issues are:
1) Why do we have them (numerical.cpp, materials.cpp) in the source folder, place it into the "unused" folder, so it is clear that they are not part of the project
2) If they are not used and you wanted to convince us to use your math libraries then there should be some file which can be extended (adjusted, updated) by any user and where you place the functions you typically use. Or are the functions included in numerical.cpp all the functions you have for the vector, tensor, etc. operations?
3) numerical.cpp is still included in mars.pro
Regards,
Honza