FEI Version of the Day
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 int* /*dof_ids*/,
00041              const double* /*coefs*/)
00042       { return(-1); }
00043 
00045     static int copyOut(T* /*vec*/,
00046            int /*nodeNumber*/,
00047            int /*dofOffset*/,
00048            double& /*value*/)
00049       { return( -1 ); }
00050 
00051   };//struct FEVectorTraits
00052 }//namespace snl_fei
00053 
00054 #endif // _snl_fei_FEVectorTraits_hpp_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends