Revision 1922

trunk/src/linad99/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.
trunk/src/linad99/f3arr.cpp (revision 1922)
573 573
       deallocate();
574 574
     }
575 575
   }
576
#  ifdef SAFE_ARRAYS
576
#ifdef SAFE_ALL
577 577
   else
578 578
   {
579
     //cerr << "Warning -- trying to deallocate an unallocated dmatrix"<<endl;
579
     cerr << "Warning -- trying to deallocate an unallocated dmatrix"<<endl;
580 580
   }
581
#  endif
581
#endif
582 582
 }
583 583

  
584 584
/**
......
596 596
     t=NULL;
597 597
     shape=NULL;
598 598
   }
599
#  ifdef SAFE_ARRAYS
599
#ifdef SAFE_ALL
600 600
   else
601 601
   {
602
     //cerr << "Warning -- trying to deallocate an unallocated dmatrix"<<endl;
602
     cerr << "Warning -- trying to deallocate an unallocated dmatrix"<<endl;
603 603
   }
604
#  endif
604
#endif
605 605
 }
606 606

  
607 607
/**
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff