diff --git a/docs/md/node-lb-data.md b/docs/md/node-lb-data.md index 0a8aac784a..c706fcd014 100644 --- a/docs/md/node-lb-data.md +++ b/docs/md/node-lb-data.md @@ -42,7 +42,7 @@ contains information about the task that performed this work. If that `entity` is a virtual collection object, it will specify the unique `id` for the object, and optionally the `index`, `home`, and `collection_id` for that object. -\include examples/LBDatafile_example.json +\include examples/lb_data/lb_data_file_example.json Each phase in the file may also have a `communications` array that specify any communication between tasks that occurred during the phase. Each communication diff --git a/examples/LBDatafile_example.json b/examples/lb_data/lb_data_file_example.json similarity index 71% rename from examples/LBDatafile_example.json rename to examples/lb_data/lb_data_file_example.json index 50b4e47433..f2350bd369 100644 --- a/examples/LBDatafile_example.json +++ b/examples/lb_data/lb_data_file_example.json @@ -21,6 +21,33 @@ }, "phases": [ { + "communications": [ + { + "bytes": 160.0, + "from": { + "collection_id": 7, + "home": 0, + "id": 262147, + "index": [ + 0 + ], + "migratable": true, + "type": "object" + }, + "messages": 1, + "to": { + "collection_id": 7, + "home": 0, + "id": 262147, + "index": [ + 0 + ], + "migratable": true, + "type": "object" + }, + "type": "SendRecv" + } + ], "id": 0, "tasks": [ { @@ -39,18 +66,10 @@ "subphases": [ { "id": 0, - "time": 0.037584 - }, - { - "id": 1, - "time": 0.037717999999999995 - }, - { - "id": 2, - "time": 0.038012000000000004 + "time": 0.0009759999999999994 } ], - "time": 0.113314 + "time": 0.0009759999999999994 }, { "entity": { @@ -88,10 +107,10 @@ "subphases": [ { "id": 0, - "time": 2.2000000000000318e-05 + "time": 2.400000000000015e-05 } ], - "time": 2.2000000000000318e-05 + "time": 2.400000000000015e-05 }, { "entity": { diff --git a/scripts/check_lb_data_files.sh b/scripts/check_lb_data_files.sh index 0e5581c41d..6cdd866049 100755 --- a/scripts/check_lb_data_files.sh +++ b/scripts/check_lb_data_files.sh @@ -43,7 +43,7 @@ done # Use vt to generate LB Datafile if ! python3 "${path_to_vt_src_dir}/scripts/generate_and_validate_lb_data_file.py" -c \ - -b "${path_to_vt_build_dir}" -f "LBData_from_lb_iter.0.json" -r "${path_to_vt_src_dir}/examples/LBDatafile_example.json" + -b "${path_to_vt_build_dir}" -f "LBData_from_lb_iter.0.json" -r "${path_to_vt_src_dir}/examples/lb_data/lb_data_file_example.json" then exit 3; fi