snl_fei_FEVectorTraits.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 _snl_fei_FEVectorTraits_hpp_
00010 #define _snl_fei_FEVectorTraits_hpp_
00011 
00012 #include <fei_macros.hpp>
00013 
00014 namespace snl_fei {
00015 
00021   template<class T>
00022   struct FEVectorTraits {
00023 
00025     static const char* typeName()
00026       { return("unsupported"); }
00027 
00030     static int reset(T* /*vec*/)
00031       { return(-1); }
00032 
00034     static int sumInElemVector(T* /*vec*/,
00035              int /*elemBlockID*/,
00036              int /*elemID*/,
00037              int /*numNodes*/,
00038              const int* /*nodeNumbers*/,
00039              const int* /*dofPerNode*/,
00040              const double* /*coefs*/)
00041       { return(-1); }
00042 
00044     static int copyOut(T* /*vec*/,
00045            int /*nodeNumber*/,
00046            int /*dofOffset*/,
00047            double& /*value*/)
00048       { return( -1 ); }
00049 
00050   };//struct FEVectorTraits
00051 }//namespace snl_fei
00052 
00053 #endif // _snl_fei_FEVectorTraits_hpp_

Generated on Wed May 12 21:30:42 2010 for FEI by  doxygen 1.4.7