Skip to content

Commit bda255c

Browse files
committed
fix compatibility with OpenFOAM-v2306
1 parent aa282f0 commit bda255c

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

solvers/groundwater2DFoam/groundwater2DFoam.C

+4-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ int main(int argc, char *argv[])
7575
sourceEvent->init(runTime, potential.name(), mesh, waterSourceTerm.dimensions());
7676

7777
//- create time manager
78-
List<sourceEventFile*> sourceEventList(1, sourceEvent);
79-
List<infiltrationEventFile*> infiltrationEventList(1, infiltrationEvent);
78+
List<sourceEventFile*> sourceEventList;
79+
sourceEventList.append(sourceEvent.get());
80+
List<infiltrationEventFile*> infiltrationEventList;
81+
infiltrationEventList.append(infiltrationEvent.get());
8082
multiDtManager MDTM(runTime, sourceEventList, infiltrationEventList);
8183
MDTM.addField(potential, &dryCellIDList);
8284

solvers/groundwaterFoam/groundwaterFoam.C

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ int main(int argc, char *argv[])
8181

8282
//- create time managers
8383
labelList* fixedPotentialIDListPtr = &fixedPotentialIDList;
84-
List<sourceEventFile*> sourceEventList(1, sourceEvent);
84+
List<sourceEventFile*> sourceEventList;
85+
sourceEventList.append(sourceEvent.get());
8586
multiDtManager MDTM(runTime, sourceEventList, patchEventList);
8687
MDTM.addIterativeAlgorithm(theta, "Picard", steady);
8788
MDTM.addIterativeAlgorithm(theta, "Newton", steady);

solvers/groundwaterTransport2DFoam/groundwaterTransport2DFoam.C

+4-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ int main(int argc, char *argv[])
7676
waterSourceEvent->init(runTime, potential.name(), mesh, waterSourceTerm.dimensions());
7777

7878
//- create time manager
79-
List<sourceEventFile*> waterSourceEventList(1, waterSourceEvent);
80-
List<infiltrationEventFile*> infiltrationEventList(1, infiltrationEvent);
79+
List<sourceEventFile*> waterSourceEventList;
80+
waterSourceEventList.append(waterSourceEvent.get());
81+
List<infiltrationEventFile*> infiltrationEventList;
82+
infiltrationEventList.append(infiltrationEvent.get());
8183
multiDtManager MDTM(runTime, sourceEventList, infiltrationEventList);
8284
MDTM.addField(hwater, &dryCellIDList);
8385
forAll(composition.Y(), speciesi) MDTM.addField(composition.Y()[speciesi], &dryCellIDList);

0 commit comments

Comments
 (0)