Revision 1922 trunk/src/linad99/d3arr.cpp

d3arr.cpp (revision 1922)
615 615
   {
616 616
     (shape->ncopies)++;
617 617
   }
618
#  ifdef SAFE_ARRAYS
618
#ifdef SAFE_ALL
619 619
   else
620 620
   {
621 621
     cerr << "Making a copy of an unallocated d3_array"<<endl;
622 622
   }
623
#  endif
623
#endif
624 624
   t = m2.t;
625 625
 }
626 626

  
......
635 635
   {
636 636
     (shape->ncopies)++;
637 637
   }
638
#  ifdef SAFE_ARRAYS
638
#ifdef SAFE_ALL
639 639
   else
640 640
   {
641 641
     cerr << "Making a copy of an unallocated d3_array"<<endl;
642 642
   }
643
#  endif
643
#endif
644 644
   t = m2.t;
645 645
 }
646 646

  
......
681 681
     t=NULL;
682 682
     shape=NULL;
683 683
   }
684
#  ifdef SAFE_ARRAYS
684
#ifdef SAFE_ALL
685 685
   else
686 686
   {
687
    // cerr << "Warning -- trying to deallocate an unallocated dmatrix"<<endl;
687
     cerr << "Warning -- trying to deallocate an unallocated dmatrix"<<endl;
688 688
   }
689
#  endif
689
#endif
690 690
 }
691 691

  
692 692
/**
......
705 705
      deallocate();
706 706
    }
707 707
  }
708
#  ifdef SAFE_ARRAYS
708
#ifdef SAFE_ALL
709 709
  else
710 710
  {
711 711
    cerr << "Warning -- trying to deallocate an unallocated d3_array"<<endl;
712 712
  }
713
#  endif
713
#endif
714 714
}
715 715
/**
716 716
 * Description not yet available.

Also available in: Unified diff