Assume fm3d code is available on $PATH.