Changeset 2788 in Sophya


Ignore:
Timestamp:
May 30, 2005, 6:53:23 PM (20 years ago)
Author:
ansari
Message:

corrections pour impression/dump ascii des tableaux/matrices - Reza 30 Mai 2005

Location:
trunk/SophyaLib/TArray
Files:
3 edited

Legend:

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

    r2615 r2788  
    532532{
    533533  if (ndim_ < 1) {
    534     os << "\n--- " << BaseArray::InfoString() << " Unallocated Array ! " << endl;
     534    os << "#--- " << BaseArray::InfoString() << " Unallocated Array ! " << endl;
    535535    return;
    536536  }
    537   os << "\n--- " << InfoString() ;
     537  os << "#--- " << InfoString() ;
    538538  os << " ND=" << ndim_ << " SizeX*Y*...= " ;
    539539  for(int_4 k=0; k<ndim_; k++) {
  • trunk/SophyaLib/TArray/tarray.cc

    r2756 r2788  
    12961296  \param si : if true,  display attached DvList
    12971297  \param ascd : if true, suppresses the display of line numbers,
    1298   suitable for ascii dump format.
     1298  suitable for ascii dump format. 
    12991299  \sa SetMaxPrint
    13001300  \sa WriteASCII
     
    13261326  sa_size_t k0,k1,k2,k3,k4;
    13271327  for(k4=0; k4<size_[4]; k4++) {
    1328     if ((size_[4] > 1) && ascd)
    1329       cout << "\n ----- Dimension 5 (U) K4= " << k4 << endl;
     1328    if ((size_[4] > 1) && !ascd)
     1329      os << "\n ----- Dimension 5 (U) K4= " << k4 << endl;
    13301330    for(k3=0; k3<size_[3]; k3++) {
    1331       if ((size_[3] > 1) && ascd)
    1332         cout << "\n ----- Dimension 4 (T) K3= " << k3 << endl;
     1331      if ((size_[3] > 1) && !ascd)
     1332        os << "\n ----- Dimension 4 (T) K3= " << k3 << endl;
    13331333      for(k2=0; k2<size_[2]; k2++) {
    1334         if ((size_[2] > 1) & ascd)
    1335           cout << "\n ----- Dimension 3 (Z) K2= " << k2 << endl;
     1334        if ((size_[2] > 1) && !ascd)
     1335          os << "\n ----- Dimension 3 (Z) K2= " << k2 << endl;
    13361336        for(k1=0; k1<size_[1]; k1++) {
    1337           if ( (size_[1] > 1) && (size_[0] > 10) && ascd)
    1338             cout << "----- Dimension 2 (Y) K1= " << k1 << endl;
     1337          if ( (size_[1] > 1) && (size_[0] > 10) && !ascd)
     1338            os << "----- Dimension 2 (Y) K1= " << k1 << endl;
    13391339          for(k0=0; k0<size_[0]; k0++) {
    13401340            if(k0 > 0) os << " "; 
    13411341            os << setw(prtw) << Elem(k0, k1, k2, k3, k4);     npr++;
    1342             if (npr >= (sa_size_t) maxprt) {
     1342            if (npr >= (sa_size_t) maxprt)  {
    13431343              if (npr < totsize_)  os << "\n     .... " << endl; return;
    13441344            }
  • trunk/SophyaLib/TArray/tmatrix.cc

    r2756 r2788  
    1 // $Id: tmatrix.cc,v 1.31 2005-05-23 17:28:17 ansari Exp $
     1// $Id: tmatrix.cc,v 1.32 2005-05-30 16:53:23 ansari Exp $
    22//                         C.Magneville          04/99
    33#include "sopnamsp.h"
     
    394394  sa_size_t kc,kr; 
    395395  for(kr=0; kr<size_[marowi_]; kr++) {
    396     if ( (size_[marowi_] > 1) && (size_[macoli_] > 10) && ascd) cout << "----- Line= " << kr << endl;
     396    if ( (size_[marowi_] > 1) && (size_[macoli_] > 10) && !ascd)
     397      os << "----- Line= " << kr << endl;
    397398    for(kc=0; kc<size_[macoli_]; kc++) {
    398399      if(kc > 0) os << " "; 
Note: See TracChangeset for help on using the changeset viewer.