Binary Format Conversion

Module: devtests.FEMLIB.binary_format.run

Section author: Andrew Crozier <andrew.crozier@medunigraz.at>

This example tests that the conversion of meshes to the CARP binary format (.bpts, .belem, .blon) using GlMeshConvert and the subsequent reading of these binary files results in the same mesh being generated as if the text format mesh was read directly.

Tests

format_compare

Run the example (passing text and binary meshes, the latter generated from the former with GlMeshConvert, through a simple CARP sim) and compare the output to check that the binary is being read correctly.

Tags: FAST SERIAL IO FEMLIB

Checks:

  • Custom check: txtbin_compare(block_i.pts)
  • Custom check: txtbin_compare(block_i.elem)
  • Custom check: txtbin_compare(block_i.lon)
  • Custom check: txtbin_compare(block_e.pts)
  • Custom check: txtbin_compare(block_e.elem)
  • Custom check: txtbin_compare(block_e.lon)

Last run: 2021-09-27 00:31:26.158013, revision {‘base’: ‘778659c7’}, dependency revisions {PT_C: 31642c1e,eikonal: b58be0de,elasticity: e4d37cfa}

Runtime: 0:00:00.546999
ALL PASSED
  PASS txtbin_compare(block_i.pts)
  PASS txtbin_compare(block_i.elem)
  PASS txtbin_compare(block_i.lon)
  PASS txtbin_compare(block_e.pts)
  PASS txtbin_compare(block_e.elem)
  PASS txtbin_compare(block_e.lon)