Fixed ghost layer width calculation