Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize seismic ic #2127

Merged
merged 2 commits into from Mar 15, 2018
Merged

Conversation

gassmoeller
Copy link
Member

Finally fix #962. Something I wanted to do for a long time (waiting time at an airport is so useful 馃槃). Both plugins show a ~15X speedup with the changes in the first commit. They are still a big part of an instantaneous model (~50% for the tests, compared to 90% before), but at least they are now comparable to a Stokes solve, which should be good enough. The second commit adjusts the code style to our usual convention and uses more correct types for many indices.

@jaustermann or @Shangxin-Liu maybe one of you could take look and do a review of this PR, since you wrote the initial code? Did I mess anything up?

@jaustermann
Copy link
Contributor

I'm in the field until Tuesday but am happy to review this as soon as I'm back.

@bangerth
Copy link
Contributor

Ah, nice job -- all it took was hoisting some constants out of a loop :-)

@Shangxin-Liu
Copy link
Contributor

Nice speed-up insight @gassmoeller, it looks fine to me. I may need to also update ASPECT on our cluster:)

@gassmoeller
Copy link
Member Author

Ok, great. @jaustermann it would be great if you could take a look when you are back and have some time. I would like to merge this end of the week / first half of next week to make sure it makes it into the release.

@jaustermann
Copy link
Contributor

I went through all the changes and they look good to me. The S40 and Savani tests are also good checks that the content hasn't changed. Awesome speedup, thanks Rene! I can merge this if it's okay - maybe my first merge?!

@gassmoeller
Copy link
Member Author

Sure, go ahead 馃槃

@jaustermann jaustermann merged commit 25d214a into geodynamics:master Mar 15, 2018
@gassmoeller gassmoeller deleted the optimize_seismic_IC branch March 15, 2018 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Very slow S40RTS initial conditions
4 participants