in the field of scientific simulations (physics) I am thinking about developing some new simulation package in C/C++. What do you think would be the best practices when starting here from scratch? Can you recommend some bibliography?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s something of a reading list. Not sure if it’s too basic for you:
Writing Scientific Software: a good follow-on to a basic ‘Learn to Program in C++’ or whatever.
Parallel Scientific Computing in C++ and MPI: if you are not planning to parallelise your application, you should be.
Engineering and Scientific C++: a good, domain-specific, introduction to programming in C++. A bit dated in language details, but the overall approach hasn’t aged.
I suggest that you read through the SO answers to questions such as ‘How should I design a large C++ program ?’ for advice on other books which may be of interest.
As to best practices, here are some suggestions. Again, I’m not sure of your starting point so some of this may be too basic: