Skip to content

Commit

Permalink
Format files
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Ribizel <upsj@users.noreply.github.com>
  • Loading branch information
ginkgo-bot and upsj committed Oct 6, 2023
1 parent 654ef6e commit af0b8c7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 25 deletions.
6 changes: 2 additions & 4 deletions core/test/log/papi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,7 @@ TYPED_TEST(Papi, CatchesLinOpFactoryGenerateStarted)
{
auto factory =
gko::solver::Bicgstab<TypeParam>::build()
.with_criteria(
gko::stop::Iteration::build().with_max_iters(3u))
.with_criteria(gko::stop::Iteration::build().with_max_iters(3u))
.on(this->exec);
auto str = this->init(gko::log::Logger::linop_factory_generate_started_mask,
"linop_factory_generate_started", factory.get());
Expand All @@ -492,8 +491,7 @@ TYPED_TEST(Papi, CatchesLinOpFactoryGenerateCompleted)
{
auto factory =
gko::solver::Bicgstab<TypeParam>::build()
.with_criteria(
gko::stop::Iteration::build().with_max_iters(3u))
.with_criteria(gko::stop::Iteration::build().with_max_iters(3u))
.on(this->exec);
TypeParam dummy;
auto str =
Expand Down
4 changes: 2 additions & 2 deletions core/test/utils/assertions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <initializer_list>
#include <string>
#include <type_traits>
#include <typeinfo>


#include <gtest/gtest.h>
Expand All @@ -52,13 +53,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <ginkgo/core/base/batch_multi_vector.hpp>
#include <ginkgo/core/base/math.hpp>
#include <ginkgo/core/base/mtx_io.hpp>
#include <ginkgo/core/base/name_demangling.hpp>
#include <ginkgo/core/matrix/dense.hpp>
#include <typeinfo>


#include "core/base/batch_utilities.hpp"
#include "core/base/extended_float.hpp"
#include "ginkgo/core/base/name_demangling.hpp"


namespace gko {
Expand Down
6 changes: 2 additions & 4 deletions reference/test/preconditioner/ilu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,7 @@ TEST_F(DefaultIlu, CanBeUsedAsPreconditioner)
{
auto solver =
gko::solver::Bicgstab<>::build()
.with_criteria(
gko::stop::Iteration::build().with_max_iters(2u))
.with_criteria(gko::stop::Iteration::build().with_max_iters(2u))
.with_preconditioner(default_ilu_prec_type::build())
.on(this->exec)
->generate(this->mtx);
Expand All @@ -635,8 +634,7 @@ TEST_F(DefaultIlu, CanBeUsedAsGeneratedPreconditioner)
default_ilu_prec_type::build().on(this->exec)->generate(this->mtx);
auto solver =
gko::solver::Bicgstab<>::build()
.with_criteria(
gko::stop::Iteration::build().with_max_iters(2u))
.with_criteria(gko::stop::Iteration::build().with_max_iters(2u))
.with_generated_preconditioner(precond)
.on(this->exec)
->generate(this->mtx);
Expand Down
18 changes: 9 additions & 9 deletions reference/test/solver/gmres_kernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,15 +373,15 @@ TYPED_TEST(Gmres, KernelMultiAxpy)
this->small_final_iter_nums.get_data()[1] = restart;
this->small_krylov_bases = gko::initialize<Mtx>( // restart+1 x rows x #rhs
{
I<T>{1, 10}, // 0, 0, x
I<T>{2, 11}, // 0, 1, x
I<T>{3, 12}, // 0, 2, x
I<T>{4, 13}, // 1, 0, x
I<T>{5, 14}, // 1, 1, x
I<T>{6, 15}, // 1, 2, x
I<T>{nan, nan}, // 2, 0, x
I<T>{nan, nan}, // 2, 1, x
I<T>{nan, nan}, // 2, 2, x
I<T>{1, 10}, // 0, 0, x
I<T>{2, 11}, // 0, 1, x
I<T>{3, 12}, // 0, 2, x
I<T>{4, 13}, // 1, 0, x
I<T>{5, 14}, // 1, 1, x
I<T>{6, 15}, // 1, 2, x
I<T>{nan, nan}, // 2, 0, x
I<T>{nan, nan}, // 2, 1, x
I<T>{nan, nan}, // 2, 2, x
},
this->exec);
this->small_stop.get_data()[0].stop(7, false);
Expand Down
9 changes: 3 additions & 6 deletions reference/test/solver/multigrid_kernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ class Multigrid : public ::testing::Test {
gko::matrix::IdentityFactory<value_type>::create(exec))
.with_post_uses_pre(false)
.with_mid_case(mid_case)
.with_criteria(
gko::stop::Iteration::build().with_max_iters(1u))
.with_criteria(gko::stop::Iteration::build().with_max_iters(1u))
.with_cycle(cycle)
.with_min_coarse_rows(1u)
.on(this->exec));
Expand All @@ -426,8 +425,7 @@ class Multigrid : public ::testing::Test {
.with_coarsest_solver(this->lo_factory)
.with_post_uses_pre(true)
.with_mid_case(mid_case)
.with_criteria(
gko::stop::Iteration::build().with_max_iters(1u))
.with_criteria(gko::stop::Iteration::build().with_max_iters(1u))
.with_cycle(cycle)
.with_min_coarse_rows(1u)
.on(this->exec));
Expand Down Expand Up @@ -1263,8 +1261,7 @@ TYPED_TEST(Multigrid, ZeroGuessIgnoresInput)
.with_coarsest_solver(this->coarsest_factory)
.with_max_levels(2u)
.with_mg_level(this->coarse_factory)
.with_criteria(
gko::stop::Iteration::build().with_max_iters(1u))
.with_criteria(gko::stop::Iteration::build().with_max_iters(1u))
.with_min_coarse_rows(1u);
auto normal_mg = common_part
.with_default_initial_guess(
Expand Down

0 comments on commit af0b8c7

Please sign in to comment.