Skip to content
Loïc Maréchal edited this page Jun 2, 2016 · 5 revisions

Prerequisites

  1. A software to uncompress the ZIP file.
  2. GNU gcc compiler and optionally GNU fortran.
  3. GNU make utility to build the examples.

Download and build

First download the zip file that contains the whole package in the code section by clicking on the "clone or download" option and selecting the "Download ZIP" option afterward. You should now have a file names "libMeshb-master.zip" on your desktop.

Uncompress the zip with:
$ gunzip libMeshb-master.zip

Now you may build the examples:
$ cd libMeshb-master/examples
$ make

Five executables should have been built:
test_libmeshb
test_libmeshb_f77
test_libmeshb_block
test_libmeshb_block_f77
test_libmeshb_sol

Develop your own code

The best way is to start from one of the sample code and modify it to suit your needs.
First read the section 2 (Quick-start) in the documentation.

After your done, select an example to start from. The most basic one to start from is:
test_libmeshb.c or test_libmeshb.f
depending on your favorite programing language.

After you feel more confident, you may try block reading with asynchronous I/O and processing:
test_libmeshb_block.c or test_libmeshb_block.f

Clone this wiki locally