Skip to content
Snippets Groups Projects
GMRES.h 1.88 KiB
Newer Older
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
/*----------------------------------------------------------------------
  SerialReax - Reax Force Field Simulator
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  Copyright (2010) Purdue University
  Hasan Metin Aktulga, haktulga@cs.purdue.edu
  Joseph Fogarty, jcfogart@mail.usf.edu
  Sagar Pandit, pandit@usf.edu
  Ananth Y Grama, ayg@cs.purdue.edu
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License as
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  published by the Free Software Foundation; either version 2 of
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  the License, or (at your option) any later version.
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
  See the GNU General Public License for more details:
  <http://www.gnu.org/licenses/>.
  ----------------------------------------------------------------------*/

#ifndef __GMRES_H_
#define __GMRES_H_

#define SIGN(x) (x < 0.0 ? -1 : 1);

#include "mytypes.h"

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
    LOWER = 0,
    UPPER = 1,
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
int GMRES( static_storage*, sparse_matrix*,
           real*, real, real*, FILE*, real*, real* );
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
int GMRES_HouseHolder( static_storage*, sparse_matrix*,
                       real*, real, real*, FILE* );
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
int PGMRES( static_storage*, sparse_matrix*, real*, real,
            sparse_matrix*, sparse_matrix*, real*, FILE*, real*, real* );
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
int PGMRES_Jacobi( static_storage*, sparse_matrix*, real*, real,
                   sparse_matrix*, sparse_matrix*, real*, unsigned int, FILE*, real*, real* );
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
int PCG( static_storage*, sparse_matrix*, real*, real,
         sparse_matrix*, sparse_matrix*, real*, FILE* );
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
int CG( static_storage*, sparse_matrix*,
        real*, real, real*, FILE* );
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
int uyduruk_GMRES( static_storage*, sparse_matrix*,
                   real*, real, real*, int, FILE* );
Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed

real condest( sparse_matrix*, sparse_matrix* );

Kurt A. O'Hearn's avatar
Kurt A. O'Hearn committed
#endif