Changeset 1728


Ignore:
Timestamp:
08/17/09 13:49:36 (16 years ago)
Author:
Mathieu Morlighem
Message:

change enum name

Location:
issm/trunk/src/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/EnumDefinitions/EnumDefinitions.cpp

    r1726 r1728  
    9090int SpcEnum(void){                      return          490; }
    9191
    92 /*GEOGRAPHIE/FILL:*/
    93 int WaterEnum(void){                    return          601; }
    94 int IceEnum(void){                      return          602; }
    95 int AirEnum(void){                      return          603; }
     92/*GEOGRAPHY:*/
     93int GeographyEnum(void){                return          500; }
     94int WaterEnum(void){                    return          501; }
     95int IceSheetEnum(void){                 return          502; }
     96int IceShelfEnum(void){                 return          502; }
    9697
     98/*FILL:*/
     99int FillEnum(void){                     return          600; }
     100int WaterFillEnum(void){                return          601; }
     101int IceFillEnum(void){                  return          602; }
     102int AirFillEnum(void){                  return          603; }
    97103
    98104/*functions on enums: */
  • issm/trunk/src/c/EnumDefinitions/EnumDefinitions.h

    r1715 r1728  
    9191int SpcEnum(void);
    9292
     93/*GEOGRAPHY:*/
     94int GeographyEnum(void);
     95int WaterEnum(void);
     96int IceSheetEnum(void);
     97int IceShelfEnum(void);
    9398
    94 /*DIVERSE: */
     99/*FILL: */
     100int FillEnum(void);
    95101int WaterEnum(void);
    96102int IceEnum(void);
  • issm/trunk/src/c/objects/Icefront.cpp

    r1717 r1728  
    366366        /*Recover material and fill parameters: */
    367367        matpar=(Matpar*)element->GetMatPar();
    368         if (element->GetShelf())fill=WaterEnum();
    369         else fill=AirEnum();
     368        if (element->GetShelf())fill=WaterFillEnum();
     369        else fill=AirFillEnum();
    370370
    371371        //check that the element is onbed (collapsed formulation) otherwise:pe=0
     
    494494        /*Recover material and fill parameters: */
    495495        matpar=(Matpar*)element->GetMatPar();
    496         if (element->GetShelf())fill=WaterEnum();
    497         else fill=AirEnum();
     496        if (element->GetShelf())fill=WaterFillEnum();
     497        else fill=AirFillEnum();
    498498
    499499        /* Set pe_g to 0: */
     
    657657        /*Recover material and fill parameters: */
    658658        matpar=(Matpar*)element->GetMatPar();
    659         if (element->GetShelf())fill=WaterEnum();
    660         else fill=AirEnum();
     659        if (element->GetShelf())fill=WaterFillEnum();
     660        else fill=AirFillEnum();
    661661
    662662        /* Set pe_g to 0: */
     
    868868                bed=b1*(1+segment_gauss_coord[ig])/2+b2*(1-segment_gauss_coord[ig])/2;
    869869
    870                 if (fill==WaterEnum()){
     870                if (fill==WaterFillEnum()){
    871871                        //icefront ends in water:
    872872                        ice_pressure=1.0/2.0*gravity*rho_ice*pow(thickness,2);
     
    878878                        water_pressure=1.0/2.0*gravity*rho_water*(pow(surface_under_water,2) - pow(base_under_water,2));
    879879                }
    880                 else if (fill==AirEnum()){
     880                else if (fill==AirFillEnum()){
    881881                        ice_pressure=1.0/2.0*gravity*rho_ice*pow(thickness,2);
    882882                        air_pressure=0;
     
    11321132
    11331133                        //Now deal with water pressure:
    1134                         if(fill==WaterEnum()){ //icefront ends in water
     1134                        if(fill==WaterFillEnum()){ //icefront ends in water
    11351135                                water_level_above_g_tria=min(0,z_g[i]);//0 if the gaussian point is above water level
    11361136                                water_pressure_tria=rho_water*gravity*water_level_above_g_tria;
    11371137                        }
    1138                         else if(fill==AirEnum()){
     1138                        else if(fill==AirFillEnum()){
    11391139                                water_pressure_tria=0;
    11401140                        }
     
    13811381
    13821382                        //Now deal with water pressure:
    1383                         if(fill==WaterEnum()){ //icefront ends in water
     1383                        if(fill==WaterFillEnum()){ //icefront ends in water
    13841384                                water_level_above_g_tria=min(0,z_g[i]);//0 if the gaussian point is above water level
    13851385                                water_pressure_tria=rho_water*gravity*water_level_above_g_tria;
    13861386                        }
    1387                         else if(fill==AirEnum()){
     1387                        else if(fill==AirFillEnum()){
    13881388                                water_pressure_tria=0;
    13891389                        }
Note: See TracChangeset for help on using the changeset viewer.