Initial snark14m import
[snark14.git] / src / snark / foru_error.cpp
1 /*
2  ***********************************************************
3  $SNARK_Header: S N A R K  1 4 - A PICTURE RECONSTRUCTION PROGRAM $
4  $HeadURL: svn://dig.cs.gc.cuny.edu/snark/trunk/src/snark/foru_error.cpp $
5  $LastChangedRevision: 85 $
6  $Date: 2014-07-02 16:07:08 -0400 (Wed, 02 Jul 2014) $
7  $Author: agulati $
8  ***********************************************************
9
10  ------------------------------------------------------------------
11
12  PURPOSE: PRINT ERROR MESSAGES
13
14  ------------------------------------------------------------------
15 */
16
17 #include <cstdio>
18
19 #include "blkdta.h"
20 #include "fourie.h"
21 #include "uiod.h"
22 #include "foru.h"
23
24 void foru_class::error(INTEGER ktype)
25 {      
26   Fourie.iflg = 1;
27   fprintf(output, "\n*****error*****error*****");
28
29   switch(ktype) {
30   case 1:
31     fprintf(output, "\nfor parallel geometry, total span should be less than pi and ge pi/2 for uniform proj and ge 3/4pi for variable proj");
32     break;
33
34   case 2:
35     fprintf(output, "\nfor divergent geometry, total span should be greater than 3/2pi and less than two pi");
36     break;
37
38   case 3:
39     fprintf(output, "\nangles must be in increasing order");
40     break;
41
42   case 4:
43     fprintf(output, "\nangles must not be separated by more than pi/2 for uniform proj and pi/4 for variable proj");
44     break;
45
46   case 5:
47     fprintf(output, "\ninsufficient parameters");
48     break;
49
50   case 6:
51     fprintf(output, "\nillegal input data");
52     break;
53
54   case 8:
55     fprintf(output, "\ninterp should be ge 1 and le 4");
56     break;
57   }
58
59   fprintf(output, "\n*****error*****error*****");
60
61   return;
62 }
63