Skip to content

Commit 49de8bb

Browse files
committed
Fix dummy run
1 parent 7b78f06 commit 49de8bb

1 file changed

Lines changed: 23 additions & 19 deletions

File tree

SU2_CFD/src/drivers/CDriver.cpp

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,9 +2666,11 @@ void CDriver::PreprocessTurbomachinery(CConfig** config, CGeometry**** geometry,
26662666
geometry[iZone][INST_0][MESH_0]->GatherInOutAverageValues(config[iZone], true);
26672667
}
26682668

2669-
if (rank == MASTER_NODE) cout<<"Initialize solver containers for average quantities." << endl;
2670-
for (iZone = 0; iZone < nZone; iZone++) {
2671-
solver[iZone][INST_0][MESH_0][FLOW_SOL]->InitTurboContainers(geometry[iZone][INST_0][MESH_0],config, iZone);
2669+
if (rank == MASTER_NODE && !dummy) {
2670+
cout<<"Initialize solver containers for average quantities." << endl;
2671+
for (iZone = 0; iZone < nZone; iZone++) {
2672+
solver[iZone][INST_0][MESH_0][FLOW_SOL]->InitTurboContainers(geometry[iZone][INST_0][MESH_0],config, iZone);
2673+
}
26722674
}
26732675

26742676
if(mixingplane){
@@ -2706,23 +2708,25 @@ void CDriver::PreprocessTurbomachinery(CConfig** config, CGeometry**** geometry,
27062708
}
27072709
}
27082710

2709-
if (rank == MASTER_NODE) cout<<"Initialize inflow and outflow average solution quantities." << endl;
2710-
for(iZone = 0; iZone < nZone; iZone++) {
2711-
solver[iZone][INST_0][MESH_0][FLOW_SOL]->PreprocessAverage(solver[iZone][INST_0][MESH_0], geometry[iZone][INST_0][MESH_0],config[iZone],INFLOW);
2712-
solver[iZone][INST_0][MESH_0][FLOW_SOL]->PreprocessAverage(solver[iZone][INST_0][MESH_0], geometry[iZone][INST_0][MESH_0],config[iZone],OUTFLOW);
2713-
solver[iZone][INST_0][MESH_0][FLOW_SOL]->TurboAverageProcess(solver[iZone][INST_0][MESH_0], geometry[iZone][INST_0][MESH_0],config[iZone],INFLOW);
2714-
solver[iZone][INST_0][MESH_0][FLOW_SOL]->TurboAverageProcess(solver[iZone][INST_0][MESH_0], geometry[iZone][INST_0][MESH_0],config[iZone],OUTFLOW);
2715-
solver[iZone][INST_0][MESH_0][FLOW_SOL]->GatherInOutAverageValues(config[iZone], geometry[iZone][INST_0][MESH_0]);
2716-
if (rank == MASTER_NODE){
2717-
flowAngleIn = solver[iZone][INST_0][MESH_0][FLOW_SOL]->GetTurboVelocityIn(iZone, config[iZone]->GetnSpanWiseSections())[1];
2718-
flowAngleIn /= solver[iZone][INST_0][MESH_0][FLOW_SOL]->GetTurboVelocityIn(iZone, config[iZone]->GetnSpanWiseSections())[0];
2719-
flowAngleIn = atan(flowAngleIn)*180.0/PI_NUMBER;
2720-
cout << "Inlet flow angle for Row "<< iZone + 1<< ": "<< flowAngleIn <<"°." <<endl;
2721-
flowAngleOut = solver[iZone][INST_0][MESH_0][FLOW_SOL]->GetTurboVelocityOut(iZone, config[iZone]->GetnSpanWiseSections())[1];
2722-
flowAngleOut /= solver[iZone][INST_0][MESH_0][FLOW_SOL]->GetTurboVelocityOut(iZone, config[iZone]->GetnSpanWiseSections())[0];
2723-
flowAngleOut = atan(flowAngleOut)*180.0/PI_NUMBER;
2724-
cout << "Outlet flow angle for Row "<< iZone + 1<< ": "<< flowAngleOut <<"°." <<endl;
2711+
if (rank == MASTER_NODE && !dummy){
2712+
cout<<"Initialize inflow and outflow average solution quantities." << endl;
2713+
for(iZone = 0; iZone < nZone; iZone++) {
2714+
solver[iZone][INST_0][MESH_0][FLOW_SOL]->PreprocessAverage(solver[iZone][INST_0][MESH_0], geometry[iZone][INST_0][MESH_0],config[iZone],INFLOW);
2715+
solver[iZone][INST_0][MESH_0][FLOW_SOL]->PreprocessAverage(solver[iZone][INST_0][MESH_0], geometry[iZone][INST_0][MESH_0],config[iZone],OUTFLOW);
2716+
solver[iZone][INST_0][MESH_0][FLOW_SOL]->TurboAverageProcess(solver[iZone][INST_0][MESH_0], geometry[iZone][INST_0][MESH_0],config[iZone],INFLOW);
2717+
solver[iZone][INST_0][MESH_0][FLOW_SOL]->TurboAverageProcess(solver[iZone][INST_0][MESH_0], geometry[iZone][INST_0][MESH_0],config[iZone],OUTFLOW);
2718+
solver[iZone][INST_0][MESH_0][FLOW_SOL]->GatherInOutAverageValues(config[iZone], geometry[iZone][INST_0][MESH_0]);
2719+
if (rank == MASTER_NODE){
2720+
flowAngleIn = solver[iZone][INST_0][MESH_0][FLOW_SOL]->GetTurboVelocityIn(iZone, config[iZone]->GetnSpanWiseSections())[1];
2721+
flowAngleIn /= solver[iZone][INST_0][MESH_0][FLOW_SOL]->GetTurboVelocityIn(iZone, config[iZone]->GetnSpanWiseSections())[0];
2722+
flowAngleIn = atan(flowAngleIn)*180.0/PI_NUMBER;
2723+
cout << "Inlet flow angle for Row "<< iZone + 1<< ": "<< flowAngleIn <<"°." <<endl;
2724+
flowAngleOut = solver[iZone][INST_0][MESH_0][FLOW_SOL]->GetTurboVelocityOut(iZone, config[iZone]->GetnSpanWiseSections())[1];
2725+
flowAngleOut /= solver[iZone][INST_0][MESH_0][FLOW_SOL]->GetTurboVelocityOut(iZone, config[iZone]->GetnSpanWiseSections())[0];
2726+
flowAngleOut = atan(flowAngleOut)*180.0/PI_NUMBER;
2727+
cout << "Outlet flow angle for Row "<< iZone + 1<< ": "<< flowAngleOut <<"°." <<endl;
27252728

2729+
}
27262730
}
27272731
}
27282732
}

0 commit comments

Comments
 (0)