Skip to content

Commit 1ea8b02

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into custom_objective_function
2 parents 30f0b2e + 85b2b12 commit 1ea8b02

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Common/src/geometry/meshreader/CCGNSMeshReaderFVM.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ void CCGNSMeshReaderFVM::OpenCGNSFile(string val_filename) {
8989
/*--- Check whether the supplied file is truly a CGNS file. ---*/
9090

9191
int file_type;
92+
float file_version;
9293
if (cg_is_cgns(val_filename.c_str(), &file_type) != CG_OK) {
9394
SU2_MPI::Error(val_filename +
9495
string(" was not found or is not a properly formatted") +
@@ -107,7 +108,13 @@ void CCGNSMeshReaderFVM::OpenCGNSFile(string val_filename) {
107108
cout << "Reading the CGNS file: ";
108109
cout << val_filename.c_str() << "." << endl;
109110
}
110-
111+
if (cg_version(cgnsFileID, &file_version))
112+
cg_error_exit();
113+
if (rank == MASTER_NODE) {
114+
if (file_version < 4.0) {
115+
cout << "WARNING: The CGNS file version (" << file_version << ") is old and may cause high memory usage issues, consider updating the file with the cgnsupdate tool.\n";
116+
}
117+
}
111118
}
112119

113120
void CCGNSMeshReaderFVM::ReadCGNSDatabaseMetadata() {

SU2_CFD/src/numerics/NEMO/CNEMONumerics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ CNEMONumerics::CNEMONumerics(unsigned short val_nDim, unsigned short val_nVar,
5353
EDDY_VISC_INDEX = nSpecies+nDim+9;
5454

5555
/*--- Read from CConfig ---*/
56-
implicit = (config->GetKind_TimeIntScheme() == EULER_IMPLICIT);
56+
implicit = (config->GetKind_TimeIntScheme_Flow() == EULER_IMPLICIT);
5757

5858
ionization = config->GetIonization();
5959
if (ionization) { nHeavy = nSpecies-1; nEl = 1; }

0 commit comments

Comments
 (0)