-
Notifications
You must be signed in to change notification settings - Fork 918
Various fixes #798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Various fixes #798
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
423003d
Fixing config preprocessing output
talbring 51741ed
Added message after finishing meson configuration
talbring 4af087b
Added message after finishing meson configuration
talbring cfc8984
Fixing FFD box output
talbring 61bc0ec
Fixing sha tag check in init.py
talbring 492c800
fixing heat flux computation
talbring b3028e5
Merge branch 'develop' of github.com:su2code/SU2 into various_fixes
talbring 9577134
Delete duplicated solver call in discrete adjoint fluid iteration.
oleburghardt dd1c390
Merge branch 'develop' of https://github.com/su2code/SU2 into various…
oleburghardt f1c4ecf
Bugfix conjugate heat interface.
oleburghardt 38717ea
Move history output inside inner loop of disc adj multizone driver.
oleburghardt d5dd87b
Merge branch 'various_fixes' of github.com:su2code/SU2 into various_f…
talbring 0cdebc6
Fixing multizone output
talbring c5a6a8c
Adapting test case values after heatflux fix
talbring bf2f6ef
Change error msg if SU2 was compiled without tecio, but tecplot binar…
TobiKattmann 06de3d9
:memo: Add @talbring as a contributor
talbring b6c11d7
Merge branch 'various_fixes' of github.com:su2code/SU2 into various_f…
talbring 64cfef9
Fixing tecio error
talbring 79c6cc6
Reverting contributor stuff for now
talbring c9bc080
Set old adjoint solution for the multiphysics case to fix (inner) RMS…
oleburghardt 9a84680
Merge branch 'various_fixes' of github.com:su2code/SU2 into various_f…
talbring 7862624
Fix Automake makefile.
TobiKattmann cd3e7a2
disable aligned allocation on MAC
pcarruscag af52ffd
fix bug in allocation of inverse diagonal for ILU(k!=0)
pcarruscag 83dd6ad
Fixing transfer coefficient computation
talbring 1022820
Small fixes
talbring c3b357d
Merge branch 'various_fixes' of github.com:su2code/SU2 into various_f…
talbring f8fe2eb
Fixing tecplot binary output
talbring de9608a
Changed openmpi to mpich
talbring b2f2a8a
Update .travis.yml
talbring 0806153
Update .travis.yml
talbring accc59c
Update .travis.yml
talbring b1c2940
Update .travis.yml
talbring 382bac4
Update .travis.yml
talbring 403ff3a
Update .travis.yml
talbring 85009bd
Update .travis.yml
talbring 9335963
Reverting travis yml
talbring 4b14803
Little typo in output for Disc.Adj. BGS_ADJ[OINT]_DISSIPATION fixed. …
TobiKattmann c7c40da
merge options DEFORM_LINEAR_SOLVER_ITER and DEFORM_LINEAR_ITER in fav…
pcarruscag 9b2b221
Merge branch 'develop' into various_fixes
pcarruscag 010f135
remove duplicate option in cfg, change tutorials branch in travis
pcarruscag fd92e1a
fix compiler warnings in interpolation_structure.cpp
pcarruscag 1cbe242
Add nonphysical point output field
talbring 5f132b8
Improving names for new variables and routines for multiphysics discr…
oleburghardt cfac92f
Removing unnecessary if-case for OldSolution in discrete adjoint (mer…
oleburghardt fbdda81
Merge branch 'various_fixes' of https://github.com/su2code/SU2 into v…
oleburghardt ef13abb
Erase a trailing whitespace and remove few commented code lines.
TobiKattmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1996,8 +1996,6 @@ void CConfig::SetConfig_Options() { | |
| addBoolOption("DEFORM_CONSOLE_OUTPUT", Deform_Output, false); | ||
| /* DESCRIPTION: Number of nonlinear deformation iterations (surface deformation increments) */ | ||
| addUnsignedLongOption("DEFORM_NONLINEAR_ITER", GridDef_Nonlinear_Iter, 1); | ||
| /* DESCRIPTION: Number of smoothing iterations for FEA mesh deformation */ | ||
| addUnsignedLongOption("DEFORM_LINEAR_ITER", GridDef_Linear_Iter, 1000); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I got rid of this option in favor of the equivalent and more descriptive DEFORM_LINEAR_SOLVER_ITER |
||
| /* DESCRIPTION: Deform coefficient (-1.0 to 0.5) */ | ||
| addDoubleOption("DEFORM_COEFF", Deform_Coeff, 1E6); | ||
| /* DESCRIPTION: Deform limit in m or inches */ | ||
|
|
@@ -2895,7 +2893,7 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_ | |
| } | ||
|
|
||
| /*--- Set the default output files ---*/ | ||
| if (nVolumeOutputFiles == 0){ | ||
| if (!OptionIsSet("OUTPUT_FILES")){ | ||
| nVolumeOutputFiles = 3; | ||
| VolumeOutputFiles = new unsigned short[nVolumeOutputFiles]; | ||
| VolumeOutputFiles[0] = RESTART_BINARY; | ||
|
|
@@ -2916,12 +2914,14 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_ | |
| SU2_MPI::Error("A turbulence model must be specified with KIND_TURB_MODEL if SOLVER= INC_RANS", CURRENT_FUNCTION); | ||
| } | ||
|
|
||
| //#ifndef HAVE_TECIO | ||
| // if (Output_FileFormat == TECPLOT_BINARY) { | ||
| // cout << "Tecplot binary file requested but SU2 was built without TecIO support." << "\n"; | ||
| // Output_FileFormat = TECPLOT; | ||
| // } | ||
| //#endif | ||
| #ifndef HAVE_TECIO | ||
| for (unsigned short iVolumeFile = 0; iVolumeFile < nVolumeOutputFiles; iVolumeFile++){ | ||
| if (VolumeOutputFiles[iVolumeFile] == TECPLOT_BINARY || | ||
| VolumeOutputFiles[iVolumeFile] == SURFACE_TECPLOT_BINARY) { | ||
| SU2_MPI::Error(string("Tecplot binary file requested in option OUTPUT_FILES but SU2 was built without TecIO support.\n"), CURRENT_FUNCTION); | ||
| } | ||
| } | ||
| #endif | ||
|
|
||
| /*--- Set the boolean Wall_Functions equal to true if there is a | ||
| definition for the wall founctions ---*/ | ||
|
|
@@ -6243,8 +6243,15 @@ void CConfig::SetOutput(unsigned short val_software, unsigned short val_izone) { | |
| cout << endl <<"------------------ Convergence Criteria ( Zone " << iZone << " ) ---------------------" << endl; | ||
|
|
||
| cout << "Maximum number of solver subiterations: " << nInnerIter <<"."<< endl; | ||
| cout << "Maximum number of physical time-steps: " << nTimeIter <<"."<< endl; | ||
| if (Multizone_Problem) | ||
| cout << "Maximum number of solver outer iterations: " << nOuterIter <<"."<< endl; | ||
| if (Time_Domain) | ||
| cout << "Maximum number of physical time-steps: " << nTimeIter <<"."<< endl; | ||
|
|
||
| cout << "Begin convergence monitoring at iteration " << StartConv_Iter << "." << endl; | ||
| cout << "Residual minimum value: 1e" << MinLogResidual << "." << endl; | ||
| cout << "Cauchy series min. value: " << Cauchy_Eps << "." << endl; | ||
| cout << "Number of Cauchy elements: " << Cauchy_Elems << "." << endl; | ||
| } | ||
|
|
||
| if (val_software == SU2_MSH) { | ||
|
|
@@ -6282,18 +6289,25 @@ void CConfig::SetOutput(unsigned short val_software, unsigned short val_izone) { | |
|
|
||
| if (val_software == SU2_CFD) { | ||
|
|
||
| cout << "Writing a solution file every " << Wrt_Sol_Freq <<" iterations."<< endl; | ||
| cout << "Writing the convergence history every " << Wrt_Con_Freq <<" iterations."<< endl; | ||
| if ((TimeMarching == DT_STEPPING_1ST) || (TimeMarching == DT_STEPPING_2ND)) { | ||
| cout << "Writing the dual time flow solution every " << Wrt_Sol_Freq_DualTime <<" iterations."<< endl; | ||
| cout << "Writing the dual time convergence history every " << Wrt_Con_Freq_DualTime <<" iterations."<< endl; | ||
| cout << "Writing solution files every " << VolumeWrtFreq <<" iterations."<< endl; | ||
| cout << "Writing the convergence history file every " << HistoryWrtFreq[2] <<" inner iterations."<< endl; | ||
| if (Multizone_Problem){ | ||
| cout << "Writing the convergence history file every " << HistoryWrtFreq[1] <<" outer iterations."<< endl; | ||
| } | ||
| if (Time_Domain) { | ||
| cout << "Writing the convergence history file every " << HistoryWrtFreq[0] <<" time iterations."<< endl; | ||
| } | ||
| cout << "Writing the screen convergence history every " << ScreenWrtFreq[2] <<" inner iterations."<< endl; | ||
| if (Multizone_Problem){ | ||
| cout << "Writing the screen convergence history every " << ScreenWrtFreq[1] <<" outer iterations."<< endl; | ||
| } | ||
| if (Time_Domain) { | ||
| cout << "Writing the screen convergence history every " << ScreenWrtFreq[0] <<" time iterations."<< endl; | ||
| } | ||
|
|
||
| switch (Tab_FileFormat) { | ||
| case PARAVIEW: cout << "The output file format is Paraview ASCII legacy (.vtk)." << endl; break; | ||
| case PARAVIEW_BINARY: cout << "The output file format is Paraview binary legacy (.vtk)." << endl; break; | ||
| case TECPLOT: cout << "The output file format is Tecplot ASCII (.dat)." << endl; break; | ||
| case TECPLOT_BINARY: cout << "The output file format is Tecplot binary (.plt)." << endl; break; | ||
| case TAB_CSV: cout << "The tabular file format is CSV (.csv)." << endl; break; | ||
| case TAB_TECPLOT: cout << "The tabular file format is Tecplot (.dat)." << endl; break; | ||
| } | ||
|
|
||
| cout << "Convergence history file name: " << Conv_FileName << "." << endl; | ||
|
|
@@ -6302,7 +6316,7 @@ void CConfig::SetOutput(unsigned short val_software, unsigned short val_izone) { | |
|
|
||
|
|
||
| if (!ContinuousAdjoint && !DiscreteAdjoint) { | ||
| cout << "Surface coefficients file name: " << SurfCoeff_FileName << "." << endl; | ||
| cout << "Surface file name: " << SurfCoeff_FileName << "." << endl; | ||
| cout << "Volume file name: " << Volume_FileName << "." << endl; | ||
| cout << "Restart file name: " << Restart_FileName << "." << endl; | ||
| } | ||
|
|
@@ -6311,17 +6325,15 @@ void CConfig::SetOutput(unsigned short val_software, unsigned short val_izone) { | |
| cout << "Adjoint solution file name: " << Solution_AdjFileName << "." << endl; | ||
| cout << "Restart adjoint file name: " << Restart_AdjFileName << "." << endl; | ||
| cout << "Adjoint variables file name: " << Adj_FileName << "." << endl; | ||
| cout << "Surface adjoint coefficients file name: " << SurfAdjCoeff_FileName << "." << endl; | ||
| cout << "Surface adjoint file name: " << SurfAdjCoeff_FileName << "." << endl; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| if (val_software == SU2_SOL) { | ||
| switch (Tab_FileFormat) { | ||
| case PARAVIEW: cout << "The output file format is Paraview ASCII legacy (.vtk)." << endl; break; | ||
| case PARAVIEW_BINARY: cout << "The output file format is Paraview binary legacy (.vtk)." << endl; break; | ||
| case TECPLOT: cout << "The output file format is Tecplot ASCII (.dat)." << endl; break; | ||
| case TECPLOT_BINARY: cout << "The output file format is Tecplot binary (.plt)." << endl; break; | ||
| case TAB_CSV: cout << "The tabular file format is CSV (.csv)." << endl; break; | ||
| case TAB_TECPLOT: cout << "The tabular file format is Tecplot (.dat)." << endl; break; | ||
| } | ||
| cout << "Flow variables file name: " << Volume_FileName << "." << endl; | ||
| } | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addresses the problem reported by @economon in #753
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now build on Mac, but I now see issues with the assert() calls on the first access of one of these containers at the start of the solver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@economon I need more details, I do not have a Mac to go test this myself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's what I am seeing in Xcode (trace on left and assertion failure at bottom). Just let me know what else I can provide to help with this...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Humm, is this after you updated #790? (I think I recognise the function name) If so that probably means the data is not being allocated. Push your changes and I can have a look directly in #790.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do note that asserts are disabled when building with ninja unless
buildtype=debug.You may want to define NDEBUG for your optimized builds in Xcode as the cost of those checks is not negligible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted. I typically only build in serial debug mode in Xcode and keep a separate build at the command line in release mode w/ MPI, but I can add flags for this.
Btw, I also noticed that the new C2DContainer class has the assignment operator overloaded to perform a deep copy. Is it possible to do a shallow copy, i.e., just set the pointer of an existing initialized container to an existing one without allocating memory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With what is implemented it is not possible. If the objective is avoiding the double allocation of gradients, I would suggest using a VectorOfMatrix& that is set to primitive gradient when no allocation is needed, otherwise a different VectorOfMatrix object is resized and the the reference is set to that instead. This way there are no ownership problems (who frees the pointer and so on). References need an initializer but that can be either of the other containers.
If it's for a different purpose I can think of something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aok, let me give that a try (yes it is for the gradients). #790 is looking good after merging everything, will be pushing the cleaned version shortly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the choice of initializer does affect the solution, btw. Looks like the reconstruction gradient vector should use the auxiliary vector's initializer for correctness...