I was wondering if it is possible to freeze a single coordinate (let's say z) for a given atom instead of the whole atom during geometry optimization if the geometry was specified with cartesian coordinates. I know if is possible with z-matrices, but it would be much simpler for me to use cartesian coordinates.