Revision 399 trunk/src/nh99/cnstrs.cpp

cnstrs.cpp (revision 399)
77 77
{
78 78
  accinf = new doublereal[(inumber1+1)*32];
79 79
}
80
gggg24::~gggg24()
81
{
82
  if (accinf != 0)
83
  {
84
    delete[] accinf;
85
    accinf = 0;
86
  }
87
}
80 88

  
81 89
/**
82 90
 * Description not yet available.
......
94 102
  dd = new doublereal[nx];
95 103
  difx = new doublereal[nx];
96 104
}
105
gggg25::~gggg25()
106
{
107
  if (x != 0)
108
  {
109
    delete[] x;
110
    x = 0;
111
  }
112
  if (x0 != 0)
113
  {
114
    delete[] x0;
115
    x0 = 0;
116
  }
117
  if (x1 != 0)
118
  {
119
    delete[] x1;
120
    x1 = 0;
121
  }
122
  if (xmin != 0)
123
  {
124
    delete[] xmin;
125
    xmin = 0;
126
  }
127
  if (resmin != 0)
128
  {
129
    delete[] resmin;
130
    resmin = 0;
131
  }
132
  if (d != 0)
133
  {
134
    delete[] d;
135
    d = 0;
136
  }
137
  if (d0 != 0)
138
  {
139
    delete[] d0;
140
    d0 = 0;
141
  }
142
  if (dd != 0)
143
  {
144
    delete[] dd;
145
    dd = 0;
146
  }
147
  if (difx != 0)
148
  {
149
    delete[] difx;
150
    difx = 0;
151
  }
152
}
97 153

  
98 154
/**
99 155
 * Description not yet available.
......
106 162
  gres = new doublereal[nx*number3];
107 163
  gresn = new doublereal[number3];
108 164
}
165
gggg26::~gggg26()
166
{
167
  if (gradf != 0)
168
  {
169
    delete[] gradf;
170
    gradf = 0;
171
  }
172
  if (qgf != 0)
173
  {
174
    delete[] qgf;
175
    qgf = 0;
176
  }
177
  if (gres != 0)
178
  {
179
    delete[] gres;
180
    gres = 0;
181
  }
182
  if (gresn != 0)
183
  {
184
    delete[] gresn;
185
    gresn = 0;
186
  }
187
}
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff