opm-simulators icon indicating copy to clipboard operation
opm-simulators copied to clipboard

Prepare OPM for DUNE 2.10

Open blattms opened this issue 1 year ago • 6 comments

DUNE_VERSION_NEWER has been removed. Falling back to DUNE_VERSION_GTE which exists since at least DUNE 2.7.

Removed switches for older version than 2.7.

blattms avatar Sep 07 '24 15:09 blattms

So this is basically the same thing i do in the bump to 2.9 required, except the other way around, ie, it keeps support for older dune.

akva2 avatar Sep 09 '24 09:09 akva2

So this is basically the same thing i do in the bump to 2.9 required, except the other way around, ie, it keeps support for older dune.

I am not sure I understand this comment. The macro DUNE_VERSION_GTE is there from at least 2.7. Hence there is no bumping here. We just make sure that it also compiles with 2,10 which dropped the DUNE_VERSION_NEWER macro.

Note that DUNE_VERSION_NEWER means the at least the specified version is required. SO NEWER is a bit misleading. If that is 2.7 then the version needs to be >=2.7

blattms avatar Sep 09 '24 10:09 blattms

The conditions you introduce is the same starting in dune 2.8, so you basically add stuff to handle 2.7. i just removed the 2.7 support thus we need none of the DUNE_VERSION_NEWER / DUNE_VERSION_GTE stuff. Strictly speaking my PR bumps to 2.8 required, but I thought we'd go for 2.9 since that is the version we use on every platform (ignoring the temporary rh7 2.8 for equinor).

akva2 avatar Sep 09 '24 10:09 akva2

Making this draft until i have a compiling version

blattms avatar Sep 09 '24 12:09 blattms

I still don't get it. I test >=2.7 (GTE)and not >2.7 (GT).

Anyway, as it turns out we do not compile with 2.7 anyway because of #5595

blattms avatar Sep 10 '24 15:09 blattms

I know that. As I said, it's the opposite approach of mine. I removed existing checks because I dropped 2.7 support. You add additional checks to make 2.7 still work (if we ignore the other issue).

akva2 avatar Sep 10 '24 15:09 akva2

I see. Well, it now works with 2,7 -2.10 to make @totto82 happy.

blattms avatar Oct 03 '24 10:10 blattms

I added a commit that completes #5500

blattms avatar Mar 27 '25 09:03 blattms

still fine.

akva2 avatar Mar 27 '25 12:03 akva2