@@ -160,7 +160,7 @@ In its configuration, the `dsize` variable is written.
160160 ` .h5dump ` file). You can easily check if the files are the same by running the
161161 command:
162162``` bash
163- diff ex3.h5dump <( h5dump ex3.h5)
163+ diff ex3.h5dump <( h5dump ex3* .h5)
164164```
165165
166166To achieve this result, you will need to fill 2 sections in the YAML file.
@@ -214,7 +214,9 @@ condition to restrict its output.
214214
215215* Only write ` main_field ` at the second iteration (when ` ii=1 ` ) and match the
216216 expected content as described in ` ex4.h5dump ` .
217-
217+ ``` bash
218+ diff ex4.h5dump <( h5dump ex4* .h5)
219+ ```
218220
219221### Ex5. Introducing events
220222
@@ -233,7 +235,11 @@ You have to use events for that, you will modify both the C and YAML file.
233235 ` main_field ` are shared.
234236 With the \ref trace_plugin "Trace plugin", check that the event is indeed
235237 triggered at the expected time as described in ` ex5.log ` (only the lines
236- matching ` [Trace-plugin] ` have been kept).
238+ matching ` [Trace-plugin] ` have been kept). You can check if the files are the
239+ same by running:
240+ ``` bash
241+ diff ex5.log <( grep Trace-plugin ex5.result.log)
242+ ```
237243
238244* Use the ` on_event ` mechanism to trigger the write of ` ii ` and ` main_field ` .
239245 This mechanism can be combined with a ` when ` directive, in that case the
@@ -244,6 +250,9 @@ You have to use events for that, you will modify both the C and YAML file.
244250 Use this mechanism to write ` main_field ` at iterations 1 and 2, in two
245251 distinct groups ` iter1 ` and ` iter2 ` .
246252 Your output should match the content described in ` ex5.h5dump ` .
253+ ``` bash
254+ diff ex5.h5dump <( h5dump ex5* .h5)
255+ ```
247256
248257
249258### Ex6. Simplifying the code
@@ -291,7 +300,7 @@ As you can notice, now the dataset is independently described in the file.
291300 You should be able to match the expected output described in ` ex7.h5dump ` .
292301 You can easily check if the files are the same by running:
293302``` bash
294- diff ex7.h5dump <( h5dump ex7-data0x0 .h5)
303+ diff ex7.h5dump <( h5dump ex7* .h5)
295304```
296305
297306You can achieve this by using the ` memory_selection ` directive that specifies
@@ -320,7 +329,7 @@ time-steps.
320329 Match the expected output described in ` ex8.h5dump ` . You can easily check if
321330 the files are the same by running:
322331``` bash
323- diff ex8.h5dump <( h5dump ex8-data0x0 .h5)
332+ diff ex8.h5dump <( h5dump ex8* .h5)
324333```
325334
326335You can achieve this by using the ` dataset_selection ` directive that specifies
@@ -360,7 +369,7 @@ The `mpi` plugin was loaded to make sharing MPI communicators possible.
360369Match the output from ` ex9.h5dump ` , that should be independent from the number
361370of processes used. You can easily check if the files are the same by running:
362371``` bash
363- diff ex9.h5dump <( h5dump ex9.h5)
372+ diff ex9.h5dump <( h5dump ex9* .h5)
364373```
365374
366375![ graphical representation of the parallel I/O] ( PDI_hdf5_parallel.jpg )
@@ -399,7 +408,7 @@ chained this way.
399408* Match the output from ` ex10.h5dump ` . You can easily check if the files are the
400409 same by running:
401410``` bash
402- diff ex10.h5dump <( h5dump ex10.h5)
411+ diff ex10.h5dump <( h5dump ex10* .h5)
403412```
404413
405414\attention
0 commit comments