Fix core WST file
[jabaws.git] / website / archive / binaries / mac / src / disembl / Tisean_3.0.1 / source_f / verbose.f
1 c===========================================================================
2 c
3 c   This file is part of TISEAN
4
5 c   Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber
6
7 c   TISEAN is free software; you can redistribute it and/or modify
8 c   it under the terms of the GNU General Public License as published by
9 c   the Free Software Foundation; either version 2 of the License, or
10 c   (at your option) any later version.
11 c
12 c   TISEAN is distributed in the hope that it will be useful,
13 c   but WITHOUT ANY WARRANTY; without even the implied warranty of
14 c   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 c   GNU General Public License for more details.
16 c
17 c   You should have received a copy of the GNU General Public License
18 c   along with TISEAN; if not, write to the Free Software
19 c   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 c
21 c===========================================================================
22 c   utilities for TISEAN f-sources
23 c===========================================================================
24       function igetv(idef)
25 c get verbosity level
26
27       igetv=ican("V",-1)
28       if(igetv.eq.-1.and.lopt("V",1).eq.1) igetv=2**15-1
29       if(igetv.eq.-1) igetv=idef
30       end
31
32       function iexv(iverb,item)
33 c 1 if verbosity level includes item
34
35       iexv=iand(iverb,item)/item
36       end
37
38 c the following functions test for specific numerical verbosity values
39
40       function iv_io(iverb)           ! report i/o activity
41       iv_io=iexv(iverb,1)
42       end
43
44       function iv_echo(iverb)         ! echo first line of data read
45       iv_echo=iexv(iverb,128)
46       end
47
48       function iv_cost(iverb)         ! current value of cost function 
49       iv_cost=iexv(iverb,2)
50       end
51
52       function iv_match(iverb)        ! cost mismatch 
53       iv_match=iexv(iverb,4)
54       end
55
56       function iv_cool(iverb)         ! temperature etc. at cooling 
57       iv_cool=iexv(iverb,8)
58       end
59
60       function iv_vcost(iverb)        ! verbose cost if improved 
61       iv_vcost=iexv(iverb,16)
62       end
63
64       function iv_vmatch(iverb)       ! verbose cost mismatch
65       iv_vmatch=iexv(iverb,32)
66       end
67
68       function iv_10(iverb)           ! upo status after 10 points
69       iv_10=iexv(iverb,16)
70       end
71
72       function iv_100(iverb)          ! upo status after 100 points
73       iv_100=iexv(iverb,8)
74       end
75
76       function iv_1000(iverb)         ! upo status after 1000 points
77       iv_1000=iexv(iverb,4)
78       end
79
80       function iv_upo(iverb)          ! print orbits found
81       iv_upo=iexv(iverb,2)
82       end
83
84       function iv_surr(iverb)         ! print iterations / discrepancy
85       iv_surr=iexv(iverb,2)           
86       end
87
88       function iv_uncorr(iverb)       ! neighbour search status
89       iv_uncorr=iexv(iverb,2)           
90       end
91
92       function iv_clust(iverb)        ! clustering status
93       iv_clust=iexv(iverb,2)           
94       end
95
96
97
98