embedding tetrahedral meshes using GAUSS for finite elements
src/ExampleK.cpp
---$ ./Embedding coarsemesh_path.mesh finemesh_path.mesh
copy-paste the whole createEmbeddedMesh function.
Other important lines: 47-53 155-158 203-204 350
That should be all.