Skip to content

Commit e50bd9a

Browse files
committed
fixes for simple Elasticity + Heat
1 parent 4d8def0 commit e50bd9a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

SU2_CFD/src/iteration/CDiscAdjFEAIteration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ void CDiscAdjFEAIteration::SetDependencies(CSolver***** solver, CGeometry**** ge
296296
auto structural_numerics = numerics[iZone][iInst][MESH_0][FEA_SOL];
297297

298298
/*--- Some numerics are only instanciated under these conditions ---*/
299-
bool fsi = config[iZone]->GetFSI_Simulation();
299+
bool fsi = config[iZone]->GetFSI_Simulation() || config[iZone]->GetMultizone_Problem();
300300
bool nonlinear = config[iZone]->GetGeometricConditions() == LARGE_DEFORMATIONS;
301301
bool de_effects = config[iZone]->GetDE_Effects() && nonlinear;
302302
bool element_based = dir_solver->IsElementBased() && nonlinear;

SU2_CFD/src/variables/CFEAVariable.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* SU2 Project Website: https://su2code.github.io
88
*
9-
* The SU2 Project is maintained by the SU2 Foundation
9+
* The SU2 Project is maintained by the SU2 Foundation
1010
* (http://su2foundation.org)
1111
*
1212
* Copyright 2012-2020, SU2 Contributors (cf. AUTHORS.md)
@@ -39,7 +39,8 @@ CFEAVariable::CFEAVariable(const su2double *val_fea, unsigned long npoint, unsig
3939
bool discrete_adjoint = config->GetDiscrete_Adjoint();
4040
bool refgeom = config->GetRefGeom(); // Reference geometry needs to be stored
4141
bool dynamic_analysis = config->GetTime_Domain();
42-
bool fsi_analysis = config->GetFSI_Simulation();
42+
bool multizone = config->GetMultizone_Problem();
43+
bool fsi_analysis = config->GetFSI_Simulation() || multizone;
4344

4445
VonMises_Stress.resize(nPoint) = su2double(0.0);
4546

@@ -85,8 +86,7 @@ CFEAVariable::CFEAVariable(const su2double *val_fea, unsigned long npoint, unsig
8586

8687
if (prestretch_fem) Prestretch.resize(nPoint,nVar);
8788

88-
if (config->GetMultizone_Problem())
89-
Set_BGSSolution_k();
89+
if (multizone) Set_BGSSolution_k();
9090
}
9191

9292
void CFEAVariable::SetSolution_Vel_time_n() { Solution_Vel_time_n = Solution_Vel; }

0 commit comments

Comments
 (0)