Skip to content

Commit 392e9f3

Browse files
committed
Merge branch 'develop'
2 parents a5d9682 + 334d2be commit 392e9f3

File tree

312 files changed

+23647
-10866
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

312 files changed

+23647
-10866
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ env:
2626
- CONFIGURE_COMMAND="./preconfigure.py --enable-mpi --with-cc=mpicc --with-cxx=mpicxx --prefix=$TRAVIS_BUILD_DIR"
2727
TEST_SCRIPT=parallel_regression.py
2828
# Serial build and test for AD
29-
- CONFIGURE_COMMAND="./preconfigure.py --prefix=$TRAVIS_BUILD_DIR --enable-autodiff"
29+
- CONFIGURE_COMMAND="./preconfigure.py --prefix=$TRAVIS_BUILD_DIR --enable-autodiff --enable-direct-diff"
3030
TEST_SCRIPT=serial_regression_AD.py
3131
# Parallel build and test for AD
32-
- CONFIGURE_COMMAND="./preconfigure.py --enable-mpi --with-cc=mpicc --with-cxx=mpicxx --prefix=$TRAVIS_BUILD_DIR --enable-autodiff"
32+
- CONFIGURE_COMMAND="./preconfigure.py --enable-mpi --with-cc=mpicc --with-cxx=mpicxx --prefix=$TRAVIS_BUILD_DIR --enable-autodiff --enable-direct-diff"
3333
TEST_SCRIPT=parallel_regression_AD.py
3434

3535

3636

3737
before_install:
3838
# install the necessary packages
3939
- sudo apt-get update -qq
40-
- sudo apt-get install -qq python-numpy mpich2
40+
- sudo apt-get install -qq python-numpy python-scipy mpich2
4141

4242
install:
4343
- echo $TRAVIS_BUILD_DIR

Common/doc/docmain.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file docmain.hpp
33
* \brief This file contains documentation for Doxygen and does not have any significance with respect to C++.
44
* \author F. Palacios
5-
* \version 4.1.0 "Cardinal"
5+
* \version 4.1.1 "Cardinal"
66
*
77
* SU2 Lead Developers: Dr. Francisco Palacios ([email protected]).
88
* Dr. Thomas D. Economon ([email protected]).
@@ -13,7 +13,7 @@
1313
* Prof. Alberto Guardone's group at Polytechnic University of Milan.
1414
* Prof. Rafael Palacios' group at Imperial College London.
1515
*
16-
* Copyright (C) 2012-2015 SU2, the open-source CFD code.
16+
* Copyright (C) 2012-2016 SU2, the open-source CFD code.
1717
*
1818
* SU2 is free software; you can redistribute it and/or
1919
* modify it under the terms of the GNU Lesser General Public

Common/include/config_structure.hpp

Lines changed: 242 additions & 25 deletions
Large diffs are not rendered by default.

Common/include/config_structure.inl

Lines changed: 63 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file config_structure.inl
33
* \brief In-Line subroutines of the <i>config_structure.hpp</i> file.
44
* \author F. Palacios, T. Economon
5-
* \version 4.1.0 "Cardinal"
5+
* \version 4.1.1 "Cardinal"
66
*
77
* SU2 Lead Developers: Dr. Francisco Palacios ([email protected]).
88
* Dr. Thomas D. Economon ([email protected]).
@@ -13,7 +13,7 @@
1313
* Prof. Alberto Guardone's group at Polytechnic University of Milan.
1414
* Prof. Rafael Palacios' group at Imperial College London.
1515
*
16-
* Copyright (C) 2012-2015 SU2, the open-source CFD code.
16+
* Copyright (C) 2012-2016 SU2, the open-source CFD code.
1717
*
1818
* SU2 is free software; you can redistribute it and/or
1919
* modify it under the terms of the GNU Lesser General Public
@@ -59,7 +59,7 @@ inline unsigned short CConfig::GetRef_NonDim(void) { return Ref_NonDim; }
5959

6060
inline void CConfig::SetKind_SU2(unsigned short val_kind_su2) { Kind_SU2 = val_kind_su2 ; }
6161

62-
inline bool CConfig::GetAdjoint(void) { return Adjoint; }
62+
inline bool CConfig::GetContinuous_Adjoint(void) { return ContinuousAdjoint; }
6363

6464
inline bool CConfig::GetViscous(void) { return Viscous; }
6565

@@ -71,18 +71,26 @@ inline su2double CConfig::GetTimeSpectral_Period(void) { return TimeSpectral_Per
7171

7272
inline void CConfig::SetExtIter(unsigned long val_iter) { ExtIter = val_iter; }
7373

74+
inline void CConfig::SetFSIIter(unsigned long val_iter) { FSIIter = val_iter; }
75+
7476
inline void CConfig::SetIntIter(unsigned long val_iter) { IntIter = val_iter; }
7577

7678
inline unsigned long CConfig::GetExtIter(void) { return ExtIter; }
7779

80+
inline unsigned long CConfig::GetFSIIter(void) { return FSIIter; }
81+
7882
inline unsigned long CConfig::GetIntIter(void) { return IntIter; }
7983

8084
inline unsigned long CConfig::GetUnst_nIntIter(void) { return Unst_nIntIter; }
8185

86+
inline unsigned long CConfig::GetDyn_nIntIter(void) { return Dyn_nIntIter; }
87+
8288
inline long CConfig::GetUnst_RestartIter(void) { return Unst_RestartIter; }
8389

8490
inline long CConfig::GetUnst_AdjointIter(void) { return Unst_AdjointIter; }
8591

92+
inline long CConfig::GetDyn_RestartIter(void) { return Dyn_RestartIter; }
93+
8694
inline string CConfig::GetPlaneTag(unsigned short index) { return PlaneTag[index]; }
8795

8896
inline su2double CConfig::GetEA_IntLimit(unsigned short index) { return EA_IntLimit[index]; }
@@ -123,12 +131,21 @@ inline su2double CConfig::GetThermalDiffusivity(void) { return Thermal_Diffusivi
123131

124132
inline su2double CConfig::GetElasticyMod(void) { return ElasticyMod; }
125133

134+
inline su2double CConfig::GetBulk_Modulus_Struct(void) { return Bulk_Modulus_Struct; }
135+
126136
inline unsigned short CConfig::GetElas2D_Formulation(void) { return Kind_2DElasForm; }
127137

128138
inline su2double CConfig::GetPoissonRatio(void) { return PoissonRatio; }
129139

140+
130141
inline su2double CConfig::GetMaterialDensity(void) { return MaterialDensity; }
131142

143+
inline unsigned short CConfig::GetMaterialCompressibility(void) { return Kind_Material_Compress; }
144+
145+
inline unsigned short CConfig::GetMaterialModel(void) { return Kind_Material; }
146+
147+
inline unsigned short CConfig::GetGeometricConditions(void) { return Kind_Struct_Solver; }
148+
132149
inline su2double CConfig::GetRefLengthMoment(void) { return RefLengthMoment; }
133150

134151
inline su2double CConfig::GetRefElemLength(void) { return RefElemLength; }
@@ -392,6 +409,8 @@ inline string CConfig::GetTagFFDBox(unsigned short val_ffd) { return TagFFDBox[v
392409

393410
inline unsigned short CConfig::GetnDV(void) { return nDV; }
394411

412+
inline unsigned short CConfig::GetnDV_Value(unsigned short iDV) { return nDV_Value[iDV]; }
413+
395414
inline unsigned short CConfig::GetnFFDBox(void) { return nFFDBox; }
396415

397416
inline unsigned short CConfig::GetFFD_Continuity(void) { return FFD_Continuity; }
@@ -631,6 +650,10 @@ inline unsigned short CConfig::GetKind_TimeIntScheme_Poisson(void) { return Kind
631650

632651
inline unsigned short CConfig::GetKind_TimeIntScheme_FEA(void) { return Kind_TimeIntScheme_FEA; }
633652

653+
inline unsigned short CConfig::GetKind_SpaceIteScheme_FEA(void) { return Kind_SpaceIteScheme_FEA; }
654+
655+
inline unsigned short CConfig::GetKind_TransferMethod(void) { return Kind_TransferMethod; }
656+
634657
inline unsigned short CConfig::GetKind_ConvNumScheme_Flow(void) { return Kind_ConvNumScheme_Flow; }
635658

636659
inline unsigned short CConfig::GetKind_ConvNumScheme_AdjLevelSet(void) { return Kind_ConvNumScheme_AdjLevelSet; }
@@ -857,6 +880,8 @@ inline string CConfig::GetSolution_FlowFileName(void) { return Solution_FlowFile
857880

858881
inline string CConfig::GetSolution_AdjFileName(void) { return Solution_AdjFileName; }
859882

883+
inline string CConfig::GetSolution_FEMFileName(void) { return Solution_FEMFileName; }
884+
860885
inline string CConfig::GetFlow_FileName(void) { return Flow_FileName; }
861886

862887
inline string CConfig::GetStructure_FileName(void) { return Structure_FileName; }
@@ -881,6 +906,8 @@ inline string CConfig::GetRestart_HeatFileName(void) { return Restart_HeatFileNa
881906

882907
inline string CConfig::GetRestart_AdjFileName(void) { return Restart_AdjFileName; }
883908

909+
inline string CConfig::GetRestart_FEMFileName(void) { return Restart_FEMFileName; }
910+
884911
inline string CConfig::GetAdj_FileName(void) { return Adj_FileName; }
885912

886913
inline string CConfig::GetObjFunc_Grad_FileName(void) { return ObjFunc_Grad_FileName; }
@@ -917,9 +944,9 @@ inline su2double CConfig::GetTotal_UnstTime(void) { return Total_UnstTime; }
917944

918945
inline bool CConfig::GetEngine_Intake(void) { return Engine_Intake; }
919946

920-
inline su2double CConfig::GetDV_Value(unsigned short val_dv) { return DV_Value[val_dv]; }
947+
inline su2double CConfig::GetDV_Value(unsigned short val_dv, unsigned short val_value) { return DV_Value[val_dv][val_value]; }
921948

922-
inline void CConfig::SetDV_Value(unsigned short val_dv, su2double val) { DV_Value[val_dv] = val; }
949+
inline void CConfig::SetDV_Value(unsigned short val_dv, unsigned short val_ind, su2double val) { DV_Value[val_dv][val_ind] = val; }
923950

924951
inline su2double CConfig::GetOrderMagResidual(void) { return OrderMagResidual; }
925952

@@ -1111,8 +1138,14 @@ inline su2double CConfig::GetAitkenStatRelax(void) { return AitkenStatRelax; }
11111138

11121139
inline su2double CConfig::GetAitkenDynMaxInit(void) { return AitkenDynMaxInit; }
11131140

1141+
inline su2double CConfig::GetAitkenDynMinInit(void) { return AitkenDynMinInit; }
1142+
11141143
inline bool CConfig::GetDeadLoad(void) { return DeadLoad; }
11151144

1145+
inline bool CConfig::GetMatchingMesh(void) { return MatchingMesh; }
1146+
1147+
inline bool CConfig::GetSteadyRestart(void) { return SteadyRestart; }
1148+
11161149
inline unsigned short CConfig::GetDynamic_Analysis(void) { return Dynamic_Analysis; }
11171150

11181151
inline su2double CConfig::GetDelta_DynTime(void) { return Delta_DynTime; }
@@ -1127,24 +1160,48 @@ inline su2double CConfig::GetNewmark_alpha(void) { return Newmark_alpha; }
11271160

11281161
inline su2double CConfig::GetNewmark_delta(void) { return Newmark_delta; }
11291162

1130-
inline bool CConfig::GetGradual_Load(void) { return Gradual_Load; }
1163+
inline unsigned short CConfig::GetnIntCoeffs(void) { return nIntCoeffs; }
1164+
1165+
inline su2double CConfig::Get_Int_Coeffs(unsigned short val_coeff) { return Int_Coeffs[val_coeff]; }
1166+
1167+
inline bool CConfig::GetSigmoid_Load(void) { return Sigmoid_Load; }
11311168

11321169
inline bool CConfig::GetRamp_Load(void) { return Ramp_Load; }
11331170

11341171
inline su2double CConfig::GetRamp_Time(void) { return Ramp_Time; }
11351172

1173+
inline su2double CConfig::GetSigmoid_Time(void) { return Sigmoid_Time; }
1174+
1175+
inline su2double CConfig::GetSigmoid_K(void) { return Sigmoid_K; }
1176+
11361177
inline su2double CConfig::GetStatic_Time(void) { return Static_Time; }
11371178

11381179
inline unsigned short CConfig::GetPredictorOrder(void) { return Pred_Order; }
11391180

1181+
inline bool CConfig::GetIncrementalLoad(void) { return IncrementalLoad; }
1182+
1183+
inline unsigned long CConfig::GetNumberIncrements(void) { return IncLoad_Nincrements; }
1184+
1185+
inline su2double CConfig::GetIncLoad_Criteria(unsigned short val_var) { return IncLoad_Criteria[val_var]; }
1186+
11401187
inline bool CConfig::GetFSI_Simulation(void) { return FSI_Problem; }
11411188

1189+
inline unsigned short CConfig::GetKindInterpolation(void) { return Kind_Interpolation; }
1190+
11421191
inline unsigned short CConfig::GetRelaxation_Method_FSI(void) { return Kind_BGS_RelaxMethod; }
11431192

11441193
inline su2double CConfig::GetOrderMagResidualFSI(void) { return OrderMagResidualFSI; }
11451194

11461195
inline su2double CConfig::GetMinLogResidualFSI(void) { return MinLogResidualFSI; }
11471196

1197+
inline su2double CConfig::GetResidual_FEM_UTOL(void) { return Res_FEM_UTOL; }
1198+
1199+
inline su2double CConfig::GetResidual_FEM_RTOL(void) { return Res_FEM_RTOL; }
1200+
1201+
inline su2double CConfig::GetResidual_FEM_ETOL(void) { return Res_FEM_ETOL; }
1202+
11481203
inline unsigned short CConfig::GetDirectDiff(){ return DirectDiff;}
11491204

11501205
inline bool CConfig::GetDiscrete_Adjoint() {return DiscreteAdjoint;}
1206+
1207+
inline bool CConfig::GetAD_Mode(void) {return AD_Mode;}

Common/include/datatype_structure.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* \brief Headers for generalized datatypes.
44
* The subroutines and functions are in the <i>datatype_structure.cpp</i> file.
55
* \author T. Albring
6-
* \version 4.1.0 "Cardinal"
6+
* \version 4.1.1 "Cardinal"
77
*
88
* SU2 Lead Developers: Dr. Francisco Palacios ([email protected]).
99
* Dr. Thomas D. Economon ([email protected]).
@@ -14,7 +14,7 @@
1414
* Prof. Alberto Guardone's group at Polytechnic University of Milan.
1515
* Prof. Rafael Palacios' group at Imperial College London.
1616
*
17-
* Copyright (C) 2012-2015 SU2, the open-source CFD code.
17+
* Copyright (C) 2012-2016 SU2, the open-source CFD code.
1818
*
1919
* SU2 is free software; you can redistribute it and/or
2020
* modify it under the terms of the GNU Lesser General Public
@@ -64,7 +64,7 @@ typedef double passivedouble;
6464
* \brief Namespace for defining the datatype wrapper routines; this class features as a base class for
6565
* type interfaces for non-primitive dataypes e.g. used by AD, complex etc.
6666
* \author T. Albring
67-
* \version 4.1.0 "Cardinal"
67+
* \version 4.1.1 "Cardinal"
6868
*/
6969
namespace SU2_TYPE{
7070
/*!

Common/include/datatype_structure.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file datatype_structure.inl
33
* \brief In-Line subroutines of the <i>datatype_structure.hpp</i> file.
44
* \author T. Albring
5-
* \version 4.1.0 "Cardinal"
5+
* \version 4.1.1 "Cardinal"
66
*
77
* SU2 Lead Developers: Dr. Francisco Palacios ([email protected]).
88
* Dr. Thomas D. Economon ([email protected]).
@@ -13,7 +13,7 @@
1313
* Prof. Alberto Guardone's group at Polytechnic University of Milan.
1414
* Prof. Rafael Palacios' group at Imperial College London.
1515
*
16-
* Copyright (C) 2012-2015 SU2, the open-source CFD code.
16+
* Copyright (C) 2012-2016 SU2, the open-source CFD code.
1717
*
1818
* SU2 is free software; you can redistribute it and/or
1919
* modify it under the terms of the GNU Lesser General Public

Common/include/datatypes/codi_forward_structure.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file codi_forward_structure.hpp
33
* \brief Header for codi forward type definition.
44
* \author T. Albring
5-
* \version 4.1.0 "Cardinal"
5+
* \version 4.1.1 "Cardinal"
66
*
77
* SU2 Lead Developers: Dr. Francisco Palacios ([email protected]).
88
* Dr. Thomas D. Economon ([email protected]).
@@ -13,7 +13,7 @@
1313
* Prof. Alberto Guardone's group at Polytechnic University of Milan.
1414
* Prof. Rafael Palacios' group at Imperial College London.
1515
*
16-
* Copyright (C) 2012-2015 SU2, the open-source CFD code.
16+
* Copyright (C) 2012-2016 SU2, the open-source CFD code.
1717
*
1818
* SU2 is free software; you can redistribute it and/or
1919
* modify it under the terms of the GNU Lesser General Public

Common/include/datatypes/codi_forward_structure.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file codi_forward_structure.inl
33
* \brief Inline subroutines for <i>codi_forward_structure.hpp<i>.
44
* \author T. Albring
5-
* \version 4.1.0 "Cardinal"
5+
* \version 4.1.1 "Cardinal"
66
*
77
* SU2 Lead Developers: Dr. Francisco Palacios ([email protected]).
88
* Dr. Thomas D. Economon ([email protected]).
@@ -13,7 +13,7 @@
1313
* Prof. Alberto Guardone's group at Polytechnic University of Milan.
1414
* Prof. Rafael Palacios' group at Imperial College London.
1515
*
16-
* Copyright (C) 2012-2015 SU2, the open-source CFD code.
16+
* Copyright (C) 2012-2016 SU2, the open-source CFD code.
1717
*
1818
* SU2 is free software; you can redistribute it and/or
1919
* modify it under the terms of the GNU Lesser General Public

Common/include/datatypes/codi_reverse_structure.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file codi_reverse_structure.hpp
33
* \brief Header for codi reverse type definition.
44
* \author T. Albring
5-
* \version 4.1.0 "Cardinal"
5+
* \version 4.1.1 "Cardinal"
66
*
77
* SU2 Lead Developers: Dr. Francisco Palacios ([email protected]).
88
* Dr. Thomas D. Economon ([email protected]).
@@ -13,7 +13,7 @@
1313
* Prof. Alberto Guardone's group at Polytechnic University of Milan.
1414
* Prof. Rafael Palacios' group at Imperial College London.
1515
*
16-
* Copyright (C) 2012-2015 SU2, the open-source CFD code.
16+
* Copyright (C) 2012-2016 SU2, the open-source CFD code.
1717
*
1818
* SU2 is free software; you can redistribute it and/or
1919
* modify it under the terms of the GNU Lesser General Public

Common/include/datatypes/codi_reverse_structure.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* \file codi_reverse_structure.inl
33
* \brief Inline subroutines for <i>datatype_structure.hpp<i>.
44
* \author T. Albring
5-
* \version 4.1.0 "Cardinal"
5+
* \version 4.1.1 "Cardinal"
66
*
77
* SU2 Lead Developers: Dr. Francisco Palacios ([email protected]).
88
* Dr. Thomas D. Economon ([email protected]).
@@ -13,7 +13,7 @@
1313
* Prof. Alberto Guardone's group at Polytechnic University of Milan.
1414
* Prof. Rafael Palacios' group at Imperial College London.
1515
*
16-
* Copyright (C) 2012-2015 SU2, the open-source CFD code.
16+
* Copyright (C) 2012-2016 SU2, the open-source CFD code.
1717
*
1818
* SU2 is free software; you can redistribute it and/or
1919
* modify it under the terms of the GNU Lesser General Public

0 commit comments

Comments
 (0)