diff --git a/tutorials/tutorial3.cpp b/tutorials/tutorial3.cpp index b63e98d41..9103cb2c4 100644 --- a/tutorials/tutorial3.cpp +++ b/tutorials/tutorial3.cpp @@ -266,7 +266,7 @@ try /// \snippet tutorial3.cpp two-phase state /// \internal [two-phase state] TwophaseState state; - state.init(grid, 2); + state.init(grid.number_of_cells , grid.number_of_faces, 2); state.setFirstSat(allcells, props, TwophaseState::MinSat); /// \internal [two-phase state] /// \endinternal diff --git a/tutorials/tutorial4.cpp b/tutorials/tutorial4.cpp index 1992f120c..926cd8c48 100644 --- a/tutorials/tutorial4.cpp +++ b/tutorials/tutorial4.cpp @@ -213,7 +213,7 @@ try /// \snippet tutorial4.cpp two-phase state /// \internal[two-phase state] TwophaseState state; - state.init(grid, 2); + state.init(grid.number_of_cells , grid.number_of_faces, 2); state.setFirstSat(allcells, props, TwophaseState::MinSat); /// \internal[two-phase state] /// \endinternal