-
Notifications
You must be signed in to change notification settings - Fork 77
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
PersistentContainer has different interface depending on DUNE 2.2 or 2.3 used #44
Comments
And why does dune/grid/CpGrid.hpp #include PersistentContainer at the very end; there doesn't seem to be any need for it? |
It seems like the PersistentContainer class is not considered an official interface by the dune guys: http://lists.dune-project.org/pipermail/dune/2013-February/012208.html why it is in dune-cornerpoint I cannot say, as this seems to be only needed for adaptive grids. I've opened a PR to remove it, but maybe @atgeirr or @bska can enlighten us a bit more. |
The @atgeirr: Do you recall any additional details? |
OK, I see; they changed the interface (between 2.2 and 2.3) in an incompatible way (removed the Allocator parameter), and we're trying to follow suite. |
Alright. Its better to keep this class, then? |
(in this case, can somebody with access to 'parallelgrid' verify that it still works? I don't have access to that project...) |
I think it may be better to keep the class, and I am pretty sure updating it would be the good. However, have we solved the "how to interface with different dune versions" problem? About the current state of dune-parallelgrid I am not quite sure, it's been some time since last I experimented with it. |
Yes, to a large extent I think we have, but of course if you mix versions of DUNE, havoc will probably ensue. |
The class PersistentContainer has a different number of template parameters depending on whether it is linked to DUNE 2.2 or DUNE 2.3, and I (who are not really familiar enough with DUNE) don't quite see the use-case for this.
Why cannot the latter parameter in the inheritance of PersistentContainerVector have an allocator? (And why cannot PersistentContainer have std::allocator as default for its third parameter?)
The text was updated successfully, but these errors were encountered: