-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Add Fortran elastic-tube-1d solvers #606
Merged
Merged
Conversation
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
3 tasks
…nsistent precision
68d9d0f
to
54b8cfa
Compare
MakisH
reviewed
Jan 29, 2025
Co-authored-by: Gerasimos Chourdakis <gerasimos.chourdakis@ipvs.uni-stuttgart.de>
MakisH
approved these changes
Jan 29, 2025
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.
Another very nice contribution, similarly to #607. Thank you, @YonatanGM!
I compared the directories for the implementation with and without the module, all look good.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds Fortran solvers for elastic-tube-1d case using the Fortran bindings (not the Fortran module). I opened another PR #607 with the module approach if you prefer that
The solvers follow the same project structure as the other solvers. LAPACK is needed for the fluid solver (same as the C++ case). Run ./run.sh to compile and execute the solvers via CMake. The plotting scripts (plot-diameter.sh and plot-all.sh) are updated to show results for the Fortran case. The precommit yaml didnt have hooks for Fortran files, so I maunally formatted them using fprettify.
Results look consistent with the other solvers. I checked the VTK output, and the numbers match up to 5 decimal places on the last timestep. Also tested running the fortran case against the other solves and that seems to work fine too.
Results:
![tutorials-elastic-tube-1d-all](https://private-user-images.githubusercontent.com/24637004/401213297-4aef4765-478c-46c6-973a-dbbfa364c15c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTY0NzYsIm5iZiI6MTczOTE5NjE3NiwicGF0aCI6Ii8yNDYzNzAwNC80MDEyMTMyOTctNGFlZjQ3NjUtNDc4Yy00NmM2LTk3M2EtZGJiZmEzNjRjMTVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE0MDI1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE0MGE0Nzk4YjRhYzI2ZDYwODY0MWU2YTk1YzkyMjU4MDZmOWYwYjRiNjdjNTA1ODZkZTBmNzFiOGU2NjY0NmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ZLnlmilEmsKQANaYo2K36i1TauaZzFrbviaCX86oyyc)
![Figure-fortran](https://private-user-images.githubusercontent.com/24637004/401214220-37d0ce20-093f-4fa9-a1a1-8203c776a6d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTY0NzYsIm5iZiI6MTczOTE5NjE3NiwicGF0aCI6Ii8yNDYzNzAwNC80MDEyMTQyMjAt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ODU2MDkzNmU5MDcwYTg5YWI1NmIzMzRmOWQ1YzNlMzczNWRkMDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Hp3iz6KHmQr4vhRxo5r0epZpr9iyP16b6AnJAhfdkVE)
Checklist:
changelog-entries/<PRnumber>.md
.