You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What do these lines do? For single processor programs, they do absolutely nothing -- they could actually be removed without any consequences. However, for programs that use the message passing interface (MPI), they act as wrappers for the similarly named {\ttMPI::Init} and {\ttMPI::Finalize} commands. It's useful to include them here because they'll allow us to write programs that may be compiled for both single or multiple processor environments.
37
+
What do these lines do? For single processor programs, they do absolutely nothing -- they could actually be removed without any consequences. However, for programs that use the message passing interface (MPI), they act as wrappers for the similarly named {\ttMPI_Init} and {\ttMPI_Finalize} commands. It's useful to include them here because they'll allow us to write programs that may be compiled for both single or multiple processor environments.
38
38
39
39
Programmers familiar with {\tt c++} will notice that there's obviously some \MMSP\ namespace being used here. For those less familiar, namespaces are a somewhat recent addition to {\tt c++} that are used as a means of avoiding naming conflicts. We can avoid using namespace resolution so frequently if we use an appropriate {\tt using} statement, i.e.
0 commit comments