@@ -218,11 +218,9 @@ void CFlowCompOutput::SetVolumeOutputFields(CConfig *config){
218218 AddVolumeOutput (" DENSITY" , " Density" , " SOLUTION" , " Density" );
219219 AddVolumeOutput (" MOMENTUM-X" , " Momentum_x" , " SOLUTION" , " x-component of the momentum vector" );
220220 AddVolumeOutput (" MOMENTUM-Y" , " Momentum_y" , " SOLUTION" , " y-component of the momentum vector" );
221- AddVolumeOutput (" VELOCITY-X" , " Veocity_x" , " SOLUTION" , " x-component of the velocity vector" );
222- AddVolumeOutput (" VELOCITY-Y" , " Velocity_y" , " SOLUTION" , " y-component of the velocity vector" );
221+
223222 if (nDim == 3 )
224223 AddVolumeOutput (" MOMENTUM-Z" , " Momentum_z" , " SOLUTION" , " z-component of the momentum vector" );
225- AddVolumeOutput (" VELOCITY-Z" , " Velocity_z" , " SOLUTION" , " z-component of the velocity vector" );
226224 AddVolumeOutput (" ENERGY" , " Energy" , " SOLUTION" , " Energy" );
227225
228226 SetVolumeOutputFields_ScalarSolution (config);
@@ -240,6 +238,11 @@ void CFlowCompOutput::SetVolumeOutputFields(CConfig *config){
240238 AddVolumeOutput (" TEMPERATURE" , " Temperature" , " PRIMITIVE" , " Temperature" );
241239 AddVolumeOutput (" MACH" , " Mach" , " PRIMITIVE" , " Mach number" );
242240 AddVolumeOutput (" PRESSURE_COEFF" , " Pressure_Coefficient" , " PRIMITIVE" , " Pressure coefficient" );
241+ AddVolumeOutput (" VELOCITY-X" , " Veocity_x" , " PRIMITIVE" , " x-component of the velocity vector" );
242+ AddVolumeOutput (" VELOCITY-Y" , " Velocity_y" , " PRIMITIVE" , " y-component of the velocity vector" );
243+
244+ if (nDim == 3 )
245+ AddVolumeOutput (" VELOCITY-Z" , " Velocity_z" , " PRIMITIVE" , " z-component of the velocity vector" );
243246
244247 if (config->GetViscous ()) {
245248 AddVolumeOutput (" LAMINAR_VISCOSITY" , " Laminar_Viscosity" , " PRIMITIVE" , " Laminar viscosity" );
0 commit comments