Revision 1247 trunk/src/linad99/d3arr.cpp

d3arr.cpp (revision 1247)
662 662
 }
663 663

  
664 664
/**
665
 * Description not yet available.
666
 * \param
667
 */
668
 d3_array::~d3_array()
669
 {
670
   if (shape)
671
   {
672
     if (shape->ncopies)
673
     {
674
       (shape->ncopies)--;
675
     }
676
     else
677
     {
678
       deallocate();
679
     }
680
   }
681
   else
682
   {
665
Destructor
666
*/
667
d3_array::~d3_array()
668
{
669
  if (shape)
670
  {
671
    if (shape->ncopies)
672
    {
673
      (shape->ncopies)--;
674
    }
675
    else
676
    {
677
      deallocate();
678
    }
679
  }
683 680
#  ifdef SAFE_ARRAYS
684
    // cerr << "Warning -- trying to deallocate an unallocated d3_array"<<endl;
681
  else
682
  {
683
    cerr << "Warning -- trying to deallocate an unallocated d3_array"<<endl;
684
  }
685 685
#  endif
686
   }
687
 }
688

  
686
}
689 687
/**
690 688
 * Description not yet available.
691 689
 * \param

Also available in: Unified diff