Changeset 803


Ignore:
Timestamp:
06/04/09 18:07:50 (16 years ago)
Author:
Eric.Larour
Message:

Added DeepEcho function

Location:
issm/trunk/src/c/objects
Files:
38 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Beam.cpp

    r465 r803  
    5353#undef __FUNCT__
    5454#define __FUNCT__ "Beam::Echo"
    55 
    5655void Beam::Echo(void){
    5756
     
    7877}
    7978
     79#undef __FUNCT__
     80#define __FUNCT__ "Beam::DeepEcho"
     81void Beam::DeepEcho(void){
     82
     83        printf("Beam:\n");
     84        printf("   id: %i\n",id);
     85        printf("   mid: %i\n",mid);
     86        printf("   mparid: %i\n",mparid);
     87        printf("   node_ids=[%i,%i]\n",node_ids[0],node_ids[1]);
     88        printf("   node_offsets=[%i,%i]\n",node_offsets[0],node_offsets[1]);
     89        printf("   matice_offset=%i\n",matice_offset);
     90        printf("   matpar_offset=%i\n",matpar_offset);
     91        printf("   h=[%g,%g]\n",h[0],h[1]);
     92        printf("   s=[%g,%g]\n",s[0],s[1]);
     93        printf("   b=[%g,%g]\n",b[0],b[1]);
     94        printf("   k=[%g,%g]\n",k[0],k[1]);
     95        printf("   onbed=%i\n",onbed);
     96        printf("   nodes: \n");
     97        if(nodes[0])nodes[0]->Echo();
     98        if(nodes[1])nodes[1]->Echo();
     99        if(matice)matice->Echo();
     100        if(matpar)matpar->Echo();
     101
     102        return;
     103}
    80104void  Beam::Marshall(char** pmarshalled_dataset){
    81105
  • issm/trunk/src/c/objects/Beam.h

    r465 r803  
    4848
    4949                void  Echo();
     50                void  DeepEcho();
    5051                void  Marshall(char** pmarshalled_dataset);
    5152                int   MarshallSize();
  • issm/trunk/src/c/objects/DakotaPlugin.cpp

    r662 r803  
    3737        analysis_type=in_analysis_type;
    3838        sub_analysis_type=in_sub_analysis_type;
     39        counter=0;
    3940}
    4041
     
    5051        char*  variable_descriptor=NULL;
    5152        double* responses=NULL;
     53
     54        /*increae counter: */
     55        counter++;
    5256
    5357        /*Before launching analysis, we need to transfer the dakota inputs into Issm
     
    7377
    7478        /*run core solution: */
    75         SpawnCore(responses,variables,variable_descriptors,numACV,femmodels,inputs,analysis_type,sub_analysis_type);
     79        SpawnCore(responses,variables,variable_descriptors,numACV,femmodels,inputs,analysis_type,sub_analysis_type,counter);
    7680
    7781        /*populate responses: */
     
    9498        return 0;
    9599}
     100 
     101
     102int DakotaPlugin::GetCounter(){
     103        return counter;
     104}
    96105
    97106} // namespace SIM
  • issm/trunk/src/c/objects/DakotaPlugin.h

    r662 r803  
    3030  int analysis_type;
    3131  int sub_analysis_type;
     32  int counter;
    3233
    3334protected:
     
    3940  // execute the output filter portion of a direct evaluation invocation
    4041  //int derived_map_of(const Dakota::String& of_name);
     42
     43  /*add for issm: */
     44  int GetCounter();
    4145
    4246private:
  • issm/trunk/src/c/objects/Element.h

    r465 r803  
    1717                virtual       ~Element(){};
    1818                virtual void  Echo()=0;
     19                virtual void  DeepEcho()=0;
    1920                virtual int   GetId()=0;
    2021                virtual int   MyRank()=0;
  • issm/trunk/src/c/objects/Icefront.cpp

    r465 r803  
    9494        return;
    9595}
    96                
     96void Icefront::DeepEcho(void){
     97
     98        int i;
     99       
     100        printf("Icefront:\n");
     101        printf("   type: %s\n",type);
     102        printf("   sid: %i\n",sid);
     103       
     104        printf("   mparid: %i\n",mparid);
     105        printf("   matpar_offset: %i\n",matpar_offset);
     106        printf("   matpar: \n");
     107       
     108        printf("   element_type: %i\n",element_type);
     109        printf("   eid: %i\n",eid);
     110        printf("   element_offset: %i\n",eid);
     111        printf("   element\n");
     112               
     113        if (strcmp(type,"segment")==0){
     114                printf("   node_ids=[%i,%i]\n",node_ids[0],node_ids[1]);
     115                printf("   node_offsets=[%i,%i]\n",node_offsets[0],node_offsets[1]);
     116                printf("   h=[%g,%g]\n",h[0],h[1]);
     117                printf("   b=[%g,%g]\n",b[0],b[1]);
     118                for(i=0;i<2;i++){
     119                        if(nodes[i])nodes[i]->Echo();
     120                }
     121        }
     122        else{
     123                printf("   node_ids=[%i,%i,%i,%i]\n",node_ids[0],node_ids[1],node_ids[2],node_ids[3]);
     124                printf("   node_offsets=[%i,%i]\n",node_offsets[0],node_offsets[1],node_offsets[2],node_offsets[3]);
     125                printf("   h=[%g,%g,%g,%g]\n",h[0],h[1],h[2],h[3]);
     126                printf("   b=[%g,%g,%g,%g]\n",b[0],b[1],b[2],b[3]);
     127                for(i=0;i<4;i++){
     128                        if(nodes[i])nodes[i]->Echo();
     129                }
     130        }
     131
     132        return;
     133}               
    97134void  Icefront::Marshall(char** pmarshalled_dataset){
    98135
  • issm/trunk/src/c/objects/Icefront.h

    r465 r803  
    4848
    4949                void  Echo();
     50                void  DeepEcho();
    5051                void  Marshall(char** pmarshalled_dataset);
    5152                int   MarshallSize();
  • issm/trunk/src/c/objects/Input.cpp

    r365 r803  
    8585
    8686void Input::Echo(void){
     87
     88        int i,j;
     89       
     90        printf("Input:\n");
     91        printf("   name: %s\n",name);
     92        printf("   type: %i\n",type);
     93        if(type==STRING) printf("   string: %s\n",string);
     94        if(type==INTEGER) printf("   integer: %i\n",integer);
     95        if(type==DOUBLE) printf("   double: %g\n",scalar);
     96        if(type==DOUBLEVEC) printf("   doublevec:%p\n",vector);
     97}
     98
     99void Input::DeepEcho(void){
    87100
    88101        int i,j;
     
    100113                printf("\n");
    101114        }
    102 }
    103                
     115}               
    104116int Input::Enum(void){
    105117
  • issm/trunk/src/c/objects/Input.h

    r365 r803  
    4242                /*fill virtual routines: */
    4343                void  Echo();
     44                void  DeepEcho(void);
    4445                void  Marshall(char** pmarshalled_dataset);
    4546                int   MarshallSize();
  • issm/trunk/src/c/objects/Load.h

    r465 r803  
    1717                virtual       ~Load(){};
    1818                virtual void  Echo()=0;
     19                virtual void  DeepEcho()=0;
    1920                virtual int   GetId()=0;
    2021                virtual int   MyRank()=0;
  • issm/trunk/src/c/objects/Material.h

    r246 r803  
    1515                virtual       ~Material(){};
    1616                virtual void  Echo()=0;
     17                virtual void  DeepEcho()=0;
    1718                virtual int   GetId()=0;
    1819                virtual int   MyRank()=0;
  • issm/trunk/src/c/objects/Matice.cpp

    r442 r803  
    3838        return;
    3939}
    40                
     40void Matice::DeepEcho(void){
     41
     42        printf("Matice:\n");
     43        printf("   mid: %i\n",mid);
     44        printf("   B: %g\n",B);
     45        printf("   n: %g\n",n);
     46        return;
     47}               
    4148void  Matice::Marshall(char** pmarshalled_dataset){
    4249
     
    138145*/
    139146
     147
     148
    140149        /*output: */
    141150        double viscosity;
  • issm/trunk/src/c/objects/Matice.h

    r394 r803  
    2222
    2323                void  Echo();
     24                void  DeepEcho();
    2425                void  Marshall(char** pmarshalled_dataset);
    2526                int   MarshallSize();
  • issm/trunk/src/c/objects/Matpar.cpp

    r483 r803  
    5757        return;
    5858}
    59                
     59
     60void Matpar::DeepEcho(void){
     61
     62        printf("Matpar:\n");
     63        printf("   mid: %i\n",mid);
     64        printf("   rho_ice: %g\n",rho_ice);
     65        printf("   rho_water: %g\n",rho_water);
     66        printf("   heatcapacity: %g\n",heatcapacity);
     67        printf("   thermalconductivity: %g\n",thermalconductivity);
     68        printf("   latentheat: %g\n",latentheat);
     69        printf("   beta: %g\n",beta);
     70        printf("   meltingpoint: %g\n",meltingpoint);
     71        printf("   mixed_layer_capacity: %g\n",mixed_layer_capacity);
     72        printf("   thermal_exchange_velocity: %g\n",thermal_exchange_velocity);
     73        printf("   g: %g\n",g);
     74        return;
     75}               
    6076void  Matpar::Marshall(char** pmarshalled_dataset){
    6177
     
    163179}
    164180double Matpar::GetRhoIce(){
     181       
    165182        return rho_ice;
    166183}
  • issm/trunk/src/c/objects/Matpar.h

    r483 r803  
    3232
    3333                void  Echo();
     34                void  DeepEcho();
    3435                void  Marshall(char** pmarshalled_dataset);
    3536                int   MarshallSize();
  • issm/trunk/src/c/objects/Node.cpp

    r687 r803  
    8787        return;
    8888}
    89                
     89
     90void Node::DeepEcho(void){
     91
     92        int i;
     93
     94        printf("Node:\n");
     95        printf("   id: %i\n",id);
     96        printf("   partitionborder: %i\n",partitionborder);
     97        printf("   clone: %i\n",clone);
     98        printf("   numberofdofs: %i\n",numberofdofs);
     99        printf("   x=[%g,%g,%g]\n",x[0],x[1],x[2]);
     100        printf("   onbed: %i\n",onbed);
     101        printf("   onsurface: %i\n",onsurface);
     102        printf("   upper_node_id=%i\n",upper_node_id);
     103        printf("   upper_node_offset=%i\n",upper_node_offset);
     104        printf("   doflist:|");
     105        for(i=0;i<numberofdofs;i++){
     106                if(i>MAXDOFSPERNODE)break;
     107                printf("%i|",doflist[i]);
     108        }
     109        printf("   doflist1:|");
     110        printf("%i|",doflist1[1]);
     111        printf("\n");
     112
     113        printf("   set membership: m,n,f,s sets \n");
     114        for(i=0;i<numberofdofs;i++){
     115                if(i>MAXDOFSPERNODE)break;
     116                printf("      dof %i: %i %i %i %i\n",i,mset[i],nset[i],fset[i],sset[i]);
     117        }
     118        printf("\n");
     119        if(upper_node)printf("   upper_node pointer: %p\n",upper_node);
     120
     121        return;
     122}               
    90123void  Node::Marshall(char** pmarshalled_dataset){
    91124
  • issm/trunk/src/c/objects/Node.h

    r678 r803  
    4545
    4646                void  Echo();
     47                void  DeepEcho();
    4748                void  Marshall(char** pmarshalled_dataset);
    4849                int   MarshallSize();
  • issm/trunk/src/c/objects/Object.h

    r1 r803  
    1717                virtual       ~Object() {};
    1818                virtual void  Echo()=0;
     19                virtual void  DeepEcho()=0;
    1920                virtual int   GetId()=0;
    2021                virtual int   MyRank()=0;
  • issm/trunk/src/c/objects/Param.cpp

    r765 r803  
    153153        }
    154154}
    155        
     155
     156#undef __FUNCT__
     157#define __FUNCT__  "Param Deep Echo"
     158void Param::DeepEcho(void){
     159
     160        int i,j;
     161       
     162        printf("Param:\n");
     163        printf("   id: %i\n",id);
     164        printf("   name: %s\n",name);
     165       
     166        switch(type){
     167                case STRING:
     168                        printf("   string value: %s\n",string);
     169                        break;
     170                       
     171                case  STRINGARRAY:
     172                        printf("   string array: %i strings\n",M);
     173                        for(i=0;i<M;i++){
     174                                printf("      %i: %s\n",i,stringarray[i]);
     175                        }
     176       
     177                case INTEGER:
     178                        printf("   integer value: %i\n",integer);
     179                        break;
     180       
     181                case DOUBLE:
     182                        printf("   double value: %g\n",ddouble);
     183                        break;
     184               
     185                case DOUBLEVEC:
     186                        printf("   double vector. size: %i ndof: %i\n",M,ndof);
     187                        for(i=0;i<M;i++)printf("%g\n",doublevec[i]);
     188                        break;
     189       
     190                case DOUBLEMAT:
     191                        printf("   double matrix. size: %i,%i\n",M,N);
     192                        for(i=0;i<M;i++){
     193                                for(j=0;j<N;j++){
     194                                        printf("%g ",*(doublemat+N*i+j));
     195                                }
     196                                printf("\n");
     197                        }
     198                        break;
     199
     200                case PETSCVEC:
     201                        printf("   Petsc vector: \n");
     202                        VecView(vec,PETSC_VIEWER_STDOUT_WORLD);
     203                        break;
     204
     205                case  PETSCMAT:
     206                        printf("   Petsc matrix: \n");
     207                        MatView(mat,PETSC_VIEWER_STDOUT_WORLD);
     208                        break;
     209
     210                default:
     211                        throw ErrorException(__FUNCT__,exprintf("%s%i","unknow parameter type ",type));
     212        }
     213}       
    156214#undef __FUNCT__
    157215#define __FUNCT__ "Marshall"
  • issm/trunk/src/c/objects/Param.h

    r765 r803  
    3939
    4040                void  Echo();
     41                void  DeepEcho();
    4142                void  Marshall(char** pmarshalled_dataset);
    4243                int   MarshallSize();
  • issm/trunk/src/c/objects/ParameterInputs.cpp

    r765 r803  
    3737}
    3838
     39void ParameterInputs::DeepEcho(){
     40
     41        printf("ParameterInputs echo: \n");
     42        dataset->DeepEcho();
     43
     44}
    3945void ParameterInputs::purge(char* name){
    4046
     
    324330
    325331                        /*Add parameter to inputs: */
    326                         this->Add("root",parameter,1,numberofnodes);
     332                        this->Add(root,parameter,1,numberofnodes);
    327333
    328334                        /*increment i to skip the distributed values just collected: */
  • issm/trunk/src/c/objects/ParameterInputs.h

    r765 r803  
    2121                ~ParameterInputs();
    2222                void Echo();
     23                void DeepEcho();
    2324               
    2425                void Add(char* name,char* string);
  • issm/trunk/src/c/objects/Pengrid.cpp

    r539 r803  
    6161        return;
    6262}
    63                
     63void Pengrid::DeepEcho(void){
     64
     65        printf("Pengrid:\n");
     66        printf("   id: %i\n",id);
     67        printf("   mparid: %i\n",mparid);
     68        printf("   dof: %i\n",dof);
     69        printf("   active: %i\n",active);
     70        printf("   penalty_offset: %g\n",penalty_offset);
     71        printf("   thermal_steadystate: %i\n",thermal_steadystate);
     72        printf("   node_id: [%i]\n",node_id);
     73        printf("   node_offset: [%i]\n",node_offset);
     74        printf("   matpar_offset=%i\n",matpar_offset);
     75       
     76        if(node)node->Echo();
     77        if(matpar)matpar->Echo();
     78        return;
     79}               
    6480void  Pengrid::Marshall(char** pmarshalled_dataset){
    6581
  • issm/trunk/src/c/objects/Pengrid.h

    r498 r803  
    3737
    3838                void  Echo();
     39                void  DeepEcho();
    3940                void  Marshall(char** pmarshalled_dataset);
    4041                int   MarshallSize();
  • issm/trunk/src/c/objects/Penpair.cpp

    r483 r803  
    8080        return;
    8181}
    82                
     82void Penpair::DeepEcho(void){
     83
     84        int i;
     85
     86        printf("Penpair:\n");
     87        printf("   id: %i\n",id);
     88        printf("   penalty_offset: %g\n",penalty_offset);
     89        printf("   penalty_lock: %i\n",penalty_lock);
     90        printf("   numdofs: %i\n",numdofs);
     91        printf("   node_ids: [%i %i]\n",node_ids[0],node_ids[1]);
     92        printf("   node_offsets: [%i %i]\n",node_offsets[0],node_offsets[1]);
     93        printf("   dof: %i\n",dof);
     94        printf("   element_ids: [%i %i]\n",element_ids[0],element_ids[1]);
     95        printf("   element_offsets: [%i %i]\n",element_offsets[0],element_offsets[1]);
     96        printf("   friction: %g\n",friction);
     97        printf("   fill: %i\n",fill);
     98        printf("   normal: %g %g\n",normal[0],normal[1]);
     99        printf("   length: %g\n",length);
     100       
     101        for(i=0;i<2;i++){
     102                if(nodes[i])nodes[i]->Echo();
     103                if(elements[i])elements[i]->Echo();
     104        }
     105        return;
     106}               
    83107void  Penpair::Marshall(char** pmarshalled_dataset){
    84108
  • issm/trunk/src/c/objects/Penpair.h

    r483 r803  
    4444
    4545                void  Echo();
     46                void  DeepEcho();
    4647                void  Marshall(char** pmarshalled_dataset);
    4748                int   MarshallSize();
  • issm/trunk/src/c/objects/Penta.cpp

    r678 r803  
    103103        return;
    104104}
    105 
     105void Penta::DeepEcho(void){
     106
     107        printf("Penta:\n");
     108        printf("   id: %i\n",id);
     109        printf("   mid: %i\n",mid);
     110        printf("   mparid: %i\n",mparid);
     111
     112        printf("   node_ids=[%i,%i,%i,%i,%i,%i]\n",node_ids[0],node_ids[1],node_ids[2],node_ids[3],node_ids[4],node_ids[5]);
     113        printf("   node_offsets=[%i,%i,%i,%i,%i,%i]\n",node_offsets[0],node_offsets[1],node_offsets[2],node_offsets[3],node_offsets[4],node_offsets[5]);
     114        printf("   matice_offset=%i\n",matice_offset);
     115        printf("   matpar_offset=%i\n",matpar_offset);
     116
     117        printf("   h=[%i,%i,%i,%i,%i,%i]\n",h[0],h[1],h[2],h[3],h[4],h[5]);
     118        printf("   s=[%i,%i,%i,%i,%i,%i]\n",s[0],s[1],s[2],s[3],s[4],s[5]);
     119        printf("   b=[%i,%i,%i,%i,%i,%i]\n",b[0],b[1],b[2],b[3],b[4],b[5]);
     120        printf("   k=[%i,%i,%i,%i,%i,%i]\n",k[0],k[1],k[2],k[3],k[4],k[5]);
     121       
     122        printf("   friction_type: %i\n",friction_type);
     123        printf("   p: %g\n",p);
     124        printf("   q: %g\n",q);
     125        printf("   shelf: %i\n",shelf);
     126        printf("   onbed: %i\n",onbed);
     127        printf("   onsurface: %i\n",onsurface);
     128        printf("   meanvel: %g\n",meanvel);
     129        printf("   epsvel: %g\n",epsvel);
     130        printf("   collapse: %i\n",collapse);
     131       
     132        printf("   melting=[%i,%i,%i,%i,%i,%i]\n",melting[0],melting[1],melting[2],melting[3],melting[4],melting[5]);
     133        printf("   accumulation=[%i,%i,%i,%i,%i,%i]\n",accumulation[0],accumulation[1],accumulation[2],accumulation[3],accumulation[4],accumulation[5]);
     134        printf("   geothermalflux=[%i,%i,%i,%i,%i,%i]\n",geothermalflux[0],geothermalflux[1],geothermalflux[2],geothermalflux[3],geothermalflux[4],geothermalflux[5]);
     135        printf("   artdiff: %i\n",artdiff);
     136        printf("   thermal_steadystate: %i\n",thermal_steadystate);
     137        printf("   viscosity_overshoot: %i\n",viscosity_overshoot);
     138        printf("   stokesreconditioning: %i\n",stokesreconditioning);
     139        return;
     140}
    106141void  Penta::Marshall(char** pmarshalled_dataset){
    107142
  • issm/trunk/src/c/objects/Penta.h

    r678 r803  
    6565
    6666                void  Echo();
     67                void  DeepEcho();
    6768                void  Marshall(char** pmarshalled_dataset);
    6869                int   MarshallSize();
  • issm/trunk/src/c/objects/Result.cpp

    r758 r803  
    108108        }
    109109}
    110        
     110
     111void Result::DeepEcho(void){
     112
     113        printf("Result:\n");
     114        printf("   id: %i\n",id);
     115        printf("   time: %g\n",time);
     116        printf("   step: %i\n",step);
     117        printf("   field name: %s\n",fieldname);
     118        if(field){
     119                printf("   field pointer %p\n",field);
     120        }
     121        else{
     122                printf("   field pointer %p\n",dfield);
     123                printf("   field size %i\n",size);
     124        }
     125}       
    111126#undef __FUNCT__
    112127#define __FUNCT__ "Result::Marshall"
  • issm/trunk/src/c/objects/Result.h

    r758 r803  
    3030
    3131                void  Echo();
     32                void  DeepEcho();
    3233                int   GetId(void);
    3334                int   MyRank(void);
  • issm/trunk/src/c/objects/Rgb.cpp

    r1 r803  
    4343        return;
    4444}
    45                
     45void Rgb::DeepEcho(void){
     46
     47        printf("Rgb:\n");
     48        printf("   id: %i\n",id);
     49        printf("   nodeid1: %i\n",nodeid1);
     50        printf("   nodeid2: %i\n",nodeid2);
     51        printf("   dof: %i\n",dof);
     52        return;
     53}               
    4654void  Rgb::Marshall(char** pmarshalled_dataset){
    4755
  • issm/trunk/src/c/objects/Rgb.h

    r1 r803  
    2424
    2525                void   Echo();
     26                void   DeepEcho();
    2627                void   Marshall(char** pmarshalled_dataset);
    2728                int    MarshallSize();
  • issm/trunk/src/c/objects/Sing.cpp

    r465 r803  
    7070}
    7171
     72#undef __FUNCT__
     73#define __FUNCT__ "Sing::DeepEcho"
     74void Sing::DeepEcho(void){
     75
     76        printf("Sing:\n");
     77        printf("   id: %i\n",id);
     78        printf("   mid: %i\n",mid);
     79        printf("   mparid: %i\n",mparid);
     80        printf("   node_id=[%i]\n",node_id);
     81        printf("   node_offset=[%i]\n",node_offset);
     82        printf("   matice_offset=%i\n",matice_offset);
     83        printf("   matpar_offset=%i\n",matpar_offset);
     84        printf("   h=[%g]\n",h);
     85        printf("   k=[%g]\n",h);
     86        printf("   node: \n");
     87        if(node)node->Echo();
     88        if(matice)matice->Echo();
     89        if(matpar)matpar->Echo();
     90
     91        return;
     92}
    7293void  Sing::Marshall(char** pmarshalled_dataset){
    7394
  • issm/trunk/src/c/objects/Sing.h

    r465 r803  
    4343
    4444                void  Echo();
     45                void  DeepEcho();
    4546                void  Marshall(char** pmarshalled_dataset);
    4647                int   MarshallSize();
  • issm/trunk/src/c/objects/Spc.cpp

    r1 r803  
    4343        return;
    4444}
    45                
     45
     46void Spc::DeepEcho(void){
     47
     48        printf("Spc:\n");
     49        printf("   sid: %i\n",sid);
     50        printf("   nodeid: %i\n",nodeid);
     51        printf("   dof: %i\n",dof);
     52        printf("   value: %g\n",value);
     53        return;
     54}               
    4655void  Spc::Marshall(char** pmarshalled_dataset){
    4756
  • issm/trunk/src/c/objects/Spc.h

    r1 r803  
    2424
    2525                void   Echo();
     26                void   DeepEcho();
    2627                void   Marshall(char** pmarshalled_dataset);
    2728                int    MarshallSize();
  • issm/trunk/src/c/objects/Tria.cpp

    r605 r803  
    108108        return;
    109109}
    110 
     110#undef __FUNCT__
     111#define __FUNCT__ "Tria::DeepEcho"
     112
     113void Tria::DeepEcho(void){
     114
     115        printf("Tria:\n");
     116        printf("   id: %i\n",id);
     117        printf("   mid: %i\n",mid);
     118        printf("   mparid: %i\n",mparid);
     119        printf("   node_ids=[%i,%i,%i]\n",node_ids[0],node_ids[1],node_ids[2]);
     120        printf("   node_offsets=[%i,%i,%i]\n",node_offsets[0],node_offsets[1],node_offsets[2]);
     121        printf("   matice_offset=%i\n",matice_offset);
     122        printf("   matpar_offset=%i\n",matpar_offset);
     123        printf("   h=[%g,%g,%g]\n",h[0],h[1],h[2]);
     124        printf("   s=[%g,%g,%g]\n",s[0],s[1],s[2]);
     125        printf("   b=[%g,%g,%g]\n",b[0],b[1],b[2]);
     126        printf("   k=[%g,%g,%g]\n",k[0],k[1],k[2]);
     127        printf("   melting=[%g,%g,%g]\n",melting[0],melting[1],melting[2]);
     128        printf("   accumulation=[%g,%g,%g]\n",accumulation[0],accumulation[1],accumulation[2]);
     129        printf("   geothermalflux=[%g,%g,%g]\n",geothermalflux[0],geothermalflux[1],geothermalflux[2]);
     130        printf("   friction_type: %i\n",friction_type);
     131        printf("   p: %g\n",p);
     132        printf("   q: %g\n",q);
     133        printf("   shelf: %i\n",shelf);
     134        printf("   meanvel: %g\n",meanvel);
     135        printf("   epsvel: %g\n",epsvel);
     136        printf("   onbed: %i\n",onbed);
     137        printf("   viscosity_overshoot=%g\n",viscosity_overshoot);
     138        printf("   artdiff=%g\n",artdiff);
     139        printf("   nodes: \n");
     140        if(nodes[0])nodes[0]->Echo();
     141        if(nodes[1])nodes[1]->Echo();
     142        if(nodes[2])nodes[2]->Echo();
     143        if(matice)matice->Echo();
     144        if(matpar)matpar->Echo();
     145
     146        return;
     147}
    111148void  Tria::Marshall(char** pmarshalled_dataset){
    112149
  • issm/trunk/src/c/objects/Tria.h

    r602 r803  
    5959
    6060                void  Echo();
     61                void  DeepEcho();
    6162                void  Marshall(char** pmarshalled_dataset);
    6263                int   MarshallSize();
Note: See TracChangeset for help on using the changeset viewer.