Skip to content

Commit 202cc3c

Browse files
committed
include surface csv
1 parent ecfca08 commit 202cc3c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

SU2_CFD/src/output/COutput.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,13 @@ void COutput::WriteToFile(CConfig *config, CGeometry *geometry, OUTPUT_TYPE form
412412
if (!config->GetWrt_Surface_Overwrite())
413413
filename_iter = config->GetFilename_Iter(fileName, curInnerIter, curOuterIter);
414414

415+
/*--- If we have compact restarts, we use only the required fields. ---*/
416+
if (config->GetWrt_Restart_Compact() == true)
417+
surfaceDataSorter->SetRequiredFieldNames(requiredVolumeFieldNames);
418+
else
419+
surfaceDataSorter->SetRequiredFieldNames(surfaceDataSorter->GetFieldNames());
420+
421+
415422
surfaceDataSorter->SortConnectivity(config, geometry);
416423
surfaceDataSorter->SortOutputData();
417424

config_template.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ GRAVITY_FORCE= NO
6161
RESTART_SOL= NO
6262
%
6363
% Only save minimum required variables for restart to minimize the restart file size.
64-
WRT_RESTART_COMPACT= YES
64+
WRT_RESTART_COMPACT= NO
6565
%
6666
% Discard the data storaged in the solution and geometry files
6767
% e.g. AOA, dCL/dAoA, dCD/dCL, iter, etc.

0 commit comments

Comments
 (0)