gf: security in the case beta<0 added in the mesh construction
gf: inline added in slice