FEI Version of the Day
snl_fei_Broker_LinSysCore.cpp
00001 /*--------------------------------------------------------------------*/
00002 /*    Copyright 2005 Sandia Corporation.                              */
00003 /*    Under the terms of Contract DE-AC04-94AL85000, there is a       */
00004 /*    non-exclusive license for use of this work by or on behalf      */
00005 /*    of the U.S. Government.  Export of this program may require     */
00006 /*    a license from the United States Government.                    */
00007 /*--------------------------------------------------------------------*/
00008 
00009 #include <fei_macros.hpp>
00010 
00011 #include <snl_fei_Broker_LinSysCore.hpp>
00012 
00013 #undef fei_file
00014 #define fei_file "snl_fei_Broker_LinSysCore.cpp"
00015 #include <fei_ErrMacros.hpp>
00016 
00017 //----------------------------------------------------------------------------
00018 snl_fei::Broker_LinSysCore::Broker_LinSysCore(fei::SharedPtr<LinearSystemCore> lsc,
00019             fei::SharedPtr<fei::MatrixGraph> matrixGraph,
00020                               fei::SharedPtr<fei::Reducer> reducer,
00021                               bool blockMatrix)
00022   : linsyscore_(lsc),
00023     matrixGraph_(matrixGraph),
00024     reducer_(reducer),
00025     lookup_(NULL),
00026     setGlobalOffsets_(false),
00027     numLocalEqns_(0),
00028     setMatrixStructure_(false),
00029     blockMatrix_(blockMatrix)
00030 {
00031   int dummyID = -1;
00032   lsc->setNumRHSVectors(1, &dummyID);
00033 }
00034 
00035 //----------------------------------------------------------------------------
00036 snl_fei::Broker_LinSysCore::~Broker_LinSysCore()
00037 {
00038   delete lookup_;
00039 }
00040 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends