www.mooseframework.org
EFAError.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 // This is the only dependency that ElementFragmentAlgorithm has on MOOSE (or libMesh)
12 // To compile standalone, uncomment the following lines and fix the banned keyword that
13 // has spaces in it:
14 
15 //#include <iostream>
16 //#define EFAError(msg) do {std::c o u t, "CutElemMesh ERROR: ", msg, std::endl; exit(1);} while (0)
17 //#define EFAWarning(msg) do {std::c o u t<<"CutElemMesh WARNING: "<<msg<<std::endl;} while (0)
18 
19 // This version just calls MooseError for error reporting, which is preferred if this is run
20 // within the MOOSE environment:
21 #include "MooseError.h"
22 #define EFAError(...) mooseError(__VA_ARGS__)
23 #define EFAWarning(...) mooseWarning(__VA_ARGS__)