Ignore:
Timestamp:
04/28/09 15:48:05 (16 years ago)
Author:
Eric.Larour
Message:

Took out viscosity overshoot from Matpar. Reactivated viscosity overshoot in tria, which had been wiped off

File:
1 edited

Legend:

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

    r92 r111  
    2222                                double penta_p, double penta_q, int penta_shelf, int penta_onbed, int penta_onsurface, double penta_meanvel,double penta_epsvel,
    2323                                int penta_collapse, double penta_melting[6], double penta_accumulation[6], double penta_geothermalflux[6],
    24                                 int penta_artdiff, int penta_thermal_steadystate){
     24                                int penta_artdiff, int penta_thermal_steadystate,double penta_viscosity_overshoot){
    2525       
    2626        int i;
     
    5858        artdiff = penta_artdiff;
    5959        thermal_steadystate = penta_thermal_steadystate;
     60        viscosity_overshoot = penta_viscosity_overshoot;
    6061
    6162        return;
     
    9798        printf("   artdiff: %i\n",artdiff);
    9899        printf("   thermal_steadystate: %i\n",thermal_steadystate);
     100        printf("   viscosity_overshoot: %i\n",viscosity_overshoot);
    99101        return;
    100102}
     
    143145        memcpy(marshalled_dataset,&artdiff,sizeof(artdiff));marshalled_dataset+=sizeof(artdiff);
    144146        memcpy(marshalled_dataset,&thermal_steadystate,sizeof(thermal_steadystate));marshalled_dataset+=sizeof(thermal_steadystate);
     147        memcpy(marshalled_dataset,&viscosity_overshoot,sizeof(viscosity_overshoot));marshalled_dataset+=sizeof(viscosity_overshoot);
    145148       
    146149        *pmarshalled_dataset=marshalled_dataset;
     
    178181                sizeof(artdiff)+
    179182                sizeof(thermal_steadystate) +
     183                sizeof(viscosity_overshoot) +
    180184                sizeof(int); //sizeof(int) for enum type
    181185}
     
    224228        memcpy(&artdiff,marshalled_dataset,sizeof(artdiff));marshalled_dataset+=sizeof(artdiff);
    225229        memcpy(&thermal_steadystate,marshalled_dataset,sizeof(thermal_steadystate));marshalled_dataset+=sizeof(thermal_steadystate);
     230        memcpy(&viscosity_overshoot,marshalled_dataset,sizeof(viscosity_overshoot));marshalled_dataset+=sizeof(viscosity_overshoot);
    226231
    227232        /*nodes and materials are not pointing to correct objects anymore:*/
     
    770775        tria_node_offsets[2]=node_offsets[g2];
    771776
    772         tria= new Tria(id,mid,mparid,tria_node_ids,tria_h,tria_s,tria_b,tria_k, friction_type,p,q,shelf,meanvel,epsvel);
     777        tria= new Tria(id,mid,mparid,tria_node_ids,tria_h,tria_s,tria_b,tria_k, friction_type,p,q,shelf,meanvel,epsvel,viscosity_overshoot);
    773778
    774779        tria->NodeConfiguration(tria_node_ids,tria_nodes,tria_node_offsets);
Note: See TracChangeset for help on using the changeset viewer.