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

removing unused updateImbnum_ function

Open GitPaean opened this issue 1 year ago • 1 comments

found the function unused when looking at HYSTER related code.

GitPaean avatar May 05 '24 21:05 GitPaean

jenkins build this please

GitPaean avatar May 05 '24 21:05 GitPaean

@bska I will have a look at this later today. I do not remember exactly, but I think the intention was that there should be a call to this->updateImbnum_() in readMaterialParameters_() in FlowProblem.hpp see:

https://github.com/OPM/opm-simulators/blob/66aacb5042b0de5b9af96cef17cf93abcec36663/opm/simulators/flow/FlowProblem.hpp#L2045

hakonhagland avatar May 06 '24 08:05 hakonhagland

I checked this again, and it seems we can also remove the updateKrnum_() ? Instead of storing the vectors KRNUM and IMBNUM in class FlowGenericProblem, we are storing them in class EclMaterialManager, see

https://github.com/OPM/opm-common/blob/9e942d2d2c1c5056da3aaec30e2f699c17c67fb1/opm/material/fluidmatrixinteractions/EclMaterialLawManager.hpp#L456

so the vectors in class FlowGenericProblem seems to be unused.

hakonhagland avatar May 08 '24 07:05 hakonhagland

I checked this again, and it seems we can also remove the updateKrnum_() ? Instead of storing the vectors KRNUM and IMBNUM in class FlowGenericProblem, we are storing them in class EclMaterialManager, see

https://github.com/OPM/opm-common/blob/9e942d2d2c1c5056da3aaec30e2f699c17c67fb1/opm/material/fluidmatrixinteractions/EclMaterialLawManager.hpp#L456

so the vectors in class FlowGenericProblem seems to be unused.

Thanks @hakonhagland . Let me update the PR and let it run through the tests.

GitPaean avatar May 08 '24 07:05 GitPaean

jenkins build this please

GitPaean avatar May 08 '24 08:05 GitPaean

It looks like mostly fine. @bska can you have a look?

GitPaean avatar May 08 '24 08:05 GitPaean