Skip to content

Commit 4502861

Browse files
committed
fix tecplot writer
1 parent 9adacff commit 4502861

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

SU2_CFD/include/solvers/CFVMFlowSolverBase.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class CFVMFlowSolverBase : public CSolver {
180180
static constexpr bool ReducerStrategy = false;
181181
#endif
182182

183-
/*--- Edge fluxes, for OpenMP parallelization off difficult-to-color grids.
183+
/*--- Edge fluxes, for OpenMP parallelization of difficult-to-color grids.
184184
* We first store the fluxes and then compute the sum for each cell.
185185
* This strategy is thread-safe but lower performance than writting to both
186186
* end points of each edge, so we only use it when necessary, i.e. when the

SU2_CFD/src/output/filewriter/CTecplotBinaryFileWriter.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,13 @@ void CTecplotBinaryFileWriter::Write_Data(){
5555

5656
/*--- Reduce the total number of each element. ---*/
5757

58-
unsigned long nParallel_Line = dataSorter->GetnElem(LINE),
59-
nParallel_Tria = dataSorter->GetnElem(TRIANGLE),
58+
unsigned long nParallel_Tria = dataSorter->GetnElem(TRIANGLE),
6059
nParallel_Quad = dataSorter->GetnElem(QUADRILATERAL),
6160
nParallel_Tetr = dataSorter->GetnElem(TETRAHEDRON),
6261
nParallel_Hexa = dataSorter->GetnElem(HEXAHEDRON),
6362
nParallel_Pris = dataSorter->GetnElem(PRISM),
6463
nParallel_Pyra = dataSorter->GetnElem(PYRAMID);
65-
64+
6665
unsigned long nTot_Line = dataSorter->GetnElemGlobal(LINE),
6766
nTot_Tria = dataSorter->GetnElemGlobal(TRIANGLE),
6867
nTot_Quad = dataSorter->GetnElemGlobal(QUADRILATERAL),
@@ -135,6 +134,8 @@ void CTecplotBinaryFileWriter::Write_Data(){
135134

136135
#ifdef HAVE_MPI
137136

137+
unsigned long nParallel_Line = dataSorter->GetnElem(LINE);
138+
138139
unsigned short iVar;
139140
NodePartitioner node_partitioner(num_nodes, size);
140141
std::set<unsigned long> halo_nodes;

0 commit comments

Comments
 (0)