Changeset 1636 in Sophya for trunk/SophyaLib/TArray/tarray.cc


Ignore:
Timestamp:
Aug 13, 2001, 2:38:17 PM (24 years ago)
Author:
ansari
Message:

Correction bugs ds UpdateSize (calcul AvgStep() et configuration Vecteur/Matrices + protection constructeur TArray() depuis NDataBlock - Reza 13/8/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/tarray.cc

    r1558 r1636  
    8787  string exmsg = "TArray<T>::TArray(int_4, sa_size_t *,  NDataBlock<T> & ... )";
    8888  if (!UpdateSizes(ndim, siz, step, offset, exmsg))  throw( ParmError(exmsg) );
    89  
     89  if (mNDBlock.Size() < ComputeTotalSize(ndim, siz, step, offset)) {
     90    exmsg += " DataBlock.Size() < ComputeTotalSize(...) " ;
     91    throw( ParmError(exmsg) );
     92  }
    9093}
    9194
Note: See TracChangeset for help on using the changeset viewer.