-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix for rotating frame sensitivities + add Tapenade checks (#121)
* first changes made * Updating the fork before jess-install * Only output from Rank0 * bug fix for COMPLEX makefile * Merged mdolab/adflow into default * Fwd() routine using master_d close * Fwd() routine using master_d close * Fwd() routine using master_d close * evalFunctionsSensFwd() now outputs in desires O.dict fmt * dMxdMach works. Still problems with FFD DVs * This is the working settings for dMx/dMach. The Fwd()-call n pyADflow.py is still hardcoded. This needs to be improved. * inviscidCentralFlux(), add to Makefile_tapenade * The dMx/dMach still works - but dMxdFFDpts have not been fixed all together. However, it seems from the older commits that these files we add in this commit are crucial. There are a few additions that should be located, but then it should (hopefully) work. Most likely, the error that remains to be fixed now is that some functions already in use are not differentiated correctly (just as in the previous case with inviscidcentralflux()). Hopefully a fix is coming up shortly. * Forward mode works for FFD and for Children. Bits and pieces have been hardcoded. Note; this commit will not work without the proper DVGeometry.py file from PyGeo... * Merged mdolab/adflow into default * normalvel_d seems to work. Still need slip() and grid(). * Now both normalvel() and gridvel() seems to work. We (hopefully) only need slipvel() and then we need to move them all to adjointextra_d.f90 * Now also slipvel() seems to work. Will now move them to adjointExtra.F90 * FWD() seems to give ok gradient, BWD is still off * cleaning * forward works, master_b close * Forward still good, Reverse still off. All _b files should however have been added. Weird * still trying to fix master_b. Master_d is still fine.... * master_d still works when removing changes made to bcroutines. Now the possible files containing the error for master_b has been narrowed down. * Master_b WORKS! for wind turbines * notes on how to do dot-tests added * added rot frame test - manual ref, to be retrained * updated ref for rot test * updated rot test input folder * finished pyADflow linting - new functs * missed linting * gridvelocitiesfine_block fixed * modified the make file * reset a deleted function that needds to be aded * fix function slipVelocitiesFineLevel_block * normalvelocities_block fixed * minor edits to remove inconstency * remove inconsistency of bcroutines * fix the inconsistency of residual * fix inconsistency of flowutils * more * add missing nes * fix indexing * comments cleanup in fortran code * added back addabsslice * moved Mads dev tips to documentation * removed unused functions from pyAdflow * turning on the complex rotating test * manual fix to the ref file - float to array * fixed aeroproblem definition * should have checked the whole file * added sens wrt mach * added mach to dv list * removed unused fast_b files and updated gitignore * renamed variable t to time * removed gammaInf from Makefile_tapenade * retrained tests (span func change) and added metadata * adding missing function geometry parameters for AD * add missing function derivative for initres and timestep_block, now FAD matches FD for pRpq for a rotating problem * pRpx achieves 1e-5 accuracy * fix missing reverse aded function * clean not used function * fixed API for totalSensitivityProd * re-trained rotating adjoint test * cleaned up debug lines * updated test - will it work? * tol adjustment - it's happening * added tapenade tests * added the shell script for tapenade tests * removed non-diferentiated TS routine * addressing Sabet's comments * cleaned up blockette.f90 * bump patch version * cleaned up BCroutines * removed low-speed preconditioner edits * fixed comments in outputMod * removing outdated documentation * retrained tests * forgot to update one value * replaced repeated code with single subroutine * differentiated new subroutine * removed commented code * removed unnecessary options from test + retrained metadata * updated options capitalization for all adjoint tests * attempting tigher tolerances for complex tests * Revert "attempting tigher tolerances for complex tests" This reverts commit c2e554f. * fixed autoEdit file to not convert unused files to fast_b * removed unused variable * typo * moved initres_block * moved initres_block again to fix diff * fixed spacing * fixed spacing forreal * moved initres_block back up because it is actually differentiated now * using MachCoeff for Cp normalization - should be equivalent to previous two approaches, I checked the cp curves again! * removed useless square root * Makefile tapenade: cleaned fluxes&viscousFlux * Makefile tapenade: cleaned flowUtils%computeSpeedOfSoundSquared * Makefile tapenade: cleaned various solverutils routines * Makefile tapenade: fixed solverutils routines * Makefile tapenade: removed timeref from solverutils routines * Makefile tapenade: removed pinf and rhoinf from solverutils routines * cleaned up comments in Cp calculation - outputMod.F90 * version bump * removed extra call to timeStep_block_d Co-authored-by: Sicheng He <[email protected]> Co-authored-by: Sicheng He <[email protected]>
- Loading branch information
1 parent
b3878fb
commit bb0b139
Showing
37 changed files
with
11,679 additions
and
3,415 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd src/adjoint | ||
make -f Makefile_tapenade ad_forward ad_reverse ad_reverse_fast |
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "2.7.2" | ||
__version__ = "2.7.3" | ||
|
||
from mpi4py import MPI | ||
|
||
|
This file contains 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 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 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 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 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 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
Oops, something went wrong.