• Main Page
  • Namespaces
  • Data Structures
  • Files
  • File List

/export/development/ViennaFEM/viennafem/unknown_config.hpp

Go to the documentation of this file.
00001 #ifndef VIENNAFEM_UNKNOWN_CONFIG_HPP
00002 #define VIENNAFEM_UNKNOWN_CONFIG_HPP
00003 
00004 /* =========================================================================
00005    Copyright (c) 2012, Institute for Microelectronics,
00006                        Institute for Analysis and Scientific Computing,
00007                        TU Wien.
00008                              -----------------
00009                ViennaFEM - The Vienna Finite Element Method Library
00010                              -----------------
00011 
00012    Author:     Karl Rupp                          rupp@iue.tuwien.ac.at
00013 
00014    License:    MIT (X11), see file LICENSE in the ViennaFEM base directory
00015 ============================================================================ */
00016 
00017 #include "viennafem/forwards.h"
00018 
00023 namespace viennafem
00024 {
00025   
00033   template <typename MatrixType,
00034             typename VectorType,
00035             typename BoundaryKeyType = boundary_key,
00036             typename MappingKeyType = mapping_key>
00037   class unknown_config
00038   {
00039     public:
00040       typedef MatrixType         matrix_type;
00041       typedef VectorType         vector_type;
00042       typedef BoundaryKeyType    boundary_key_type;
00043       typedef MappingKeyType     mapping_key_type;
00044     
00045       unknown_config(MatrixType & matrix, VectorType & vector) : m(matrix),v(vector) {}
00046       
00047       BoundaryKeyType boundary_key() const { return BoundaryKeyType(0); } 
00048       MappingKeyType mapping_key() const { return MappingKeyType(0); } 
00049     
00050       MatrixType & system_matrix() { return m; }
00051       VectorType & load_vector() { return v; }
00052     
00053     private:
00054       MatrixType & m;
00055       VectorType & v;
00056   };  
00057 
00058 }
00059 #endif

Generated on Wed Feb 29 2012 21:51:05 for ViennaFEM - The Vienna Finite Element Method Library by  doxygen 1.7.1