Permalink
Browse files

Modifications for MPI-dev docs

  • Loading branch information...
1 parent 9a50b39 commit fcd9540733d224c06b3d3b208ccf070cc74cd094 @gihanmudalige gihanmudalige committed Dec 6, 2013
Showing with 160 additions and 94 deletions.
  1. +4 −2 apps/c/airfoil/{README → README.md}
  2. +156 −92 doc/mpi-dev.tex
@@ -37,10 +37,10 @@ reference implementation) to ascertain the correctness of the results. The p_q a
will be the data array to compare. One way to achieve this is to use the following OP2 calls to write the data array to
text or binary files, for example after the end of the 1000 iterations in the airfoil code.
-
+```
op_print_dat_to_txtfile(p_q, "out_grid_seq.dat"); //ASCI
op_print_dat_to_binfile(p_q, "out_grid_seq.bin"); //Binary
-
+```
Then the code in compare.cpp and comparebin.cpp can be used to compare the text file or binary file with the reference
implementation.
@@ -50,6 +50,7 @@ precision. For the single precision version, answers should be very close. A sum
residual is printed out by default every 100 iterations. This in double precision for the first 1000 iterations should
be exactly:
+```
100 5.02186e-04
200 3.41746e-04
300 2.63430e-04
@@ -60,3 +61,4 @@ be exactly:
800 1.27627e-04
900 1.15810e-04
1000 1.06011e-04
+```
Oops, something went wrong.

0 comments on commit fcd9540

Please sign in to comment.