Revision 1106 trunk/src/tools99/dfadcif.cpp

dfadcif.cpp (revision 1106)
2 2
 * $Id$
3 3
 *
4 4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
5
 * Copyright (c) 2008-2012 Regents of the University of California
6 6
 */
7 7
#include <fvar.hpp>
8 8
#include "cifstrem.h"
......
27 27
  for (int i= z.indexmin(); i <= z.indexmax(); i++)
28 28
  {
29 29
    *this >> z[i];
30
  } 
30
  }
31 31
  return *this;
32 32
}
33 33

  
34 34
cifstream& operator>>(cifstream& istr, const dvar_matrix& z)
35
{ 
35
{
36 36
  for (int i= z.rowmin(); i <= z.rowmax(); i++)
37
  { 
37
  {
38 38
    if (allocated(z[i]))
39 39
    {
40 40
      istr >> z[i];
......
44 44
}
45 45

  
46 46
cifstream& operator>>(cifstream& istr, const dvar3_array& z)
47
{ 
47
{
48 48
  for (int i= z.slicemin(); i <= z.slicemax(); i++)
49
  { 
49
  {
50 50
    istr >> z[i];
51 51
  }
52 52
  return istr;
53 53
}
54 54

  
55 55
cifstream& operator>>(cifstream& istr, const dvar4_array& z)
56
{ 
56
{
57 57
  for (int i= z.hslicemin(); i <= z.hslicemax(); i++)
58
  { 
58
  {
59 59
    istr >> z[i];
60 60
  }
61 61
  return istr;
62 62
}
63 63

  
64 64
cifstream& operator>>(cifstream& istr, const dvar5_array& z)
65
{ 
65
{
66 66
  for (int i= z.indexmin(); i <= z.indexmax(); i++)
67
  { 
67
  {
68 68
    istr >> z(i);
69 69
  }
70 70
  return istr;

Also available in: Unified diff