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

Open-Sn / opensn / 18380674863

09 Oct 2025 02:45PM UTC coverage: 75.202% (+0.3%) from 74.862%
18380674863

push

github

web-flow
Merge pull request #793 from wdhawkins/remove_cmake_debug_flags

Removing forced use of -O0 for Debug config

18014 of 23954 relevant lines covered (75.2%)

56527302.01 hits per line

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

0.0
/modules/solver.h
1
// SPDX-FileCopyrightText: 2024 The OpenSn Authors <https://open-sn.github.io/opensn/>
2
// SPDX-License-Identifier: MIT
3

4
#pragma once
5

6
#include "framework/parameters/input_parameters.h"
7
#include <iostream>
8
#include <utility>
9

10
namespace opensn
11
{
12
class FieldFunctionGridBased;
13
class TimeStepper;
14

15
/**
16
 * \defgroup SolverBase Base class for all solvers
17
 * \ingroup doc_PhysicsSolver
18
 */
19
class Solver
20
{
21
public:
22
  /// Returns the input parameters.
23
  static InputParameters GetInputParameters();
24
  explicit Solver(std::string name);
25
  explicit Solver(const InputParameters& params);
26
  virtual ~Solver() = default;
×
27

28
  std::string GetName() const;
29

30
  TimeStepper& GetTimeStepper();
31
  const TimeStepper& GetTimeStepper() const;
32

33
  /// Initialize function.
34
  virtual void Initialize();
35

36
  /// Execution function.
37
  virtual void Execute();
38

39
  /// Step function*/
40
  virtual void Step();
41

42
  /// Advance time values function.
43
  virtual void Advance();
44

45
  /// Generalized query for information supporting varying returns.
46
  virtual ParameterBlock GetInfo(const ParameterBlock& params) const;
47

48
  /// PreCheck call to GetInfo.
49
  ParameterBlock GetInfoWithPreCheck(const ParameterBlock& params) const;
50

51
private:
52
  const std::string name_;
53
};
54

55
} // 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