source: issm/oecreview/Archive/14312-15392/ISSM-14684-14685.diff@ 15393

Last change on this file since 15393 was 15393, checked in by Mathieu Morlighem, 12 years ago

NEW: adding Archive/14312-15392 for oecreview

File size: 2.0 KB
  • ../trunk-jpl/src/c/toolkits/issm/IssmVec.h

     
    2020#include "../../include/macros.h"
    2121#include "./IssmToolkitUtils.h"
    2222#include <math.h>
    23 
    2423/*}}}*/
    2524
    2625/*We need to template this class, in case we want to create Vectors that hold
     
    3029  IssmPDouble types)
    3130*/
    3231int IssmVecTypeFromToolkitOptions(void);
     32template <class doubletype> class IssmSeqVec;
     33template <class doubletype> class IssmMpiVec;
    3334
    3435template <class doubletype>
    3536class IssmVec{
  • ../trunk-jpl/src/c/toolkits/issm/issmtoolkit.h

     
    2323#include "./IssmMpiVec.h"
    2424#endif
    2525
    26 
    2726#endif
  • ../trunk-jpl/src/c/classes/objects/Bucket.h

     
    5555                void    DeepEcho(){ /*{{{*/
    5656                        int i,j;
    5757
    58                         printf("Bucket echo (cpu #: %i): \n",IssmComm::GetRank());
    59                         printf("# rows: %i, #cols: %i\n",this->m,this->n);
     58                        _printLine_("Bucket echo (cpu #: "<<IssmComm::GetRank()<<")");
     59                        _printLine_("num rows: "<<this->m<<" num cols: "<<this->n);
    6060                        for (i=0;i<this->m;i++){
    61                                 printf("row %i, column indices: ",this->idxm[i]);
     61                                _printLine_("row "<<this->idxm[i]<<", column indices: ");
    6262                                for (j=0;j<this->n;j++){
    63                                         printf(" %i",this->idxn[j]);
     63                                        _printLine_(" "<<this->idxn[j]);
    6464                                }
    65                                 printf("\n");
    66                                 printf("values: ");
     65                                _printLine_("values: ");
    6766                                for (j=0;j<this->n;j++){
    68                                         printf(" %i",this->values[m*i+j]);
     67                                        _printLine_(" "<<this->values[m*i+j]);
    6968                                }
    70                                 printf("\n");
    7169                        }
    7270                }
    7371                /*}}}*/
Note: See TracBrowser for help on using the repository browser.