-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Missing error message for mixing a 2D solver with a 3D case #27
Comments
This is an actual issue in your compilation. You have still compiled deal.II with dim=2. Providing preCICE a 2D mesh leads then to the crash in preCICE |
Very good catch! Could we also implement a user-friendly error message? It could simply compare the dimension from the precice-config.xml with (could we even somehow make the two versions one?) |
There is one in the adapter: dealii-adapter/adapter/adapter.h Lines 222 to 223 in e16f4da
But I assume you built your code in (the default) |
Hm we could use explicit instantiations (the dimension is templated) and read the parameter file before jumping in the class i.e. passing in the dimension via a parameter file. So, to your question: Yes, it is possible, but a little bit more code shifting. |
This sounds like a great idea!
Yes, I followed the adapter documentation. Since this is a user error rather than a check for something that could internally break, it would be better to have this implemented as an error message, so that it is also checked (once) in the release mode. Also in preCICE, we distinguish between error messages and assertions in this way. |
This depends a little bit how you and @uekerman prioritize tasks. |
With deal.II 9.2, the latest state of the deal.II adapter and OpenFOAM 5 (and also v1912), I get the following error in the (3D) solid side very early in the simulation:
Can anybody reproduce this?
The 2D case works for me.
The text was updated successfully, but these errors were encountered: