/[escript]/trunk/escript/src/Taipan.cpp
ViewVC logotype

Diff of /trunk/escript/src/Taipan.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2492 by jfenwick, Thu Nov 6 03:54:35 2008 UTC revision 2493 by jfenwick, Thu Jun 25 02:58:52 2009 UTC
# Line 148  Taipan::new_array(int dim, int N) { Line 148  Taipan::new_array(int dim, int N) {
148      tab_prev->next = new_tab;      tab_prev->next = new_tab;
149    }    }
150    
151    // allocate and initialise the new array    try
152    new_tab->array = new double[len];    {
153         // allocate and initialise the new array
154         new_tab->array = new double[len];
155      }
156      catch (...)
157      {
158         cerr << "Memory manager failed to create array of size " << len << " doubles" << endl;
159         throw;
160      }
161    int i,j;    int i,j;
162    if (N==1) {    if (N==1) {
163      for (j=0; j<dim; j++)      for (j=0; j<dim; j++)

Legend:
Removed from v.2492  
changed lines
  Added in v.2493

  ViewVC Help
Powered by ViewVC 1.1.26