You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Relies on the use of the gko::lend function that is deprecated according to my compile output:
no longer necessary, just pass the object without lend [-Wdeprecated-declarations] 56 | generate_stencil_matrix(gko::lend(matrix));
As I declared my matrix with: auto matrix = gko::share(mtx::create(exec, gko::dim<2>(discretization_points)));, should I use generate_stencil_matrix(matrix.get()); ?
gko::stop::ResidualNormReduction<>::build() has to be replaced with: gko::stop::ResidualNorm<>::build() .with_baseline(gko::stop::mode::initial_resnorm) ?
(and a ';' has to be added at the end of .on(exec))
finally, for the solve: solver->apply(rhs.get(), u.get());
Or is there a more up to date tutorial somewhere ?
Thanks in advance,
Rémi
The text was updated successfully, but these errors were encountered:
Hi @rbourgeois33 ,
All modification you mentioned should be correct.
Yes, our tutorial in wiki is quite outdate. We are working on new version of tutorial.
The tutorial: https://github.com/ginkgo-project/ginkgo/wiki/Tutorial-2:-Implement:-Matrices
Relies on the use of the
gko::lend
function that is deprecated according to my compile output:no longer necessary, just pass the object without lend [-Wdeprecated-declarations] 56 | generate_stencil_matrix(gko::lend(matrix));
As I declared my matrix with:
auto matrix = gko::share(mtx::create(exec, gko::dim<2>(discretization_points)));
, should I usegenerate_stencil_matrix(matrix.get());
?same in https://github.com/ginkgo-project/ginkgo/wiki/Tutorial-3:-Implement:-Solvers
gko::stop::ResidualNormReduction<>::build()
has to be replaced with:gko::stop::ResidualNorm<>::build() .with_baseline(gko::stop::mode::initial_resnorm)
?(and a ';' has to be added at the end of
.on(exec))
finally, for the solve:
solver->apply(rhs.get(), u.get());
Or is there a more up to date tutorial somewhere ?
Thanks in advance,
Rémi
The text was updated successfully, but these errors were encountered: