-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Moved mask computation into adapter initialization #25
base: develop
Are you sure you want to change the base?
Conversation
I've added a figure that shows the time improvement for the partitioned heat equation tutorial (for ny = 9, 18, 36, 72 and 144 respectively). For ny = 72 and ny = 144, the version with the dirty fix in it still wasn't finished after several hours , so I've omitted those cases. |
You can add the figure by directly dropping it in the comment while you are writing it. That would make the figure visible inside the comment. I am surprised to know that for |
Also, please make sure that all tests pass. Currently one tutorial seems to fail and there is also an error from the formatter. |
Actually, the adapter is slower all around, not just the mask computation. For reference, for |
How much slower is the adapter as compared to the FEniCS adapter? This would be a good thing to find out. Also, is FEniCSx slower than FEniCS or is our adapter slower? |
I tested the FEniCS tutorial using the preCICE VM and it is performs way better for high |
It should be straightforward to find this out. Using functionality in Python to measure time, you can get how much time is being spent in adapter functions and also how much time the solver is taking. It would be a good insight to find out if the solvers are the issue or is it something on our side. |
This PR is to move the mask computation into the initialization of the adapter. This also resolves the issue about the dirty fix.