SpECTRE Documentation Coverage Report
Current view: top level - Domain/Amr - Flag.cpp Hit Total Coverage
Commit: ebec864322c50bab8dca0a90baf8d01875114261 Lines: 2 3 66.7 %
Date: 2020-11-25 20:28:50
Legend: Lines: hit not hit

          Line data    Source code
       1           0 : // Distributed under the MIT License.
       2             : // See LICENSE.txt for details.
       3             : 
       4             : #include "Domain/Amr/Flag.hpp"
       5             : #include "ErrorHandling/Error.hpp"
       6             : 
       7             : #include <ostream>
       8             : 
       9           1 : namespace amr {
      10             : 
      11           1 : std::ostream& operator<<(std::ostream& os, const Flag& flag) noexcept {
      12             :   switch (flag) {
      13             :     case Flag::Undefined:
      14             :       os << "Undefined";
      15             :       break;
      16             :     case Flag::Join:
      17             :       os << "Join";
      18             :       break;
      19             :     case Flag::DecreaseResolution:
      20             :       os << "DecreaseResolution";
      21             :       break;
      22             :     case Flag::DoNothing:
      23             :       os << "DoNothing";
      24             :       break;
      25             :     case Flag::IncreaseResolution:
      26             :       os << "IncreaseResolution";
      27             :       break;
      28             :     case Flag::Split:
      29             :       os << "Split";
      30             :       break;
      31             :     default:
      32             :       ERROR("An undefined flag was passed to the stream operator.");
      33             :   }
      34             :   return os;
      35             : }
      36             : }  // namespace amr

Generated by: LCOV version 1.14