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: 2024-02-29 00:06:16.880496, revision {‘base’: ‘cbf8efd0’}, dependency revisions {PT_C: 31642c1e,cvsys: 593686bc,eikonal: 5fbbfda3,elasticity: 4d92ddfc}

Runtime: 0:00:00.880668
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)