fei_VectorTraits_FEData.hpp

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 #ifndef _fei_VectorTraits_FEData_hpp_
00010 #define _fei_VectorTraits_FEData_hpp_
00011 
00012 //This file defines vector traits for FiniteElementData vectors
00013 //(well, "vector-views" to be more precise).
00014 //
00015 
00016 #include <fei_VectorTraits.hpp>
00017 #include <fei_FiniteElementData.hpp>
00018 
00019 namespace fei {
00020 
00022   template<>
00023   struct VectorTraits<FiniteElementData>  {
00024 
00026     static const char* typeName()
00027       { return("FiniteElementData"); }
00028 
00030     static int setValues(FiniteElementData* vec, int firstLocalOffset,
00031        double scalar, bool isSolnVector=false)
00032       {
00033   return(-1);
00034       }
00035 
00037     static int putValuesIn(FiniteElementData* vec,
00038          int firstLocalOffset,
00039          int numValues, const int* indices, const double* values,
00040                      bool sum_into,
00041          bool isSolnVector=false,
00042          int vectorIndex=0)
00043       {
00044   return(-1);
00045       }
00046 
00048     static int copyOut(FiniteElementData* vec,
00049            int firstLocalOffset,
00050            int numValues, const int* indices, double* values,
00051            bool isSolnVector=false,
00052            int vectorIndex=0)
00053       {
00054   return(-1);
00055       }
00056 
00058     static int update(FiniteElementData* vec,
00059           double a,
00060           const FiniteElementData* x,
00061           double b)
00062     { return(-1); }
00063 
00064   };//struct VectorTraits
00065 }//namespace fei
00066 
00067 #endif // _fei_VectorTraits_FEData_hpp_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Generated on Wed Apr 13 10:08:24 2011 for FEI by  doxygen 1.6.3