Initial snark14m import
[snark14.git] / src / snark / trm1.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/trm1.cpp $
5  $LastChangedRevision: 122 $
6  $Date: 2014-07-09 18:18:59 -0400 (Wed, 09 Jul 2014) $
7  $Author: agulati $
8  ***********************************************************
9
10  trm1.cpp,v 1.2 2008/08/25 16:11:09 jklukowska Exp
11
12  DUMMY TERMINATION TEST - TO BE REPLACED BY USER
13
14  */
15
16 #include <cstdio>
17 #include <cstdlib>
18
19 #include "blkdta.h"
20 #include "uiod.h"
21
22 #include "trm1.h"
23
24 // bug220 - allow user args for termination tests - swr - 1/30/07
25
26 BOOLEAN trm1_class::Run(REAL* recon, INTEGER* list, REAL* weight, INTEGER iter)
27 {
28         fprintf(output, "\n **** This algorithm is trying to decide if it should");
29         fprintf(output, "\n **** terminate based on the dummy version of TRM1.");
30         fprintf(output, "\n **** If you wish to use this routine, then you");
31         fprintf(output, "\n **** should replace it by your own version of it.");
32         fprintf(output, "\n **** program aborted\n");
33         exit(-1);
34
35         return TRUE;
36 }
37