00001 /************************************************************************************* 00002 * MechSys - A C++ library to simulate (Continuum) Mechanical Systems * 00003 * Copyright (C) 2005 Dorival de Moraes Pedroso <dorival.pedroso at gmail.com> * 00004 * Copyright (C) 2005 Raul Dario Durand Farfan <raul.durand at gmail.com> * 00005 * * 00006 * This file is part of MechSys. * 00007 * * 00008 * MechSys is free software; you can redistribute it and/or modify it under the * 00009 * terms of the GNU General Public License as published by the Free Software * 00010 * Foundation; either version 2 of the License, or (at your option) any later * 00011 * version. * 00012 * * 00013 * MechSys is distributed in the hope that it will be useful, but WITHOUT ANY * 00014 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 00015 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License along with * 00018 * MechSys; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, * 00019 * Fifth Floor, Boston, MA 02110-1301, USA * 00020 *************************************************************************************/ 00021 00022 #ifndef MECHSYS_INTSOLVERDATA_H 00023 #define MECHSYS_INTSOLVERDATA_H 00024 00025 #include "util/array.h" 00026 00027 class IntSolverData 00028 { 00029 public: 00030 // Set 00031 IntSolverData & FE_resid (REAL resid) { _FE_resid.push_back(resid); return (*this); } 00032 IntSolverData & BE_resid (REAL resid) { _BE_resid.push_back(resid); return (*this); } 00033 IntSolverData & ME_Rerr (REAL Rerr ) { _ME_Rerr .push_back(Rerr ); return (*this); } 00034 IntSolverData & ME_T (REAL T ) { _ME_T .push_back(T ); return (*this); } 00035 IntSolverData & ME_dT (REAL dT ) { _ME_dT .push_back(dT ); return (*this); } 00036 IntSolverData & ME_m (REAL m ) { _ME_m .push_back(m ); return (*this); } 00037 IntSolverData & ME_resid (REAL resid) { _ME_resid.push_back(resid); return (*this); } 00038 00039 // Get 00040 Array<REAL> const & FE_resid() const { return _FE_resid; } 00041 Array<REAL> const & BE_resid() const { return _BE_resid; } 00042 Array<REAL> const & ME_Rerr () const { return _ME_Rerr ; } 00043 Array<REAL> const & ME_T () const { return _ME_T ; } 00044 Array<REAL> const & ME_dT () const { return _ME_dT ; } 00045 Array<REAL> const & ME_m () const { return _ME_m ; } 00046 Array<REAL> const & ME_resid() const { return _ME_resid; } 00047 00048 private: 00049 // Data 00050 Array<REAL> _FE_resid; 00051 Array<REAL> _BE_resid; 00052 Array<REAL> _ME_Rerr; 00053 Array<REAL> _ME_T; 00054 Array<REAL> _ME_dT; 00055 Array<REAL> _ME_m; 00056 Array<REAL> _ME_resid; 00057 00058 }; // class IntSolverData 00059 00060 #endif // MECHSYS_INTSOLVERDATA_H 00061 00062 // vim:fdm=marker