Hi,
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
Hi,
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
Start with Numerical recipes: the art of scientific computing. A pretty comprehensive tome. However, keep in mind two things:
Still, if you need it for educational purposes, this book is a highly recommended reading.
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: