Revision 1921 trunk/src/linad99/f3arr12.cpp

f3arr12.cpp (revision 1921)
17 17
 */
18 18
const prevariable dvar3_array::operator()(int k, int i, int j) const
19 19
    {
20
      #ifdef SAFE_ARRAYS
21 20
        if (k<slicemin())
22 21
        {
23 22
          cerr << "array bound exceeded -- slice index too"
......
35 34
          ad_exit(1);
36 35
        }
37 36
        return ( ((t[k].m[i]).va)+j );
38
      #else
39
        return ( ((t[k].m[i]).va)+j );
40
      #endif
41 37
    }
42 38

  
43 39
/**
......
46 42
 */
47 43
const dvar_vector& dvar3_array::operator()(int k, int i) const
48 44
    {
49
      #ifdef SAFE_ARRAYS
50 45
        if (k<slicemin())
51 46
        {
52 47
          cerr << "array bound exceeded -- slice index too"
......
63 58
           << k << "\n";
64 59
          ad_exit(1);
65 60
        }
66
      #endif
67 61
      return ( t[k].m[i]);
68 62
    }
69 63
#endif

Also available in: Unified diff