Skip to content

Commit 5b6a6b5

Browse files
committed
delete[] iVertex_to_iLocalVertex and wall-time output
1 parent 73cd955 commit 5b6a6b5

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

Common/src/interface_interpolation/CInterpolator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ void CInterpolator::ReconstructBoundary(unsigned long val_zone, int val_marker){
273273
}
274274
}
275275

276+
delete[] iVertex_to_iLocalVertex;
276277

277278

278279
/*--- Now these arrays of all processes must be joined to a single/global arrays. For this,

Common/src/interface_interpolation/CSlidingMesh.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,8 @@ int CSlidingMesh::Build_3D_surface_element(const unsigned long *map, const unsig
849849
int CSlidingMesh::Build_DualElement(const unsigned long *map, const unsigned long *startIndex,
850850
const unsigned long* nNeighbor, const su2double *coord,
851851
unsigned long centralNode, su2double** element){
852-
852+
//return Build_3D_surface_element(map, startIndex, nNeighbor,
853+
//coord, centralNode, element);
853854
/*--- Given a node "centralNode", this routines reconstruct the vertex centered surface quadrilateral element around the node and stores it into "element" ---*/
854855
/*--- Returns the number of points included in the element ---*/
855856

SU2_CFD/src/drivers/CDriver.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,10 @@ CDriver::CDriver(char* confFile, unsigned short val_nZone, SU2_Comm MPICommunica
246246
if ( nZone > 1 ) {
247247
if (rank == MASTER_NODE)
248248
cout << endl <<"------------------- Multizone Interface Preprocessing -------------------" << endl;
249-
249+
double stime = SU2_MPI::Wtime();
250250
Interface_Preprocessing(config_container, solver_container, geometry_container,
251251
interface_types, interface_container, interpolator_container);
252+
std::cout << "duration Interface_Preprocessing: " << stime << "..." << SU2_MPI::Wtime() <<" = "<<SU2_MPI::Wtime() - stime << " s\n";
252253
}
253254

254255
if(fsi && (config_container[ZONE_0]->GetRestart() || config_container[ZONE_0]->GetDiscrete_Adjoint())){
@@ -3018,7 +3019,9 @@ void CFluidDriver::Run() {
30183019
for (iZone = 0; iZone < nZone; iZone++) {
30193020
for (jZone = 0; jZone < nZone; jZone++)
30203021
if(jZone != iZone && interpolator_container[iZone][jZone] != nullptr)
3022+
{ double stime = SU2_MPI::Wtime();
30213023
interpolator_container[iZone][jZone]->SetTransferCoeff(config_container);
3024+
std::cout <<"duration SetTransferCoeff in CDriver.cpp: " << stime << "..." << SU2_MPI::Wtime()<<" = "<< SU2_MPI::Wtime()-stime <<" s\n"; }
30223025
}
30233026
}
30243027

SU2_CFD/src/drivers/CMultizoneDriver.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,10 @@ void CMultizoneDriver::Preprocess(unsigned long TimeIter) {
282282
for (iZone = 0; iZone < nZone; iZone++) {
283283
for (unsigned short jZone = 0; jZone < nZone; jZone++){
284284
if(jZone != iZone && interpolator_container[iZone][jZone] != nullptr && prefixed_motion[iZone])
285+
{ double stime = SU2_MPI::Wtime();
285286
interpolator_container[iZone][jZone]->SetTransferCoeff(config_container);
287+
std::cout <<"duration SetTransferCoeff in CMultizoneDriver.cpp: " << stime << "..." << SU2_MPI::Wtime()<<" = "<< SU2_MPI::Wtime()-stime <<" s\n"; }
288+
286289
}
287290
}
288291
}

0 commit comments

Comments
 (0)