"Fossies" - the Fresh Open Source Software Archive

Member "laspack/rtc.h" (27 Mar 1995, 2049 Bytes) of package /linux/privat/old/laspack.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /****************************************************************************/
    2 /*                                  rtc.h                                   */
    3 /****************************************************************************/
    4 /*                                                                          */
    5 /* Residual Termination Control                                             */
    6 /*                                                                          */
    7 /* Copyright (C) 1992-1995 Tomas Skalicky. All rights reserved.             */
    8 /*                                                                          */
    9 /****************************************************************************/
   10 /*                                                                          */
   11 /*        ANY USE OF THIS CODE CONSTITUTES ACCEPTANCE OF THE TERMS          */
   12 /*              OF THE COPYRIGHT NOTICE (SEE FILE COPYRGHT.H)               */
   13 /*                                                                          */
   14 /****************************************************************************/
   15 
   16 #ifndef RTC_H
   17 #define RTC_H
   18 
   19 #include "laspack/lastypes.h"
   20 #include "laspack/vector.h"
   21 #include "laspack/itersolv.h"
   22 #include "laspack/copyrght.h"
   23 
   24 /* identifiers for iteration methods */
   25 
   26 typedef enum {
   27     /* classical iterative methods */
   28     JacobiIterId,
   29     SORForwIterId,
   30     SORBackwIterId,
   31     SSORIterId,
   32 
   33     /* semi-iterative methods */
   34     ChebyshevIterId,
   35 
   36     /* CG and CG-like methods */
   37     CGIterId,
   38     CGNIterId,
   39     GMRESIterId,
   40     BiCGIterId,
   41     QMRIterId,
   42     CGSIterId,
   43     BiCGSTABIterId,
   44 
   45     /* multigrid and multigrid based methods */
   46     MGIterId,
   47     NestedMGIterId,
   48     MGPCGIterId,
   49     BPXPCGIterId
   50 } IterIdType;
   51 
   52 typedef void (*RTCAuxProcType)(int, double, double, IterIdType);
   53 
   54 void SetRTCAccuracy(double Eps);
   55 void SetRTCAuxProc(RTCAuxProcType AuxProc);
   56 Boolean RTCResult(int Iter, double rNorm, double bNorm, IterIdType IterId);
   57 int GetLastNoIter(void);
   58 double GetLastAccuracy(void);
   59 
   60 #endif /* RTC_H */