text: /*
   * The MIT License
   *
   * Copyright (c) 1997-2020 The University of Utah
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to
   * deal in the Software without restriction, including without limitation the
   * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   * sell copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
   * IN THE SOFTWARE.
   */
  
  
  #ifndef Uintah_Components_Arches_RadiationSolver_h
  #define Uintah_Components_Arches_RadiationSolver_h
  
  #include <Core/Grid/LevelP.h>
  #include <Core/Grid/Patch.h>
  #include <CCA/Ports/SchedulerP.h>
  #include <CCA/Ports/DataWarehouseP.h>
  #include <Core/ProblemSpec/ProblemSpecP.h>
  #include <CCA/Components/Arches/ArchesVariables.h>
  #include <CCA/Components/Arches/ArchesConstVariables.h>
  
  
  namespace Uintah {
  
  class ProcessorGroup;
  class LoadBalancer;
  class ArchesVariables;
  class ArchesConstVariables;
  class ArchesLabel;
  class CellInformation;
  // class StencilMatrix;
  
  /**************************************
  CLASS
     RadiationSolver
     
     Class RadiationSolver is an abstract base class
     that solves the linearized PDE.
  
  GENERAL INFORMATION
     RadiationSolver.h - declaration of the class
     
     Author: Gautham Krishnamoorthy (gautham@crsim.utah.edu)
     
     Creation Date:   July 2, 2004
     
     C-SAFE 
     
  
  KEYWORDS
  
  
  DESCRIPTION
     Class RadiationSolver is an abstract base class
     that solves the linearized PDE.
  
  
  
  WARNING
  none
  ****************************************/
  
  class RadiationSolver {
  
  public:
  
        // GROUP: Constructors:
        ////////////////////////////////////////////////////////////////////////
        // Construct an instance of a LinearSolver.
        // PRECONDITIONS
        // POSTCONDITIONS
        RadiationSolver();
  
  
        // GROUP: Destructors:
        ////////////////////////////////////////////////////////////////////////
        // Virtual Destructor
        virtual ~RadiationSolver();
  
  
        // GROUP: Problem Setup:
        ////////////////////////////////////////////////////////////////////////
        // Setup the problem (etc.)
        virtual void problemSetup(const ProblemSpecP& params) = 0;
  
  //      inline double getInitNorm() { return init_norm; }
  
        ////////////////////////////////////////////////////////////////////////
  
     virtual void matrixCreate(const PatchSet* allpatches,
                               const PatchSubset* mypatches) = 0;
  
     virtual void matrixInit(const Patch* patch) = 0;
  
     virtual void gridSetup(bool plusX, bool plusY, bool plusZ) = 0;
  
     virtual void setMatrix(const ProcessorGroup* pc,
                              const Patch* patch,
                              ArchesVariables* vars,
                              ArchesConstVariables* constvars,
                             bool plusX, bool plusY, bool plusZ,
                             CCVariable<double>& SU,
                             CCVariable<double>& AB,
                             CCVariable<double>& AS,
                             CCVariable<double>& AW,
                             CCVariable<double>& AP,
                             const bool print ) = 0;
  
     virtual bool radLinearSolve( const int direction, const bool print_all_info ) = 0;
     virtual void copyRadSoln(const Patch* patch, ArchesVariables* vars) = 0;
     virtual void destroyMatrix() = 0;
  //   double init_norm;
  
  protected:
  
  private:
  
  }; // End class RadiationSolver
  
  } // End namespace Uintah
  
  #endif  
  