#NEWLINE# def _write_plot3d_coords( zone , stream , planes , logger ) : #NEWLINE# #INDENT# ' Write coordinates (& blanking) to Plot3D stream. ' #NEWLINE# if hasattr ( zone . grid_coordinates , 'iblank' ) : #NEWLINE# #INDENT# raise NotImplementedError ( 'blanking not supported yet' ) #NEWLINE# #UNINDENT# if planes : #NEWLINE# #INDENT# raise NotImplementedError ( 'planar format not supported yet' ) #NEWLINE# #UNINDENT# shape = zone . shape #NEWLINE# dim = len ( shape ) #NEWLINE# if stream . unformatted : #NEWLINE# #INDENT# if ( dim > 2 ) : #NEWLINE# #INDENT# ( imax , jmax , kmax ) = shape #NEWLINE# total = ( ( ( 3 * imax ) * jmax ) * kmax ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( imax , jmax ) = shape #NEWLINE# total = ( ( 2 * imax ) * jmax ) #NEWLINE# #UNINDENT# reclen = stream . reclen_floats ( total ) #NEWLINE# stream . write_recordmark ( reclen ) #NEWLINE# #UNINDENT# logger . debug ( '    x min %g, max %g' , zone . grid_coordinates . x . min ( ) , zone . grid_coordinates . x . max ( ) ) #NEWLINE# _write_array ( zone . grid_coordinates . x , zone . grid_coordinates . ghosts , stream ) #NEWLINE# logger . debug ( '    y min %g, max %g' , zone . grid_coordinates . y . min ( ) , zone . grid_coordinates . y . max ( ) ) #NEWLINE# _write_array ( zone . grid_coordinates . y , zone . grid_coordinates . ghosts , stream ) #NEWLINE# if ( dim > 2 ) : #NEWLINE# #INDENT# logger . debug ( '    z min %g, max %g' , zone . grid_coordinates . z . min ( ) , zone . grid_coordinates . z . max ( ) ) #NEWLINE# _write_array ( zone . grid_coordinates . z , zone . grid_coordinates . ghosts , stream ) #NEWLINE# #UNINDENT# if stream . unformatted : #NEWLINE# #INDENT# stream . write_recordmark ( reclen )