0
$\begingroup$

I am learning C++ scientific computing with "Parallel scientific computing in C++ and MPI A Seamless Approach to Parallel Algorithms and their Implementation" since it kept coming up a lot in questions, for example.

The problem is that it is really outdated and when compiling I get lots of errors. Up until now, I've been able to correct it. But now, as things get harder, I've got stuck...

My question is, does anybody know if the source code has been done recently? For example in a git repo or newer editions?

$\endgroup$
0

2 Answers 2

9
$\begingroup$

First of all, the book you mention is very old. In fact, it misses the last two MPI standards (3 and 4), and every C++ standard from C++11 on. Secondly, know that MPI has officially no C++ bindings, so if you want to learn MPI you can use any MPI book and use the C interface.

That said, take a look at my book "Parallel Programming for Science and Engineering" which covers MPI and OpenMP, in C/Fortran/C++. For MPI it covers the MPL library which is a C++17 wrapper around MPI. Free pdf download and open repository with lots of examples.

$\endgroup$
4
$\begingroup$

I think you should abandon that book and it’s code and have a look at Deal.ii and its associated video lectures on learning FEM. Wolfgang Bangerth is a regular contributor here. You can use the book and Wikipedia as references if there’s something in the lecture videos you don’t understand.

$\endgroup$
4
  • $\begingroup$ I like the shout out, Bill :-) $\endgroup$ Commented Nov 5, 2021 at 20:59
  • $\begingroup$ The home page for the individual lectures is here: math.colostate.edu/~bangerth/videos.html $\endgroup$ Commented Nov 5, 2021 at 20:59
  • 1
    $\begingroup$ I completely agree with Bill's answer: deal.ii is a wonderful library where you do really see how things should be done. But, I think the OP is looking for a more "didactical" reference. If you plan to learn parallel programming for scientific computing, then looking directly to such a library sounds honestly a bit too much. That's just the opinion of an undergrad :-) $\endgroup$
    – FEGirl
    Commented Nov 5, 2021 at 23:00
  • 1
    $\begingroup$ Of course, based on his own post, I skipped over my friend and coworker, Victor Eijkhout's, book and materials, now given in his own answer. Both are great resources. $\endgroup$
    – Bill Barth
    Commented Nov 8, 2021 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.