mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added grid collection and reuse of MainGrid if the grids are equal
p4#: 20517
This commit is contained in:
@@ -35,7 +35,7 @@ TEST(RigGridCollection, BasicTest)
|
||||
cvf::ref<RigEclipseCase> eclipseCase = new RigEclipseCase;
|
||||
|
||||
RigGridCollection gridCollection;
|
||||
gridCollection.addGrid(eclipseCase.p(), mainGridA.p());
|
||||
gridCollection.addCase(eclipseCase.p());
|
||||
|
||||
int count = mainGridA->refCount();
|
||||
EXPECT_TRUE(mainGridA->refCount() == 2);
|
||||
@@ -60,7 +60,7 @@ TEST(RigGridCollection, EqualTests)
|
||||
cvf::ref<RigEclipseCase> eclipseCase = new RigEclipseCase;
|
||||
|
||||
RigGridCollection gridCollection;
|
||||
gridCollection.addGrid(eclipseCase.p(), mainGridA.p());
|
||||
gridCollection.addCase(eclipseCase.p());
|
||||
|
||||
|
||||
cvf::ref<RigMainGrid> mainGridB = new RigMainGrid;
|
||||
|
||||
Reference in New Issue
Block a user