• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Open-Sn / opensn / 25593189200

09 May 2026 03:58AM UTC coverage: 75.687% (+0.02%) from 75.667%
25593189200

push

github

web-flow
Merge pull request #1042 from wdhawkins/ang_quadrature_refactor

Refactoring angular quadrature classes.

230 of 278 new or added lines in 27 files covered. (82.73%)

11 existing lines in 4 files now uncovered.

22258 of 29408 relevant lines covered (75.69%)

64631828.08 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

64.71
/framework/math/linear_solver/linear_system_solver.h
1
// SPDX-FileCopyrightText: 2025 The OpenSn Authors <https://open-sn.github.io/opensn/>
2
// SPDX-License-Identifier: MIT
3

4
#pragma once
5

6
#include "framework/math/linear_solver/linear_solver.h"
7
#include "framework/math/linear_solver/linear_solver_context.h"
8

9
namespace opensn
10
{
11

12
class LinearSystemSolver : public LinearSolver
13
{
14
public:
15
  enum class IterativeMethod : int
16
  {
17
    NONE,
18
    CLASSIC_RICHARDSON,
19
    PETSC_RICHARDSON,
20
    PETSC_GMRES,
21
    PETSC_BICGSTAB
22
  };
23

24
  LinearSystemSolver(IterativeMethod method, const std::shared_ptr<LinearSystemContext>& ctx)
25
    : LinearSolver(ctx), method_(method)
26
  {
27
  }
28

29
  std::string GetIterativeMethodName()
1,680✔
30
  {
31
    switch (method_)
1,680✔
32
    {
UNCOV
33
      case IterativeMethod::NONE:
×
UNCOV
34
        return "NONE";
×
UNCOV
35
      case IterativeMethod::CLASSIC_RICHARDSON:
×
UNCOV
36
        return "CLASSIC_RICHARDSON";
×
37
      case IterativeMethod::PETSC_RICHARDSON:
571✔
38
        return "PETSC_RICHARDSON";
571✔
39
      case IterativeMethod::PETSC_GMRES:
1,105✔
40
        return "PETSC_GMRES";
1,105✔
41
      case IterativeMethod::PETSC_BICGSTAB:
4✔
42
        return "PETSC_BICGSTAB";
4✔
UNCOV
43
      default:
×
UNCOV
44
        return "UNKNOWN ITERATIVE METHOD";
×
45
    }
3,485✔
46
  }
3,244✔
47

3,934✔
48
protected:
49
  IterativeMethod method_;
50
};
51

52
} // namespace opensn
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc